|
114 | 114 | # this: |
115 | 115 | cpp_compile_args.append('/std:c++20') |
116 | 116 |
|
117 | | -def readfile(filename): |
118 | | - with open(filename, 'r') as f: # pylint:disable=unspecified-encoding |
119 | | - return f.read() |
120 | | - |
121 | 117 | GREENLET_SRC_DIR = 'src/greenlet/' |
122 | 118 | GREENLET_HEADER_DIR = GREENLET_SRC_DIR |
123 | 119 | GREENLET_HEADER = GREENLET_HEADER_DIR + 'greenlet.h' |
@@ -197,72 +193,9 @@ def _find_impl_headers(): |
197 | 193 | ] |
198 | 194 |
|
199 | 195 |
|
200 | | -def get_greenlet_version(): |
201 | | - with open('src/greenlet/__init__.py') as f: # pylint:disable=unspecified-encoding |
202 | | - looking_for = '__version__ = \'' |
203 | | - for line in f: |
204 | | - if line.startswith(looking_for): |
205 | | - version = line[len(looking_for):-2] |
206 | | - return version |
207 | | - raise ValueError("Unable to find version") |
208 | | - |
209 | | - |
210 | 196 | setup( |
211 | | - name="greenlet", |
212 | | - version=get_greenlet_version(), |
213 | | - description='Lightweight in-process concurrent programming', |
214 | | - long_description=readfile("README.rst"), |
215 | | - long_description_content_type="text/x-rst", |
216 | | - url="https://greenlet.readthedocs.io/", |
217 | | - keywords="greenlet coroutine concurrency threads cooperative", |
218 | | - author="Alexey Borzenkov", |
219 | | - author_email="snaury@gmail.com", |
220 | | - maintainer='Jason Madden', |
221 | | - maintainer_email='jason@seecoresoftware.com', |
222 | | - project_urls={ |
223 | | - 'Bug Tracker': 'https://github.com/python-greenlet/greenlet/issues', |
224 | | - 'Source Code': 'https://github.com/python-greenlet/greenlet/', |
225 | | - 'Documentation': 'https://greenlet.readthedocs.io/', |
226 | | - 'Changes': 'https://greenlet.readthedocs.io/en/latest/changes.html', |
227 | | - }, |
228 | | - license="MIT AND Python-2.0", |
229 | | - license_files=[ |
230 | | - 'LICENSE', |
231 | | - 'LICENSE.PSF', |
232 | | - ], |
233 | | - platforms=['any'], |
234 | 197 | package_dir={'': 'src'}, |
235 | 198 | packages=find_packages('src'), |
236 | | - include_package_data=True, |
237 | 199 | headers=headers, |
238 | 200 | ext_modules=ext_modules, |
239 | | - classifiers=[ |
240 | | - "Development Status :: 5 - Production/Stable", |
241 | | - 'Intended Audience :: Developers', |
242 | | - 'Natural Language :: English', |
243 | | - 'Programming Language :: C', |
244 | | - 'Programming Language :: Python', |
245 | | - 'Programming Language :: Python :: 3', |
246 | | - 'Programming Language :: Python :: 3 :: Only', |
247 | | - 'Programming Language :: Python :: 3.10', |
248 | | - 'Programming Language :: Python :: 3.11', |
249 | | - 'Programming Language :: Python :: 3.12', |
250 | | - 'Programming Language :: Python :: 3.13', |
251 | | - 'Programming Language :: Python :: 3.14', |
252 | | - 'Operating System :: OS Independent', |
253 | | - 'Topic :: Software Development :: Libraries :: Python Modules' |
254 | | - ], |
255 | | - extras_require={ |
256 | | - 'docs': [ |
257 | | - 'Sphinx', |
258 | | - 'furo', |
259 | | - ], |
260 | | - 'test': [ |
261 | | - 'objgraph', |
262 | | - 'psutil', |
263 | | - 'setuptools', |
264 | | - ], |
265 | | - }, |
266 | | - python_requires=">=3.10", |
267 | | - zip_safe=False, |
268 | 201 | ) |
0 commit comments