Skip to content

Commit

Permalink
Merge pull request #607 from Remi-Gau/packaging
Browse files Browse the repository at this point in the history
[ENH] package with hatchling and switch to pyproject.toml
  • Loading branch information
Remi-Gau authored Apr 4, 2024
2 parents d5fd9f7 + b7ddf6f commit 7e2af3e
Show file tree
Hide file tree
Showing 8 changed files with 113 additions and 2,585 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
max-line-length = 88
extend-ignore = E203
exclude = neurodocker/_version.py
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# MACOS related
.DS_Store

# hatchling autogenerates it on install
neurodocker/_version.py

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
5 changes: 2 additions & 3 deletions neurodocker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
from pathlib import Path

from neurodocker import reproenv # noqa: F401
from neurodocker._version import get_versions
from neurodocker._version import __version__

__version__ = get_versions()["version"]
del get_versions
__version__ = __version__

# Register neurodocker templates
# TODO: remove registration from the `generate` cli. otherwise we register twice.
Expand Down
Loading

0 comments on commit 7e2af3e

Please sign in to comment.