diff --git a/.gitignore b/.gitignore index 5c99ed2..e23936e 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/Makefile b/Makefile index 9f5ffbb..cd78238 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,7 @@ docs: ## generate Sphinx HTML documentation, including API docs $(BROWSER) docs/build/html/index.html build: ## builds source and wheel package + pip install --upgrade build twine rm -fr dist python -m build twine check dist/* diff --git a/bids/ext/reports/_version.py b/bids/ext/reports/_version.py deleted file mode 100644 index 615ac78..0000000 --- a/bids/ext/reports/_version.py +++ /dev/null @@ -1,17 +0,0 @@ -# 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) diff --git a/pyproject.toml b/pyproject.toml index 826b95b..8570e5d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,8 +2,8 @@ requires = ["hatchling", "hatch-vcs"] build-backend = "hatchling.build" -# [tool.hatch.version] -# source = "vcs" +[tool.hatch.version] +source = "vcs" [tool.hatch.build.targets.wheel] packages = ["bids"] @@ -11,8 +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" @@ -40,8 +40,8 @@ classifiers = [ "Programming Language :: Python :: 3 :: Only", "Topic :: Scientific/Engineering", ] -# dynamic = ["version"] -version = "0.1.0" +dynamic = ["version"] +# version = "0.1.0" [project.scripts] pybids_reports = "bids.ext.reports.cli:cli"