Skip to content

Commit 3361f8a

Browse files
authored
Merge pull request #153 from oesteban/maint/git-archive
MAINT: Enable Git-archive protocol with setuptools-scm-archive
2 parents b3dc469 + 5b55bec commit 3361f8a

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

.git_archival.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ref-names: $Format:%D$

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
sdcflows/_version.py export-subst
2+
.git_archival.txt export-subst

setup.cfg

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ description = Susceptibility Distortion Correction (SDC) workflows for EPI MR sc
1313
license = Apache-2.0
1414
long_description = file:README.rst
1515
long_description_content_type = text/x-rst; charset=UTF-8
16+
name = sdcflows
1617
project_urls =
1718
Documentation = https://www.nipreps.org/sdcflows
1819
GitHub = https://github.com/nipreps/sdcflows
@@ -24,6 +25,7 @@ python_requires = >=3.6
2425
setup_requires =
2526
setuptools >= 42.0
2627
setuptools_scm >= 3.4
28+
setuptools_scm_git_archive
2729
toml
2830
install_requires =
2931
nibabel >=3.0.1
@@ -38,6 +40,7 @@ test_requires =
3840
pytest
3941
packages = find:
4042
include_package_data = True
43+
zip_safe = True
4144

4245
[options.exclude_package_data]
4346
* = tests
@@ -69,15 +72,6 @@ sdcflows =
6972
data/*.nii.gz
7073
data/*.mat
7174
data/flirtsch/*.cnf
72-
VERSION
73-
74-
[versioneer]
75-
VCS = git
76-
style = pep440
77-
versionfile_source = sdcflows/_version.py
78-
versionfile_build = sdcflows/_version.py
79-
tag_prefix =
80-
parentdir_prefix =
8175

8276
[flake8]
8377
max-line-length = 99

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ def main():
99
"""Install entry-point."""
1010
from setuptools import setup
1111

12-
setup(name="sdcflows")
12+
setup(
13+
name="sdcflows", use_scm_version=True,
14+
)
1315

1416

1517
if __name__ == "__main__":

0 commit comments

Comments
 (0)