|
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,83 +268,16 @@ 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 |
| - 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.9', |
297 |
| - 'Programming Language :: Python :: 3.10', |
298 |
| - 'Programming Language :: Python :: 3.11', |
299 |
| - 'Topic :: Scientific/Engineering :: Visualization', |
300 |
| - ], |
301 |
| - |
302 |
| - package_dir={"": "lib"}, |
303 |
| - packages=find_packages("lib"), |
304 |
| - namespace_packages=["mpl_toolkits"], |
305 |
| - py_modules=["pylab"], |
306 | 271 | # Dummy extension to trigger build_ext, which will swap it out with
|
307 | 272 | # real extensions that can depend on numpy for the build.
|
308 | 273 | ext_modules=[Extension("", [])],
|
309 | 274 | package_data=package_data,
|
310 | 275 |
|
311 |
| - python_requires='>={}'.format('.'.join(str(n) for n in py_min_version)), |
312 |
| - # When updating the list of dependencies, add an api_changes/development |
313 |
| - # entry and also update the following places: |
314 |
| - # - lib/matplotlib/__init__.py (matplotlib._check_versions()) |
315 |
| - # - requirements/testing/minver.txt |
316 |
| - # - doc/devel/dependencies.rst |
317 |
| - # - .github/workflows/tests.yml |
318 |
| - # - environment.yml |
319 |
| - install_requires=[ |
320 |
| - "contourpy>=1.0.1", |
321 |
| - "cycler>=0.10", |
322 |
| - "fonttools>=4.22.0", |
323 |
| - "kiwisolver>=1.0.1", |
324 |
| - "numpy>=1.21", |
325 |
| - "packaging>=20.0", |
326 |
| - "pillow>=6.2.0", |
327 |
| - "pyparsing>=2.3.1", |
328 |
| - "python-dateutil>=2.7", |
329 |
| - ] + ( |
330 |
| - # Installing from a git checkout that is not producing a wheel. |
331 |
| - ["setuptools_scm>=7"] if ( |
332 |
| - Path(__file__).with_name(".git").exists() and |
333 |
| - os.environ.get("CIBUILDWHEEL", "0") != "1" |
334 |
| - ) else [] |
335 |
| - ), |
336 | 276 | extras_require={
|
337 | 277 | ':python_version<"3.10"': [
|
338 | 278 | "importlib-resources>=3.2.0",
|
339 | 279 | ],
|
340 | 280 | },
|
341 |
| - use_scm_version={ |
342 |
| - "version_scheme": "release-branch-semver", |
343 |
| - "local_scheme": "node-and-date", |
344 |
| - "write_to": "lib/matplotlib/_version.py", |
345 |
| - "parentdir_prefix_version": "matplotlib-", |
346 |
| - "fallback_version": "0.0+UNKNOWN", |
347 |
| - }, |
348 | 281 | cmdclass={
|
349 | 282 | "build_ext": BuildExtraLibraries,
|
350 | 283 | "build_py": BuildPy,
|
|
0 commit comments