-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
31 lines (27 loc) · 1.02 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
"""Install packages as defined in this file into the Python environment."""
from setuptools import setup, find_packages
import re
# The version of this tool is based on the following steps:
# https://packaging.python.org/guides/single-sourcing-package-version/
VERSION = {}
REQUIREMENTS = [re.sub(r'(git\+.*egg=(.*))', r'\2 @ \1', i.strip()) for i in open("requirements.txt").readlines()]
with open("./cached_candles/__init__.py") as fp:
content = fp.read()
split_imports = content.split("from")
constants = split_imports[0]
# pylint: disable=W0122
exec(constants, VERSION)
setup(
name="cached_candles",
author="Martin Trapp",
author_email="[email protected]",
description="Fetches crypto candles with cache.",
version=VERSION.get("__version__", "0.0.0"),
packages=find_packages(where=".", exclude=["tests"]),
install_requires=REQUIREMENTS,
classifiers=[
"Programming Language :: Python :: 3.0",
"Topic :: Utilities",
"Development Status :: 3 - Alpha",
],
)