|
1 | 1 | #!/usr/bin/env python |
2 | 2 |
|
| 3 | +import sys |
3 | 4 | from os.path import join, dirname |
4 | 5 | from setuptools import setup |
5 | 6 |
|
6 | | -execfile(join(dirname(__file__), 'CSVLibrary', 'version.py')) |
| 7 | +CURDIR = dirname(__file__) |
| 8 | +with open(join(CURDIR, 'requirements.txt')) as f: |
| 9 | + REQUIREMENTS = f.read().splitlines() |
7 | 10 |
|
8 | | -DESCRIPTION = """ |
9 | | -CSV file support for Robot Framework. |
10 | | -"""[1:-1] |
| 11 | +filename = join(CURDIR, 'CSVLibrary', 'version.py') |
| 12 | +if sys.version_info.major >= 3: |
| 13 | + exec(compile(open(filename).read(), filename, 'exec')) |
| 14 | +else: |
| 15 | + execfile(filename) |
| 16 | + |
| 17 | +with open(join(CURDIR, 'README.md')) as f: |
| 18 | + DESCRIPTION = f.read() |
11 | 19 |
|
12 | 20 | setup(name = 'robotframework-csvlibrary', |
13 | 21 | version = VERSION, |
14 | 22 | description = 'CSV library for Robot Framework', |
15 | 23 | long_description = DESCRIPTION, |
| 24 | + long_description_content_type='text/markdown', |
16 | 25 | author = 'Marcin Mierzejewski', |
17 | 26 | author_email = '<[email protected]>', |
18 | 27 | url = 'https://github.com/s4int/robotframework-CSVLibrary', |
|
24 | 33 | "License :: OSI Approved :: Apache Software License", |
25 | 34 | "Operating System :: OS Independent", |
26 | 35 | "Programming Language :: Python", |
27 | | - "Topic :: Software Development :: Testing" |
28 | | - ], |
29 | | - install_requires = [ |
30 | | - 'robotframework >= 2.6.0', |
| 36 | + "Topic :: Software Development :: Testing", |
| 37 | + 'Programming Language :: Python :: 2', |
| 38 | + 'Programming Language :: Python :: 2.7', |
| 39 | + 'Programming Language :: Python :: 3', |
| 40 | + 'Programming Language :: Python :: 3.6', |
31 | 41 | ], |
| 42 | + install_requires = REQUIREMENTS, |
32 | 43 | packages = ['CSVLibrary'], |
33 | 44 | ) |
0 commit comments