forked from gridsingularity/gsy-e
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (40 loc) · 1.39 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
from setuptools import find_packages, setup
import os
d3a_interface_branch = "master"
if "BRANCH" in os.environ:
d3a_interface_branch = os.environ["BRANCH"]
try:
with open('requirements/dev.txt') as req:
REQUIREMENTS = [r.partition('#')[0] for r in req if not r.startswith('-e')]
# TODO: Workaround for https://github.com/ethereum/py-solc/issues/64
REQUIREMENTS.extend(
['d3a-interface @ '
f'git+https://github.com/gridsingularity/d3a-interface.git',
'py-solc @ git+https://github.com/Jonasmpi/py-solc.git'
])
except OSError:
# Shouldn't happen
REQUIREMENTS = []
with open("README.rst", "r") as readme:
README = readme.read()
# *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.
VERSION = '0.6.0'
setup(
name="d3a",
description="decentralised energy exchange developed by Grid Singularity",
long_description=README,
author='GridSingularity',
author_email='[email protected]',
url='https://github.com/gridsingularity/d3a',
version=VERSION,
packages=find_packages(where="src", exclude=["tests"]),
package_dir={"": "src"},
package_data={'d3a': ['contracts/*.sol', 'resources/*.csv']},
install_requires=REQUIREMENTS,
entry_points={
'console_scripts': [
'd3a = d3a.d3a_core.cli:main',
]
},
zip_safe=False,
)