forked from BrelLibrary/brel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
127 lines (119 loc) · 3.55 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
"""Python setup.py for brel package"""
import io
import os
from setuptools import find_packages, setup
def read(*paths, **kwargs):
"""Read the contents of a text file safely.
>>> read("brel", "VERSION")
'0.1.0'
>>> read("README.md")
...
"""
content = ""
with io.open(
os.path.join(os.path.dirname(__file__), *paths),
encoding=kwargs.get("encoding", "utf8"),
) as open_file:
content = open_file.read().strip()
return content
def read_requirements(path):
return [
line.strip()
for line in read(path).split("\n")
if not line.startswith(('"', "#", "-", "git+"))
]
setup(
name="brel-xbrl",
version=read("brel", "VERSION"),
python_requires=">=3.10",
description="An XBRL parser for Python",
url="https://github.com/BrelLibrary/brel/",
long_description=read("README.md"),
long_description_content_type="text/markdown",
author="PapediPoo, ghislainfourny",
packages=find_packages(exclude=["tests", ".github"]),
package_data={"": ["*.json"]},
install_requires=[
"certifi==2023.11.17",
"charset-normalizer==3.3.2",
"idna==3.6",
"lxml==5.1.0",
"markdown-it-py==3.0.0",
"mdurl==0.1.2",
"prettytable==3.9.0",
"Pygments==2.17.2",
"python-dateutil==2.8.2",
"requests==2.31.0",
"rich==13.7.1",
"six==1.16.0",
"urllib3==2.1.0",
"wcwidth==0.2.13",
],
entry_points={"console_scripts": ["brel = brel.__main__:main"]},
setup_requires=["pytest-runner"],
tests_require=["pytest"],
extras_require={
"test": [
"black==23.12.1",
"certifi==2023.11.17",
"charset-normalizer==3.3.2",
"click==8.1.7",
"coverage==7.4.3",
"databind.core==4.4.2",
"databind.json==4.4.2",
"Deprecated==1.2.14",
"docspec==2.2.1",
"docspec-python==2.2.1",
"docstring_parser==0.11",
"ghp-import==2.1.0",
"graphviz==0.20.1",
"idna==3.6",
"importlib-metadata==7.0.1",
"iniconfig==2.0.0",
"Jinja2==3.1.3",
"lxml==5.1.0",
"Markdown==3.5.2",
"markdown-it-py==3.0.0",
"MarkupSafe==2.1.5",
"mdurl==0.1.2",
"mergedeep==1.3.4",
"mkdocs==1.5.3",
"mypy==1.8.0",
"mypy-extensions==1.0.0",
"nr-date==2.1.0",
"nr-stream==1.1.5",
"nr.util==0.8.12",
"numpy==1.26.4",
"packaging==23.2",
"pandas==2.2.1",
"pathspec==0.12.1",
"platformdirs==4.2.0",
"pluggy==1.4.0",
"prettytable==3.9.0",
"pydoc-markdown==4.8.2",
"Pygments==2.17.2",
"pytest==8.0.2",
"pytest-cov==4.1.0",
"python-dateutil==2.8.2",
"pytz==2024.1",
"PyYAML==6.0.1",
"pyyaml_env_tag==0.1",
"requests==2.31.0",
"rich==13.7.1",
"six==1.16.0",
"tomli==2.0.1",
"tomli_w==1.0.0",
"typeapi==2.1.2",
"types-python-dateutil==2.8.19.20240106",
"types-requests==2.31.0.20240218",
"typing_extensions==4.6.3",
"tzdata==2024.1",
"urllib3==2.1.0",
"watchdog==4.0.0",
"wcwidth==0.2.13",
"wrapt==1.16.0",
"yapf==0.40.2",
"zipp==3.17.0",
]
},
)