|
4 | 4 |
|
5 | 5 | try: |
6 | 6 | from setuptools import setup |
7 | | -except ImportError as error: |
| 7 | +except ImportError: |
8 | 8 | from distutils.core import setup |
9 | 9 |
|
| 10 | +VERSION = None |
10 | 11 | version_file = join(dirname(abspath(__file__)), 'src', 'RequestsLibrary', 'version.py') |
11 | | - |
12 | 12 | with open(version_file) as file: |
13 | | - code = compile(file.read(), version_file, 'exec') |
14 | | - exec(code) |
| 13 | + code = compile(file.read(), version_file, 'exec') |
| 14 | + exec(code) |
15 | 15 |
|
16 | 16 | DESCRIPTION = """ |
17 | 17 | Robot Framework keyword library wrapper around the HTTP client library requests. |
|
26 | 26 | Topic :: Software Development :: Testing |
27 | 27 | """[1:-1] |
28 | 28 |
|
29 | | -setup(name = 'robotframework-requests', |
30 | | - version = VERSION, |
31 | | - description = 'Robot Framework keyword library wrapper around requests', |
32 | | - long_description = DESCRIPTION, |
33 | | - author = 'Bulkan Savun Evcimen', |
34 | | - author_email = 'bulkan@gmail.com', |
35 | | - maintainer = 'Luca Giovenzana', |
36 | | - maintainer_email = 'luca@giovenzana.org', |
37 | | - url = 'http://github.com/bulkan/robotframework-requests', |
38 | | - license = 'MIT', |
39 | | - keywords = 'robotframework testing test automation http client requests', |
40 | | - platforms = 'any', |
41 | | - classifiers = CLASSIFIERS.splitlines(), |
42 | | - package_dir = {'' : 'src'}, |
43 | | - packages = ['RequestsLibrary'], |
| 29 | +setup(name='robotframework-requests', |
| 30 | + version=VERSION, |
| 31 | + description='Robot Framework keyword library wrapper around requests', |
| 32 | + long_description=DESCRIPTION, |
| 33 | + author='Bulkan Savun Evcimen', |
| 34 | + author_email='bulkan@gmail.com', |
| 35 | + maintainer='Luca Giovenzana', |
| 36 | + maintainer_email='luca@giovenzana.org', |
| 37 | + url='http://github.com/bulkan/robotframework-requests', |
| 38 | + license='MIT', |
| 39 | + keywords='robotframework testing test automation http client requests', |
| 40 | + platforms='any', |
| 41 | + classifiers=CLASSIFIERS.splitlines(), |
| 42 | + package_dir={'': 'src'}, |
| 43 | + packages=['RequestsLibrary'], |
44 | 44 | install_requires=[ |
45 | 45 | 'robotframework', |
46 | 46 | 'requests' |
47 | 47 | ], |
48 | 48 | extras_require={ |
49 | 49 | 'test': ['flask'] |
50 | | - }, |
51 | | -) |
| 50 | + }) |
52 | 51 |
|
53 | 52 | """ Official release from master |
54 | 53 | # make sure the setup version has been increased |
|
0 commit comments