Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Apr 11, 2024
1 parent 1c093f0 commit c18a6b7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 24 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
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down
17 changes: 0 additions & 17 deletions bids/ext/reports/_version.py

This file was deleted.

12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
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"]
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 Expand Up @@ -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"
Expand Down

0 comments on commit c18a6b7

Please sign in to comment.