-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsetup.py
44 lines (39 loc) · 1.37 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
import os
from setuptools import find_packages, setup
gsy_framework_branch = os.environ.get("GSY_FRAMEWORK_BRANCH", "master")
try:
with open("requirements/dev.txt", encoding="utf-8") as req:
REQUIREMENTS = [r.partition("#")[0] for r in req if not r.startswith("-e")]
REQUIREMENTS.extend(
[
f"gsy-framework @ "
f"git+https://github.com/gridsingularity/gsy-framework.git@{gsy_framework_branch}"
]
)
except OSError:
# Shouldn't happen
REQUIREMENTS = []
with open("README.rst", "r", encoding="utf-8") as readme:
README = readme.read()
# *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.
VERSION = "1.3.0"
setup(
name="gsy-e",
description="decentralised energy exchange developed by Grid Singularity",
long_description=README,
author="GridSingularity",
author_email="contact@gridsingularity.com",
url="https://github.com/gridsingularity/gsy-e",
version=VERSION,
packages=find_packages(where="src", exclude=["tests"]),
package_dir={"": "src"},
package_data={"gsy_e": ["resources/*.csv", "setup/gsy_e_settings.json"]},
install_requires=REQUIREMENTS,
entry_points={
"console_scripts": [
"gsy-e = gsy_e.gsy_e_core.cli:main",
"d3a = gsy_e.gsy_e_core.cli:main",
]
},
zip_safe=False,
)