Skip to content

Commit

Permalink
Update pynwb dev req and build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
rly committed Sep 26, 2024
1 parent ccdbf41 commit 1d2e4da
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
29 changes: 13 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,33 +50,30 @@ dependencies = [
# "Discussions" = "https://github.com/organization/package/discussions"
"Changelog" = "https://github.com/rly/ndx-pose/blob/main/CHANGELOG.md"

[tool.hatch.build]
include = [
"src/pynwb",
"spec/ndx-pose.extensions.yaml",
"spec/ndx-pose.namespace.yaml",
]
exclude = [
"src/pynwb/tests",
]

# Include only the source code under `src/pynwb/ndx_pose` and the spec files under `spec`
# in the wheel.
[tool.hatch.build.targets.wheel]
packages = [
"src/pynwb/ndx_pose",
"spec"
]

# Rewrite the path to the `spec` directory to `ndx_pose/spec`.
# `ndx_pose/__init__.py` will look there first for the spec files.
# The resulting directory structure within the wheel will be:
# ndx_pose/
# ├── __init__.py
# ├── spec
[tool.hatch.build.targets.wheel.sources]
"spec" = "ndx_pose/spec"

# The source distribution includes everything in the package except for the `src/matnwb` directory and
# git and github-related files.
[tool.hatch.build.targets.sdist]
include = [
"src/pynwb",
"spec/ndx-pose.extensions.yaml",
"spec/ndx-pose.namespace.yaml",
"docs",
exclude = [
".git*",
"src/matnwb",
]
exclude = []

[tool.pytest.ini_options]
# uncomment below to run pytest with code coverage reporting. NOTE: breakpoints may not work
Expand Down
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
black==24.4.2
codespell==2.3.0
coverage==7.6.0
hdmf==3.14.2
hdmf==3.14.4
hdmf-docutils==0.4.7
pre-commit==3.7.1
pynwb==2.8.1
pynwb==2.8.2
pytest==8.2.2
pytest-cov==5.0.0
pytest-subtests==0.13.0
Expand Down

0 comments on commit 1d2e4da

Please sign in to comment.