forked from mdsol/rwslib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
67 lines (61 loc) · 1.83 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env python
import os
import sys
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
packages = [
'rwslib',
'rwslib.rws_requests',
'rwslib.builders',
'rwslib.extras',
'rwslib.extras.audit_event',
'rwslib.extras.rwscmd',
]
rwsinit = open('rwslib/__init__.py').read()
author = re.search("__author__ = '([^']+)'", rwsinit).group(1)
version = re.search("__version__ = '([^']+)'", rwsinit).group(1)
setup(
name='rwslib',
version=version,
description='Rave web services for Python',
long_description=open('README.md').read(),
author=author,
author_email="isparks@mdsol.com",
packages=packages,
package_dir={'rwslib': 'rwslib'},
include_package_data=True,
install_requires=('requests',
'lxml',
'httpretty',
'six',
'click',
'faker',
"enum34; python_version < '3.4'",
),
tests_require=['mock'],
license=open('LICENSE.txt').read(),
url='https://github.com/mdsol/rwslib/',
zip_safe=False,
test_suite='rwslib.tests.all_tests',
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: PyPy',
),
entry_points='''
[console_scripts]
rwscmd=rwslib.extras.rwscmd.rwscmd:rws
''',
)