Skip to content

Commit

Permalink
use manual version
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Apr 11, 2024
1 parent 7d2c18d commit 1c093f0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ bids-examples
report.txt

# do not track _version.py for hatch
bids/ext/reports/_version.py
# bids/ext/reports/_version.py

tmp.py

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ build: ## builds source and wheel package
python -m build
twine check dist/*

release: build ## package and upload a release
release: ## package and upload a release
twine upload dist/*
17 changes: 17 additions & 0 deletions bids/ext/reports/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# file generated by setuptools_scm
# don't change, don't track in version control
TYPE_CHECKING = False
if TYPE_CHECKING:
from typing import Tuple, Union

VERSION_TUPLE = Tuple[Union[int, str], ...]
else:
VERSION_TUPLE = object

version: str
__version__: str
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE

__version__ = version = "0.1.0"
__version_tuple__ = version_tuple = (0, 1, 0)
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ only-include = ["bids/ext/reports"]
# recursive-include bids/ext/reports/config *.json
# recursive-include bids/ext/reports/tests/data *


[tool.hatch.build.hooks.vcs]
version-file = "bids/ext/reports/_version.py"
# [tool.hatch.build.hooks.vcs]
# version-file = "bids/ext/reports/_version.py"

[project]
name = "pybids_reports"
Expand Down

0 comments on commit 1c093f0

Please sign in to comment.