Skip to content

Commit 23300e9

Browse files
authored
Merge pull request #3006 from effigies/mnt/python_requires
MAINT: Add ``python_requires`` to package metadata
2 parents e7ab9cb + 70d6cbd commit 23300e9

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.circleci/config.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ jobs:
340340
name: Check pypi preconditions
341341
command: |
342342
pip install --upgrade pip twine future wheel readme_renderer setuptools
343-
python setup.py check -r -s
344343
python setup.py sdist bdist_wheel
344+
twine check dist/*
345345
- run:
346346
name: Validate Python 2 installation
347347
command: |
@@ -368,6 +368,14 @@ jobs:
368368
pip install dist/nipype-*-py2.py3-none-any.whl
369369
# Numpy should be upgraded to >= 1.15.3
370370
test "$(pip show numpy | grep Version)" \> "Version: 1.15.2"
371+
- run:
372+
name: Check python_requires prevents installation on Python 3.3
373+
command: |
374+
pyenv install 3.3.7
375+
pyenv local 3.3.7
376+
FAIL=false
377+
pip install dist/nipype-*-py2.py3-none-any.whl || FAIL=true
378+
$FAIL
371379
- store_artifacts:
372380
path: /home/circleci/nipype/dist
373381

nipype/info.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def get_nipype_gitversion():
6161
'Programming Language :: Python :: 3.7',
6262
'Topic :: Scientific/Engineering'
6363
]
64+
PYTHON_REQUIRES = ">= 2.7, != 3.0.*, != 3.1.*, != 3.2.*, != 3.3.*"
6465

6566
description = 'Neuroimaging in Python: Pipelines and Interfaces'
6667

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ def main():
139139
author_email=ldict['AUTHOR_EMAIL'],
140140
platforms=ldict['PLATFORMS'],
141141
version=ldict['VERSION'],
142+
python_requires=ldict['PYTHON_REQUIRES'],
142143
install_requires=ldict['REQUIRES'],
143144
setup_requires=SETUP_REQUIRES,
144145
provides=ldict['PROVIDES'],

0 commit comments

Comments
 (0)