-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
42 lines (35 loc) · 1.15 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
# -*- coding: utf-8 -*-
from setuptools import setup
import subprocess
import os
PACKAGE = "vartests"
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
out = subprocess.Popen(['python', os.path.join('src', PACKAGE, 'version.py')], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
stdout, _ = out.communicate()
version = stdout.decode("utf-8").strip()
print(version)
modules = \
[PACKAGE]
install_requires = \
['arch>=5.0.1,<6.0.0',
'pandas>=1.3.4,<2.0.0',
'pygosolnp>=2021.5.1,<2022.0.0',
'tqdm>=4.62.3,<5.0.0']
setup_kwargs = {
'name': PACKAGE,
'version': version,
'description': 'Statistic tests for Value at Risk (VaR) Models.',
'long_description': long_description,
'long_description_content_type': 'text/markdown',
'author': 'Rafael Rodrigues',
'author_email': '[email protected]',
'maintainer': None,
'maintainer_email': None,
'url': f"https://github.com/rafa-rod/{PACKAGE}",
'py_modules': modules,
'include_package_data': True,
'install_requires': install_requires,
'python_requires': '>=3.8,<4.0',
}
setup(**setup_kwargs)