Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
ssh-key: "${{ secrets.NIPREPS_DEPLOY }}"
- name: Fetch all tags (for setuptools_scm to work)
if: github.ref == 'refs/heads/master'
run: |
/usr/bin/git -c protocol.version=2 fetch --tags --prune --unshallow origin
- name: Set up Python ${{ matrix.python-version }}
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[build-system]
requires = [
"setuptools >= 42.0",
"setuptools >= 34.4",
"setuptools_scm[toml] >= 3.4",
"setuptools_scm_git_archive",
"wheel"
]

Expand Down
11 changes: 4 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,14 @@ long_description_content_type = text/x-rst; charset=UTF-8
maintainer = The NiPreps developers
maintainer_email = nipreps@gmail.com
project_urls =
Documentation = https://www.templateflow.org/python-client/
GitHub = https://github.com/templateflow/python-client
Archive = https://github.com/templateflow/templateflow
url = https://www.templateflow.org
Bug Tracker = https://github.com/templateflow/python-client/issues
Home = https://www.templateflow.org
Documentation = https://www.templateflow.org/python-client/
Source Code = https://github.com/templateflow/python-client

[options]
python_requires = >= 3.6
setup_requires =
setuptools >= 42.0
setuptools_scm >= 3.4
toml
install_requires =
pybids >= 0.9.2
requests
Expand Down
14 changes: 8 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
# Give setuptools a hint to complain if it's too old a version
# 30.3.0 allows us to put most metadata in setup.cfg
# Should match pyproject.toml
SETUP_REQUIRES = [
"setuptools >= 42.0",
"setuptools_scm >= 3.4",
"setuptools_scm_git_archive",
"toml",
]
# setuptools >= 34.4 required by setuptools_scm
# 40.8.0 includes license_file, reducing MANIFEST.in requirements
#
# To install, 34.4.0 is enough, but if we're building an sdist, require 40.8.0
# This imposes a stricter rule on the maintainer than the user
# Keep the installation version synchronized with pyproject.toml
SETUP_REQUIRES = ['setuptools >= %s' % ("40.8.0" if "sdist" in sys.argv else "34.4")]
SETUP_REQUIRES += ["setuptools_scm >= 3.4", "toml"]
# This enables setuptools to install wheel on-the-fly
SETUP_REQUIRES += ["wheel"] if "bdist_wheel" in sys.argv else []

Expand Down