73
73
]
74
74
75
75
76
- classifiers = [
77
- 'Development Status :: 5 - Production/Stable' ,
78
- 'Framework :: Matplotlib' ,
79
- 'Intended Audience :: Science/Research' ,
80
- 'Intended Audience :: Education' ,
81
- 'License :: OSI Approved :: Python Software Foundation License' ,
82
- 'Programming Language :: Python' ,
83
- 'Programming Language :: Python :: 3' ,
84
- 'Programming Language :: Python :: 3.6' ,
85
- 'Programming Language :: Python :: 3.7' ,
86
- 'Programming Language :: Python :: 3.8' ,
87
- 'Topic :: Scientific/Engineering :: Visualization' ,
88
- ]
89
-
90
-
91
76
class NoopTestCommand (TestCommand ):
92
77
def __init__ (self , dist ):
93
78
print ("Matplotlib does not support running tests with "
@@ -222,10 +207,6 @@ def run(self):
222
207
with open ('lib/matplotlib/mpl-data/matplotlibrc' , 'w' ) as fd :
223
208
fd .write ('' .join (template_lines ))
224
209
225
- # Use Readme as long description
226
- with open ('README.rst' , encoding = 'utf-8' ) as fd :
227
- long_description = fd .read ()
228
-
229
210
# Finally, pass this all along to distutils to do the heavy lifting.
230
211
setup (
231
212
name = "matplotlib" ,
@@ -242,10 +223,24 @@ def run(self):
242
223
'Forum' : 'https://discourse.matplotlib.org/' ,
243
224
'Donate' : 'https://numfocus.org/donate-to-matplotlib'
244
225
},
245
- long_description = long_description ,
226
+ long_description = Path ( "README.rst" ). read_text ( encoding = "utf-8" ) ,
246
227
long_description_content_type = "text/x-rst" ,
247
228
license = "PSF" ,
248
229
platforms = "any" ,
230
+ classifiers = [
231
+ 'Development Status :: 5 - Production/Stable' ,
232
+ 'Framework :: Matplotlib' ,
233
+ 'Intended Audience :: Science/Research' ,
234
+ 'Intended Audience :: Education' ,
235
+ 'License :: OSI Approved :: Python Software Foundation License' ,
236
+ 'Programming Language :: Python' ,
237
+ 'Programming Language :: Python :: 3' ,
238
+ 'Programming Language :: Python :: 3.6' ,
239
+ 'Programming Language :: Python :: 3.7' ,
240
+ 'Programming Language :: Python :: 3.8' ,
241
+ 'Topic :: Scientific/Engineering :: Visualization' ,
242
+ ],
243
+
249
244
package_dir = {"" : "lib" },
250
245
packages = find_packages ("lib" ),
251
246
namespace_packages = ["mpl_toolkits" ],
@@ -254,7 +249,6 @@ def run(self):
254
249
# real extensions that can depend on numpy for the build.
255
250
ext_modules = [Extension ("" , [])],
256
251
package_data = package_data ,
257
- classifiers = classifiers ,
258
252
259
253
python_requires = '>={}' .format ('.' .join (str (n ) for n in min_version )),
260
254
setup_requires = [
0 commit comments