-
Notifications
You must be signed in to change notification settings - Fork 266
MAINT: Move fully to setuptools #764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a89c536
MAINT: Full-speed setuptools
effigies 80b6174
MAINT: Restore reading version from info.py
effigies 230a178
PY2: ConfigParser for Sphinx build
effigies 157d316
WIN: Drop .bat suffix for scripts
effigies 3221e53
MAINT: externals/tests/data skipped in sdist
effigies 754ab33
MAINT: Add minimum setuptools version to setup.py
effigies 2345bb4
CI: Test minimum setuptools
effigies File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,16 +84,6 @@ def cmp_pkg_version(version_str, pkg_version_str=__version__): | |
else _cmp(extra, pkg_extra)) | ||
|
||
|
||
CLASSIFIERS = ["Development Status :: 4 - Beta", | ||
"Environment :: Console", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Topic :: Scientific/Engineering"] | ||
|
||
description = 'Access a multitude of neuroimaging data formats' | ||
|
||
# Note: this long_description is the canonical place to edit this text. | ||
# It also appears in README.rst, but it should get there by running | ||
# ``tools/refresh_readme.py`` which pulls in this version. | ||
|
@@ -184,33 +174,4 @@ def cmp_pkg_version(version_str, pkg_version_str=__version__): | |
.. _Digital Object Identifier: https://en.wikipedia.org/wiki/Digital_object_identifier | ||
""" | ||
|
||
# versions for dependencies. Check these against: | ||
# doc/source/installation.rst | ||
# requirements.txt | ||
# .travis.yml | ||
NUMPY_MIN_VERSION = '1.8' | ||
PYDICOM_MIN_VERSION = '0.9.9' | ||
SIX_MIN_VERSION = '1.3' | ||
|
||
# Main setup parameters | ||
NAME = 'nibabel' | ||
MAINTAINER = "Chris Markiewicz" | ||
MAINTAINER_EMAIL = "[email protected]" | ||
DESCRIPTION = description | ||
LONG_DESCRIPTION = long_description | ||
URL = "http://nipy.org/nibabel" | ||
DOWNLOAD_URL = "https://github.com/nipy/nibabel" | ||
LICENSE = "MIT license" | ||
CLASSIFIERS = CLASSIFIERS | ||
AUTHOR = "nibabel developers" | ||
AUTHOR_EMAIL = "[email protected]" | ||
PLATFORMS = "OS Independent" | ||
MAJOR = _version_major | ||
MINOR = _version_minor | ||
MICRO = _version_micro | ||
ISRELEASE = _version_extra == '' | ||
VERSION = __version__ | ||
PROVIDES = ["nibabel", 'nisext'] | ||
REQUIRES = ["numpy>=%s" % NUMPY_MIN_VERSION, | ||
"six>=%s" % SIX_MIN_VERSION, | ||
'bz2file; python_version < "3.0"'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
[metadata] | ||
name = nibabel | ||
url = https://nipy.org/nibabel | ||
download_url = https://github.com/nipy/nibabel | ||
author = nibabel developers | ||
author_email = [email protected] | ||
maintainer = Chris Markiewicz | ||
maintainer_email = [email protected] | ||
classifiers = | ||
Development Status :: 4 - Beta | ||
Environment :: Console | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 2.7 | ||
Programming Language :: Python :: 3.4 | ||
Programming Language :: Python :: 3.5 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Topic :: Scientific/Engineering | ||
license = MIT License | ||
description = Access a multitude of neuroimaging data formats | ||
long_description = file:README.rst | ||
long_description_content_type = text/x-rst; charset=UTF-8 | ||
platforms = OS Independent | ||
provides = | ||
nibabel | ||
nisext | ||
|
||
[options] | ||
python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.* | ||
install_requires = | ||
numpy >=1.8 | ||
six >=1.3 | ||
bz2file ; python_version < "3.0" | ||
tests_require = nose | ||
test_suite = nose.collector | ||
zip_safe = False | ||
packages = find: | ||
include_package_data = True | ||
|
||
[options.extras_require] | ||
dicom = | ||
dicom >=0.9.9 | ||
doc = | ||
sphinx >=0.3 | ||
test = | ||
nose >=0.10.1 | ||
all = | ||
%(dicom)s | ||
%(doc)s | ||
%(test)s | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
nib-ls=nibabel.cmdline.ls:main | ||
nib-dicomfs=nibabel.cmdline.dicomfs:main | ||
nib-diff=nibabel.cmdline.diff:main | ||
nib-nifti-dx=nibabel.cmdline.nifti_dx:main | ||
nib-tck2trk=nibabel.cmdline.tck2trk:main | ||
nib-trk2tck=nibabel.cmdline.trk2tck:main | ||
parrec2nii=nibabel.cmdline.parrec2nii:main | ||
|
||
[options.package_data] | ||
nibabel = | ||
tests/data/* | ||
*/tests/data/* | ||
|
||
[flake8] | ||
max-line-length = 100 | ||
ignore = D100,D101,D102,D103,D104,D105,D200,D201,D202,D204,D205,D208,D209,D210,D300,D301,D400,D401,D403,E24,E121,E123,E126,E226,E266,E402,E704,E731,F821,I100,I101,I201,N802,N803,N804,N806,W503,W504,W605 | ||
exclude = | ||
*test* | ||
*sphinx* | ||
nibabel/externals/* | ||
*/__init__.py | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you by any chance remember from what setuptools version this extended setup.cfg is supported? I just fear possible troubles on older systems
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
30.3.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, will it be a problem for older systems to upgrade setuptools? That version had a
python_requires='>=2.6,!=3.0.*,!=3.1.*,!=3.2.*'
constraint, which is a superset of our own support level.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yarikoptic Sorry to bug you, but I just want to check whether that's sufficiently old, or you still think this could produce problems... I can revert to a pre-30.3-style setuptools config, if this is a serious concern.