-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
47 lines (38 loc) · 1.31 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
"""Setup module for the gsy-e-sdk."""
import os
from setuptools import find_packages, setup
from gsy_e_sdk import __version__
BRANCH = os.environ.get("BRANCH", "master")
try:
with open("requirements/base.txt", encoding="utf-8") as req:
REQUIREMENTS = [r.partition("#")[0] for r in req if not r.startswith("-e")]
REQUIREMENTS.extend(
["gsy-framework @ "
f"git+https://github.com/gridsingularity/gsy-framework@{BRANCH}"])
except OSError:
# Shouldn't happen
REQUIREMENTS = []
with open("README.md", "r", encoding="utf-8") as readme:
README = readme.read()
# *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.
VERSION = __version__
setup(
name="gsy-e-sdk",
description="GSy Exchange Software Development Kit",
long_description=README,
author="GridSingularity",
author_email="[email protected]",
url="https://github.com/gridsingularity/gsy-e-sdk",
version=VERSION,
packages=find_packages(where=".", exclude=["tests"]),
package_dir={"gsy_e_sdk": "gsy_e_sdk"},
package_data={},
install_requires=REQUIREMENTS,
entry_points={
"console_scripts": [
"gsy-e-sdk = gsy_e_sdk.cli:main",
"d3a-api-client = gsy_e_sdk.cli:main",
]
},
zip_safe=False,
)