|
29 | 29 | import shutil |
30 | 30 | import subprocess |
31 | 31 |
|
32 | | -from setuptools import setup, find_packages, Distribution, Extension |
| 32 | +from setuptools import setup, Distribution, Extension |
33 | 33 | import setuptools.command.build_ext |
34 | 34 | import setuptools.command.build_py |
35 | 35 | import setuptools.command.sdist |
@@ -268,72 +268,12 @@ def make_release_tree(self, base_dir, files): |
268 | 268 | package_data[key] = list(set(val + package_data[key])) |
269 | 269 |
|
270 | 270 | setup( # Finally, pass this all along to setuptools to do the heavy lifting. |
271 | | - name="matplotlib", |
272 | | - description="Python plotting package", |
273 | | - author="John D. Hunter, Michael Droettboom", |
274 | | - |
275 | | - url="https://matplotlib.org", |
276 | | - download_url="https://matplotlib.org/stable/users/installing/index.html", |
277 | | - project_urls={ |
278 | | - 'Documentation': 'https://matplotlib.org', |
279 | | - 'Source Code': 'https://github.com/matplotlib/matplotlib', |
280 | | - 'Bug Tracker': 'https://github.com/matplotlib/matplotlib/issues', |
281 | | - 'Forum': 'https://discourse.matplotlib.org/', |
282 | | - 'Donate': 'https://numfocus.org/donate-to-matplotlib' |
283 | | - }, |
284 | | - long_description=Path("README.md").read_text(encoding="utf-8"), |
285 | | - long_description_content_type="text/markdown", |
286 | | - license="PSF", |
287 | 271 | platforms="any", |
288 | | - classifiers=[ |
289 | | - 'Development Status :: 5 - Production/Stable', |
290 | | - 'Framework :: Matplotlib', |
291 | | - 'Intended Audience :: Science/Research', |
292 | | - 'Intended Audience :: Education', |
293 | | - 'License :: OSI Approved :: Python Software Foundation License', |
294 | | - 'Programming Language :: Python', |
295 | | - 'Programming Language :: Python :: 3', |
296 | | - 'Programming Language :: Python :: 3.8', |
297 | | - 'Programming Language :: Python :: 3.9', |
298 | | - 'Programming Language :: Python :: 3.10', |
299 | | - 'Programming Language :: Python :: 3.11', |
300 | | - 'Topic :: Scientific/Engineering :: Visualization', |
301 | | - ], |
302 | | - |
303 | | - package_dir={"": "lib"}, |
304 | | - packages=find_packages("lib"), |
305 | | - namespace_packages=["mpl_toolkits"], |
306 | 272 | py_modules=["pylab"], |
307 | 273 | # Dummy extension to trigger build_ext, which will swap it out with |
308 | 274 | # real extensions that can depend on numpy for the build. |
309 | 275 | ext_modules=[Extension("", [])], |
310 | 276 | package_data=package_data, |
311 | | - |
312 | | - python_requires='>={}'.format('.'.join(str(n) for n in py_min_version)), |
313 | | - install_requires=[ |
314 | | - "contourpy>=1.0.1", |
315 | | - "cycler>=0.10", |
316 | | - "fonttools>=4.22.0", |
317 | | - "kiwisolver>=1.0.1", |
318 | | - "numpy>=1.19", |
319 | | - "packaging>=20.0", |
320 | | - "pillow>=6.2.0", |
321 | | - "pyparsing>=2.2.1", |
322 | | - "python-dateutil>=2.7", |
323 | | - ] + ( |
324 | | - # Installing from a git checkout that is not producing a wheel. |
325 | | - ["setuptools_scm>=7"] if ( |
326 | | - Path(__file__).with_name(".git").exists() and |
327 | | - os.environ.get("CIBUILDWHEEL", "0") != "1" |
328 | | - ) else [] |
329 | | - ), |
330 | | - use_scm_version={ |
331 | | - "version_scheme": "release-branch-semver", |
332 | | - "local_scheme": "node-and-date", |
333 | | - "write_to": "lib/matplotlib/_version.py", |
334 | | - "parentdir_prefix_version": "matplotlib-", |
335 | | - "fallback_version": "0.0+UNKNOWN", |
336 | | - }, |
337 | 277 | cmdclass={ |
338 | 278 | "build_ext": BuildExtraLibraries, |
339 | 279 | "build_py": BuildPy, |
|
0 commit comments