|
1 | 1 | #!/usr/bin/env python |
2 | 2 |
|
| 3 | +import io |
3 | 4 | import sys |
4 | 5 | from os.path import abspath, dirname, join |
5 | 6 |
|
|
8 | 9 | except ImportError: |
9 | 10 | from distutils.core import setup |
10 | 11 |
|
11 | | - |
12 | 12 | PY3 = sys.version_info > (3,) |
13 | 13 |
|
14 | | -VERSION = None |
15 | | -version_file = join(dirname(abspath(__file__)), 'src', 'RequestsLibrary', 'version.py') |
16 | | -with open(version_file) as file: |
17 | | - code = compile(file.read(), version_file, 'exec') |
18 | | - exec(code) |
19 | | - |
20 | | -DESCRIPTION = """ |
21 | | -Robot Framework keyword library wrapper around the HTTP client library requests. |
22 | | -"""[1:-1] |
23 | | - |
24 | 14 | CLASSIFIERS = """ |
25 | 15 | Development Status :: 5 - Production/Stable |
26 | 16 | License :: OSI Approved :: MIT License |
27 | 17 | Operating System :: OS Independent |
28 | 18 | Programming Language :: Python |
| 19 | +Programming Language :: Python :: 2 |
| 20 | +Programming Language :: Python :: 2.7 |
| 21 | +Programming Language :: Python :: 3 |
| 22 | +Programming Language :: Python :: 3.6 |
| 23 | +Programming Language :: Python :: 3.7 |
| 24 | +Programming Language :: Python :: 3.8 |
| 25 | +Programming Language :: Python :: 3.9 |
29 | 26 | Topic :: Software Development :: Testing |
30 | 27 | """[1:-1] |
31 | 28 |
|
32 | 29 | TEST_REQUIRE = ['robotframework>=3.2.1', 'pytest', 'flask', 'six', 'coverage', 'flake8'] if PY3 \ |
33 | 30 | else ['robotframework>=3.2.1', 'pytest', 'flask', 'coverage', 'flake8', 'mock'] |
34 | 31 |
|
| 32 | +VERSION = None |
| 33 | +version_file = join(dirname(abspath(__file__)), 'src', 'RequestsLibrary', 'version.py') |
| 34 | +with open(version_file) as file: |
| 35 | + code = compile(file.read(), version_file, 'exec') |
| 36 | + exec(code) |
| 37 | + |
| 38 | +with io.open('README.md', mode='rt', encoding='utf-8') as file: |
| 39 | + readme = file.read() |
| 40 | + |
35 | 41 | setup(name='robotframework-requests', |
36 | 42 | version=VERSION, |
37 | 43 | description='Robot Framework keyword library wrapper around requests', |
38 | | - long_description=DESCRIPTION, |
| 44 | + long_description=readme, |
| 45 | + long_description_content_type='text/markdown', |
39 | 46 | author='Bulkan Savun Evcimen', |
40 | 47 | author_email='bulkan@gmail.com', |
41 | 48 | maintainer='Luca Giovenzana', |
|
0 commit comments