Skip to content

Commit f4bd12c

Browse files
authored
Merge pull request #51 from templateflow/maint/dist-improvements
MAINT: Some additional distribution improvements
2 parents 8f18d6d + 834a31a commit f4bd12c

File tree

4 files changed

+13
-18
lines changed

4 files changed

+13
-18
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v2
24-
with:
25-
ssh-key: "${{ secrets.NIPREPS_DEPLOY }}"
2624
- name: Fetch all tags (for setuptools_scm to work)
27-
if: github.ref == 'refs/heads/master'
2825
run: |
2926
/usr/bin/git -c protocol.version=2 fetch --tags --prune --unshallow origin
3027
- name: Set up Python ${{ matrix.python-version }}

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[build-system]
22
requires = [
3-
"setuptools >= 42.0",
3+
"setuptools >= 34.4",
44
"setuptools_scm[toml] >= 3.4",
5-
"setuptools_scm_git_archive",
65
"wheel"
76
]
87

setup.cfg

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,14 @@ long_description_content_type = text/x-rst; charset=UTF-8
1414
maintainer = The NiPreps developers
1515
maintainer_email = [email protected]
1616
project_urls =
17-
Documentation = https://www.templateflow.org/python-client/
18-
GitHub = https://github.com/templateflow/python-client
1917
Archive = https://github.com/templateflow/templateflow
20-
url = https://www.templateflow.org
18+
Bug Tracker = https://github.com/templateflow/python-client/issues
19+
Home = https://www.templateflow.org
20+
Documentation = https://www.templateflow.org/python-client/
21+
Source Code = https://github.com/templateflow/python-client
2122

2223
[options]
2324
python_requires = >= 3.6
24-
setup_requires =
25-
setuptools >= 42.0
26-
setuptools_scm >= 3.4
27-
toml
2825
install_requires =
2926
pybids >= 0.9.2
3027
requests

setup.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77
# Give setuptools a hint to complain if it's too old a version
88
# 30.3.0 allows us to put most metadata in setup.cfg
99
# Should match pyproject.toml
10-
SETUP_REQUIRES = [
11-
"setuptools >= 42.0",
12-
"setuptools_scm >= 3.4",
13-
"setuptools_scm_git_archive",
14-
"toml",
15-
]
10+
# setuptools >= 34.4 required by setuptools_scm
11+
# 40.8.0 includes license_file, reducing MANIFEST.in requirements
12+
#
13+
# To install, 34.4.0 is enough, but if we're building an sdist, require 40.8.0
14+
# This imposes a stricter rule on the maintainer than the user
15+
# Keep the installation version synchronized with pyproject.toml
16+
SETUP_REQUIRES = ['setuptools >= %s' % ("40.8.0" if "sdist" in sys.argv else "34.4")]
17+
SETUP_REQUIRES += ["setuptools_scm >= 3.4", "toml"]
1618
# This enables setuptools to install wheel on-the-fly
1719
SETUP_REQUIRES += ["wheel"] if "bdist_wheel" in sys.argv else []
1820

0 commit comments

Comments
 (0)