Skip to content

Commit

Permalink
Add check-packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
eleftherioszisis committed Feb 8, 2024
1 parent 5630294 commit 30ce7f8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
9 changes: 3 additions & 6 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
include requirements.txt
include requirements_dev.txt
include README.rst
recursive-exclude tests *
recursive-exclude tutorial *
graft neurom/config
include README.md
prune tests
prune tutorial
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ Tracker = "https://github.com/BlueBrain/NeuroM/issues"
neurom = 'neurom.apps.cli:cli'

[tool.setuptools.packages.find]
include = ["neurom"]
where = ["neurom"]
namespaces = false

[tool.setuptools.package-data]
"*" = ["morph_check.yaml", "morph_stats.yaml"]

[tool.setuptools_scm]
local_scheme = "no-local-version"
11 changes: 10 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ deps =
commands =
pytest --nbmake .

[testenv:check-packaging]
skip_install = true
deps =
build
twine
commands =
python -m build -o {envtmpdir}/dist
twine check {envtmpdir}/dist/*

[pycodestyle]
max-line-length=100

Expand All @@ -70,5 +79,5 @@ python =
3.8: py38, lint
3.9: py39, docs
3.10: py310, tutorial
3.11: py311
3.11: py311, check-packaging
3.12: py312

0 comments on commit 30ce7f8

Please sign in to comment.