Skip to content

Commit

Permalink
MNT: Switch from versioneer to setuptools_scm
Browse files Browse the repository at this point in the history
We can drop MANIFEST.in and custom package data declarations by letting
setuptools_scm package everything version-controlled in the sdist.
  • Loading branch information
effigies committed Jan 6, 2023
1 parent 8d9ef34 commit 1ae3193
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 739 deletions.
4 changes: 4 additions & 0 deletions .git_archival.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node: $Format:%H$
node-date: $Format:%cI$
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
ref-names: $Format:%D$
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fmriprep/_version.py export-subst
.git_archival.txt export-subst
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,5 @@ secrets.py
local_settings.py

*.swp

fmriprep/_version.py
5 changes: 0 additions & 5 deletions MANIFEST.in

This file was deleted.

18 changes: 0 additions & 18 deletions NOTICE

This file was deleted.

1 change: 1 addition & 0 deletions NOTICE
7 changes: 4 additions & 3 deletions fmriprep/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
# https://www.nipreps.org/community/licensing/
#
"""Base module variables."""
from ._version import get_versions

__version__ = get_versions()['version']
del get_versions
try:
from ._version import __version__
except ImportError:
__version__ == "0+unknown"

__packagename__ = 'fmriprep'
__copyright__ = 'Copyright 2022, The NiPreps Developers'
Expand Down
Loading

0 comments on commit 1ae3193

Please sign in to comment.