forked from MarketSquare/robotframework-requests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (43 loc) · 1.54 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env python
from os.path import abspath, dirname, join
try:
from setuptools import setup
except ImportError as error:
from distutils.core import setup
version_file = join(dirname(abspath(__file__)), 'src', 'RequestsLibrary', 'version.py')
with open(version_file) as file:
code = compile(file.read(), version_file, 'exec')
exec(code)
DESCRIPTION = """
Robot Framework keyword library wrapper around the HTTP client library requests.
"""[1:-1]
CLASSIFIERS = """
Development Status :: 5 - Production/Stable
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python
Topic :: Software Development :: Testing
"""[1:-1]
setup(name = 'robotframework-requests',
version = VERSION,
description = 'Robot Framework keyword library wrapper around requests',
long_description = DESCRIPTION,
author = 'Bulkan Savun Evcimen',
author_email = 'bulkan@gmail.com',
url = 'http://github.com/bulkan/robotframework-requests',
license = 'MIT',
keywords = 'robotframework testing test automation http client requests',
platforms = 'any',
classifiers = CLASSIFIERS.splitlines(),
package_dir = {'' : 'src'},
packages = ['RequestsLibrary'],
package_data = {'RequestsLibrary': ['tests/*.txt']},
install_requires=[
'robotframework',
'requests'
],
)
""" From now on use this approach
python setup.py sdist upload
git tag -a 1.2.3 -m 'version 1.2.3'
git push --tags"""