-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
62 lines (53 loc) · 1.93 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
import os
from distutils.util import convert_path
from setuptools import find_packages, setup
# from pip.req import parse_requirements
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
# requirements
# install_reqs = parse_requirements('requirements.txt', session='hack')
# reqs = [str(ir.req) for ir in install_reqs]
def read_version():
main_ns = {}
ver_path = convert_path('tradingdb/version.py')
with open(ver_path) as ver_file:
exec(ver_file.read(), main_ns)
return main_ns['__version__']
version = read_version()
requirements = [
'djangorestframework',
'django-eth-events==2.4.1',
'ethereum==1.6.1',
'eth-abi==1.0.0',
'eth-utils==1.0.2'
]
setup(
name='tradingdb',
version=version,
packages=find_packages(exclude=["*.tests",
"*.tests.*",
"tests.*",
"tests"]),
include_package_data=True,
install_requires=requirements,
license='MIT License',
description='The prediction markets tradingdb app',
url='https://github.com/gnosis/pm-trading-db',
author='Gnosis Inc.',
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: X.Y', # replace "X.Y" as appropriate
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
# Replace these appropriately if you are stuck on Python 2.
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
data_files=[("", ["LICENSE"])],
)