Skip to content

Inline some more kwargs into setup.py's setup() call. #16838

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 1 commit into from
Mar 19, 2020
Merged
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
36 changes: 15 additions & 21 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,6 @@
]


classifiers = [
'Development Status :: 5 - Production/Stable',
'Framework :: Matplotlib',
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
'License :: OSI Approved :: Python Software Foundation License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering :: Visualization',
]


class NoopTestCommand(TestCommand):
def __init__(self, dist):
print("Matplotlib does not support running tests with "
Expand Down Expand Up @@ -222,10 +207,6 @@ def run(self):
with open('lib/matplotlib/mpl-data/matplotlibrc', 'w') as fd:
fd.write(''.join(template_lines))

# Use Readme as long description
with open('README.rst', encoding='utf-8') as fd:
long_description = fd.read()

# Finally, pass this all along to distutils to do the heavy lifting.
setup(
name="matplotlib",
Expand All @@ -242,10 +223,24 @@ def run(self):
'Forum': 'https://discourse.matplotlib.org/',
'Donate': 'https://numfocus.org/donate-to-matplotlib'
},
long_description=long_description,
long_description=Path("README.rst").read_text(encoding="utf-8"),
long_description_content_type="text/x-rst",
license="PSF",
platforms="any",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Matplotlib',
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
'License :: OSI Approved :: Python Software Foundation License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering :: Visualization',
],

package_dir={"": "lib"},
packages=find_packages("lib"),
namespace_packages=["mpl_toolkits"],
Expand All @@ -254,7 +249,6 @@ def run(self):
# real extensions that can depend on numpy for the build.
ext_modules=[Extension("", [])],
package_data=package_data,
classifiers=classifiers,

python_requires='>={}'.format('.'.join(str(n) for n in min_version)),
setup_requires=[
Expand Down