Skip to content
This repository has been archived by the owner on Feb 26, 2025. It is now read-only.

Commit

Permalink
Add check-packaging (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
eleftherioszisis authored Mar 27, 2024
1 parent b525156 commit 7e41691
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 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
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ neurom = 'neurom.apps.cli:cli'

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

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

[tool.setuptools_scm]
local_scheme = "no-local-version"
12 changes: 11 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ envlist =
docs
coverage
tutorial
check-packaging
py{38,39,310,311,312}

[testenv]
Expand Down Expand Up @@ -59,6 +60,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 +80,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 7e41691

Please sign in to comment.