|
29 | 29 | import shutil |
30 | 30 | import subprocess |
31 | 31 |
|
32 | | -from setuptools import setup, find_namespace_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 |
@@ -277,89 +277,11 @@ def make_release_tree(self, base_dir, files): |
277 | 277 | package_data[key] = list(set(val + package_data[key])) |
278 | 278 |
|
279 | 279 | setup( # Finally, pass this all along to setuptools to do the heavy lifting. |
280 | | - name="matplotlib", |
281 | | - description="Python plotting package", |
282 | | - author="John D. Hunter, Michael Droettboom", |
283 | | - |
284 | | - url="https://matplotlib.org", |
285 | | - download_url="https://matplotlib.org/stable/users/installing/index.html", |
286 | | - project_urls={ |
287 | | - 'Documentation': 'https://matplotlib.org', |
288 | | - 'Source Code': 'https://github.com/matplotlib/matplotlib', |
289 | | - 'Bug Tracker': 'https://github.com/matplotlib/matplotlib/issues', |
290 | | - 'Forum': 'https://discourse.matplotlib.org/', |
291 | | - 'Donate': 'https://numfocus.org/donate-to-matplotlib' |
292 | | - }, |
293 | | - long_description=Path("README.md").read_text(encoding="utf-8"), |
294 | | - long_description_content_type="text/markdown", |
295 | | - license="PSF", |
296 | | - platforms="any", |
297 | | - classifiers=[ |
298 | | - 'Development Status :: 5 - Production/Stable', |
299 | | - 'Framework :: Matplotlib', |
300 | | - 'Intended Audience :: Science/Research', |
301 | | - 'Intended Audience :: Education', |
302 | | - 'License :: OSI Approved :: Python Software Foundation License', |
303 | | - 'Programming Language :: Python', |
304 | | - 'Programming Language :: Python :: 3', |
305 | | - 'Programming Language :: Python :: 3.9', |
306 | | - 'Programming Language :: Python :: 3.10', |
307 | | - 'Programming Language :: Python :: 3.11', |
308 | | - 'Programming Language :: Python :: 3.12', |
309 | | - 'Topic :: Scientific/Engineering :: Visualization', |
310 | | - ], |
311 | | - |
312 | | - package_dir={"": "lib"}, |
313 | | - packages=find_namespace_packages( |
314 | | - where="lib", |
315 | | - exclude=["*baseline_images*", "*tinypages*", "*mpl-data*", "*web_backend*"], |
316 | | - ), |
317 | | - py_modules=["pylab"], |
318 | 280 | # Dummy extension to trigger build_ext, which will swap it out with |
319 | 281 | # real extensions that can depend on numpy for the build. |
320 | 282 | ext_modules=[Extension("", [])], |
321 | 283 | package_data=package_data, |
322 | 284 |
|
323 | | - python_requires='>={}'.format('.'.join(str(n) for n in py_min_version)), |
324 | | - # When updating the list of dependencies, add an api_changes/development |
325 | | - # entry and also update the following places: |
326 | | - # - lib/matplotlib/__init__.py (matplotlib._check_versions()) |
327 | | - # - requirements/testing/minver.txt |
328 | | - # - doc/devel/dependencies.rst |
329 | | - # - .github/workflows/tests.yml |
330 | | - # - environment.yml |
331 | | - install_requires=[ |
332 | | - "contourpy>=1.0.1", |
333 | | - "cycler>=0.10", |
334 | | - "fonttools>=4.22.0", |
335 | | - "kiwisolver>=1.3.1", |
336 | | - "numpy>=1.21", |
337 | | - "packaging>=20.0", |
338 | | - "pillow>=8", |
339 | | - "pyparsing>=2.3.1", |
340 | | - "python-dateutil>=2.7", |
341 | | - ] + ( |
342 | | - # Installing from a git checkout that is not producing a wheel. |
343 | | - # setuptools_scm warns with older setuptools, which turns into errors for our |
344 | | - # test suite. However setuptools_scm does not themselves pin the version of |
345 | | - # setuptools. |
346 | | - ["setuptools_scm>=7", "setuptools>=64"] if ( |
347 | | - Path(__file__).with_name(".git").exists() and |
348 | | - os.environ.get("CIBUILDWHEEL", "0") != "1" |
349 | | - ) else [] |
350 | | - ), |
351 | | - extras_require={ |
352 | | - ':python_version<"3.10"': [ |
353 | | - "importlib-resources>=3.2.0", |
354 | | - ], |
355 | | - }, |
356 | | - use_scm_version={ |
357 | | - "version_scheme": "release-branch-semver", |
358 | | - "local_scheme": "node-and-date", |
359 | | - "write_to": "lib/matplotlib/_version.py", |
360 | | - "parentdir_prefix_version": "matplotlib-", |
361 | | - "fallback_version": "0.0+UNKNOWN", |
362 | | - }, |
363 | 285 | cmdclass={ |
364 | 286 | "build_ext": BuildExtraLibraries, |
365 | 287 | "build_py": BuildPy, |
|
0 commit comments