|
33 | 33 | import setuptools
|
34 | 34 |
|
35 | 35 | PY3 = sys.version_info[:2] > (2, 7)
|
36 |
| -PY34 = sys.version_info[:2] > (3, 3) |
37 | 36 |
|
38 | 37 | with open(
|
39 | 38 | os.path.join(
|
|
46 | 45 | with open('requirements.txt') as f:
|
47 | 46 | required = f.read().splitlines()
|
48 | 47 |
|
| 48 | +with open('README.rst',) as f: |
| 49 | + long_description = f.read() |
| 50 | + |
49 | 51 |
|
50 | 52 | def _extension(modpath):
|
51 | 53 | """Make setuptools.Extension."""
|
@@ -168,9 +170,7 @@ def get_simple_vars_from_src(src):
|
168 | 170 | ast.List, ast.Set, ast.Dict, ast.Tuple
|
169 | 171 | )
|
170 | 172 | if PY3:
|
171 |
| - ast_data += (ast.Bytes,) |
172 |
| - if PY34: |
173 |
| - ast_data += (ast.NameConstant,) |
| 173 | + ast_data += (ast.Bytes, ast.NameConstant,) |
174 | 174 |
|
175 | 175 | tree = ast.parse(src)
|
176 | 176 |
|
@@ -204,16 +204,49 @@ def get_simple_vars_from_src(src):
|
204 | 204 |
|
205 | 205 | variables = get_simple_vars_from_src(source)
|
206 | 206 |
|
| 207 | +classifiers = [ |
| 208 | + 'Development Status :: 4 - Beta', |
| 209 | + |
| 210 | + 'Intended Audience :: Developers', |
| 211 | + 'Topic :: Software Development :: Libraries :: Python Modules', |
| 212 | + |
| 213 | + 'License :: OSI Approved :: Apache Software License', |
| 214 | + |
| 215 | + 'Programming Language :: Python :: 2', |
| 216 | + 'Programming Language :: Python :: 2.7', |
| 217 | + 'Programming Language :: Python :: 3', |
| 218 | + 'Programming Language :: Python :: 3.4', |
| 219 | + 'Programming Language :: Python :: 3.5', |
| 220 | + 'Programming Language :: Python :: 3.6', |
| 221 | + |
| 222 | + 'Programming Language :: Python :: Implementation :: CPython', |
| 223 | + 'Programming Language :: Python :: Implementation :: PyPy', |
| 224 | +] |
| 225 | + |
| 226 | +keywords = [ |
| 227 | + 'pooling', |
| 228 | + 'multithreading', |
| 229 | + 'threading', |
| 230 | + 'asyncio', |
| 231 | + 'gevent', |
| 232 | + 'development', |
| 233 | +] |
| 234 | + |
207 | 235 | setup_args = dict(
|
208 | 236 | name='threaded',
|
| 237 | + author=variables['__author__'], |
| 238 | + author_email=variables['__author_email__'], |
| 239 | + url=variables['__url__'], |
209 | 240 | version=variables['__version__'],
|
| 241 | + license=variables['__license__'], |
| 242 | + description=variables['__description__'], |
| 243 | + long_description=long_description, |
| 244 | + classifiers=classifiers, |
| 245 | + keywords=keywords, |
210 | 246 | extras_require={
|
211 | 247 | ':python_version == "2.7"': [
|
212 | 248 | 'futures>=3.1',
|
213 | 249 | ],
|
214 |
| - ':python_version == "3.3"': [ |
215 |
| - 'asyncio>=3.4', |
216 |
| - ], |
217 | 250 | 'gevent': [
|
218 | 251 | 'gevent >= 1.2'
|
219 | 252 | ],
|
|
0 commit comments