diff --git a/MANIFEST.in b/MANIFEST.in index c160149a..c873ba37 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 69133aef..e997c78d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/tox.ini b/tox.ini index e4e40293..829d8e1e 100644 --- a/tox.ini +++ b/tox.ini @@ -9,6 +9,7 @@ envlist = docs coverage tutorial + check-packaging py{38,39,310,311,312} [testenv] @@ -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 @@ -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