|
1 | 1 | #!/usr/bin/env python |
2 | 2 | # -*- coding: utf-8 -*- |
3 | 3 |
|
4 | | -#try: |
5 | | -# from distutils2.core import setup |
6 | | -#except: |
7 | | -# try: |
8 | | -# from distutils.core import setup |
9 | | -# except: |
10 | | -# from setuptools import setup |
11 | | - |
12 | 4 | from setuptools import setup |
13 | 5 |
|
14 | 6 | PACKAGE = 'pyral' |
|
24 | 16 | DOWNLOADABLE_ZIP = '%s/%s-%s.zip' % (GITHUB_DISTS, PACKAGE, VERSION) |
25 | 17 | SHORT_DESCRIPTION = 'README.short' |
26 | 18 | FULL_DESCRIPTION = 'README.rst' |
27 | | -LONG_DESCRIPTION = "" |
28 | | -with open(FULL_DESCRIPTION, 'r') as d: |
29 | | - LONG_DESCRIPTION = d.read() |
| 19 | + |
| 20 | +from os import path |
| 21 | +desc_file = path.join(path.abspath(path.dirname(__file__)), FULL_DESCRIPTION) |
| 22 | +with open(desc_file, encoding='utf-8') as df: long_description = df.read() |
30 | 23 |
|
31 | 24 | MINIMUM_REQUESTS_VERSION = '2.12.5' # although 2.22.x is recommended |
32 | 25 | REQUIRES = ['six', |
|
43 | 36 | 'Programming Language :: Python :: 3.5', |
44 | 37 | 'Programming Language :: Python :: 3.6', |
45 | 38 | 'Programming Language :: Python :: 3.7', |
| 39 | + 'Programming Language :: Python :: 3.8', |
46 | 40 | 'Topic :: Internet :: WWW/HTTP', |
47 | 41 | 'Topic :: Software Development :: Libraries', |
48 | 42 | ] |
|
56 | 50 | author_email=AUTHOR_EMAIL, |
57 | 51 | url=GITHUB_SITE, |
58 | 52 | download_url=DOWNLOADABLE_ZIP, |
59 | | - long_description=LONG_DESCRIPTION, |
| 53 | + long_description=long_description, |
60 | 54 | long_description_type='text/x-rst', |
61 | 55 | license=LICENSE, |
62 | 56 | keywords=KEYWORDS, |
|
0 commit comments