forked from quantmind/ccy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
68 lines (55 loc) · 1.9 KB
/
setup.py
File metadata and controls
68 lines (55 loc) · 1.9 KB
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
63
64
65
66
67
68
import os
import ccy
from setuptools import find_packages, setup
def read(name):
filename = os.path.join(os.path.dirname(__file__), name)
with open(filename, encoding="utf8") as fp:
return fp.read()
def requirements(name):
install_requires = []
dependency_links = []
for line in read(name).split("\n"):
if line.startswith("-e "):
link = line[3:].strip()
if link == ".":
continue
dependency_links.append(link)
line = link.split("=")[1]
line = line.strip()
if line:
install_requires.append(line)
return install_requires, dependency_links
install_requires = requirements("dev/requirements.txt")[0]
tests_require = requirements("dev/requirements-dev.txt")[0]
meta = dict(
name="ccy",
version=ccy.__version__,
description=ccy.__doc__,
author="Luca Sbardella",
author_email="luca@quantmind.com",
maintainer_email="luca@quantmind.com",
url="https://github.com/quantmind/ccy",
license="BSD",
long_description=read("README.rst"),
packages=find_packages(include=["ccy", "ccy.*"]),
install_requires=install_requires,
tests_require=tests_require,
zip_safe=False,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Plugins",
"Intended Audience :: Developers",
"Intended Audience :: Financial and Insurance Industry",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Office/Business :: Financial",
"Topic :: Utilities",
],
)
if __name__ == "__main__":
setup(**meta)