Skip to content

Commit

Permalink
Clean up wheel contents.
Browse files Browse the repository at this point in the history
Fixes #143. Replaces `setuptools`, which seems very happy to just add
everything in the current directory into the source distribution with
`hatch`, which is much, much, much more reasonable. Also:

* Delete now obsolete `MANIFEST.in`
* Delete outdated, non-functional `_debug.py`
* Move `init.py` into `neurodamus/data` to properly compartmentalize it

SPACK_BRANCH=clean-pydamus
SPACK_DEPLOYMENT_SUFFIX=pulls/2358
  • Loading branch information
matz-e committed Mar 20, 2024
1 parent b978f40 commit aab9eaf
Show file tree
Hide file tree
Showing 24 changed files with 14 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/simulation_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ jobs:
cp core/hoc/* tests/share/hoc/
export HOC_LIBRARY_PATH=$(pwd)/tests/share/hoc
# launch simulation with NEURON
mpirun -np 2 ./x86_64/special -mpi -python init.py --configFile=tests/simulations/usecase3/simulation_sonata.json
mpirun -np 2 ./x86_64/special -mpi -python neurodamus/data/init.py --configFile=tests/simulations/usecase3/simulation_sonata.json
ls tests/simulations/usecase3/reporting/*.h5
# launch simulation with CORENEURON
mpirun -np 2 ./x86_64/special -mpi -python init.py --configFile=tests/simulations/usecase3/simulation_sonata_coreneuron.json
mpirun -np 2 ./x86_64/special -mpi -python neurodamus/data/init.py --configFile=tests/simulations/usecase3/simulation_sonata_coreneuron.json
ls tests/simulations/usecase3/reporting_coreneuron/*.h5
# - name: live debug session, comment out
Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

10 changes: 0 additions & 10 deletions _debug.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 12 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[build-system]
requires = [
"setuptools",
"setuptools_scm",
"wheel"
]
build-backend = "setuptools.build_meta"
"hatchling",
"hatch-vcs",
]
build-backend = "hatchling.build"

[project]
name="neurodamus"
Expand Down Expand Up @@ -36,10 +35,15 @@ Homepage = "https://github.com/BlueBrain/neurodamus"
Repository = "https://github.com/BlueBrain/neurodamus.git"
Tracker = "https://github.com/BlueBrain/neurodamus/issues"

[tool.setuptools.packages.find]
exclude=["tests"]
[tool.hatch.build.targets.sdist]
only-include = [
"neurodamus",
]

[tool.hatch.version]
source = "vcs"

[tool.setuptools_scm]
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"

[tool.pytest.ini_options]
Expand Down

0 comments on commit aab9eaf

Please sign in to comment.