diff --git a/.circleci/config.yml b/.circleci/config.yml index 828fcf44f6..a5d59eb75b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -340,8 +340,8 @@ jobs: name: Check pypi preconditions command: | pip install --upgrade pip twine future wheel readme_renderer setuptools - python setup.py check -r -s python setup.py sdist bdist_wheel + twine check dist/* - run: name: Validate Python 2 installation command: | @@ -368,6 +368,14 @@ jobs: pip install dist/nipype-*-py2.py3-none-any.whl # Numpy should be upgraded to >= 1.15.3 test "$(pip show numpy | grep Version)" \> "Version: 1.15.2" + - run: + name: Check python_requires prevents installation on Python 3.3 + command: | + pyenv install 3.3.7 + pyenv local 3.3.7 + FAIL=false + pip install dist/nipype-*-py2.py3-none-any.whl || FAIL=true + $FAIL - store_artifacts: path: /home/circleci/nipype/dist diff --git a/nipype/info.py b/nipype/info.py index f03e625dda..827bc93a12 100644 --- a/nipype/info.py +++ b/nipype/info.py @@ -61,6 +61,7 @@ def get_nipype_gitversion(): 'Programming Language :: Python :: 3.7', 'Topic :: Scientific/Engineering' ] +PYTHON_REQUIRES = ">= 2.7, != 3.0.*, != 3.1.*, != 3.2.*, != 3.3.*" description = 'Neuroimaging in Python: Pipelines and Interfaces' diff --git a/setup.py b/setup.py index 37677afd35..72ba59d904 100755 --- a/setup.py +++ b/setup.py @@ -139,6 +139,7 @@ def main(): author_email=ldict['AUTHOR_EMAIL'], platforms=ldict['PLATFORMS'], version=ldict['VERSION'], + python_requires=ldict['PYTHON_REQUIRES'], install_requires=ldict['REQUIRES'], setup_requires=SETUP_REQUIRES, provides=ldict['PROVIDES'],