forked from paxswill/evesrp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·92 lines (84 loc) · 2.38 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/usr/bin/env python
from setuptools import setup, find_packages
import re
import sys
import os.path
setup_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(setup_dir, 'src', 'evesrp', '__init__.py'), 'r') as f:
init_contents = ''
for line in f:
init_contents += line + '\n'
version = re.search(r'^__version__ *= *u?[\'"]([^\'"]*)[\'"]', init_contents,
re.MULTILINE)
if version:
version = version.group(1)
else:
raise Exception(u"Unable to find __version__ in evesrp/__init__.py")
test_requirements = [
'beautifulsoup >= 4.4.1',
'coverage >= 3.7.1',
'httmock >= 1.2.2',
]
# unittest.mock was added in 3.3, but is available as a backport as the 'mock'
# package on PyPI.
if sys.version_info.major < 3 or sys.version_info.minor < 3:
test_requirements.append('mock >= 1.0.1')
setup(
name=u'EVE-SRP',
version=version,
description=u'EVE Ship Replacement Program Helper',
author=u'Will Ross',
author_email=u'[email protected]',
url=u'https://github.com/paxswill/evesrp',
license='BSD',
packages=find_packages(where='src'),
package_dir={
'': 'src'
},
include_package_data=True,
classifiers=[
u'Development Status :: 4 - Beta',
u'Framework :: Flask',
u'License :: OSI Approved :: BSD License',
u'Programming Language :: Python :: 3',
u'Programming Language :: Python :: 2',
u'Topic :: Games/Entertainment',
],
install_requires=[
'Babel >= 2.2.0',
'Flask >= 0.10.1',
'Flask-Babel >= 0.9',
'Flask-Login >= 0.3.2',
'Flask-Migrate ~= 1.7.0',
'Flask-Script == 2.0.5',
'Flask-SQLAlchemy == 2.0',
'Flask-WTF == 0.10.2',
'SQLAlchemy ~= 1.0.11',
'Werkzeug >= 0.9.4',
'WTForms >= 2.0.0',
'alembic ~= 0.8.4',
'requests >= 2.9.1',
'six == 1.10.0',
'iso8601 >= 0.1.5',
],
test_suite='tests_python',
tests_require=test_requirements,
entry_points={
'console_scripts': [
'evesrp = evesrp.util.manage:main',
],
},
extras_require={
'BraveCore': [
'braveapi == 0.1',
'ecdsa == 0.11',
],
'OAuth': [
'requests-oauthlib >= 0.6.0',
],
'Sentry': [
'raven[flask] >= 5.10.2',
],
},
zip_safe=False,
)