-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
77 lines (60 loc) · 2 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
#!/usr/bin/env python
import os
from setuptools import find_packages, setup, Command
long_description = '''
**RoPWR** is a library written in Python implementing several mathematical
programming formulations to compute the optimal continuous/discontinuous
piecewise polynomial regression given a list of split points.
Read the documentation at: http://gnpalencia.org/ropwr/
RoPWR is distributed under the Apache Software License (Apache 2.0).
'''
class CleanCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
os.system('rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info')
# install requirements
install_requires = [
'cvxpy>=1.1.14',
'numpy>=1.16',
'scikit-learn>=0.22',
'scipy>=1.6.1'
]
# test requirements
extras_require = {
'test': ['pytest', 'coverage'],
'ecos': ['ecos'],
}
# Read version file
version_info = {}
with open("ropwr/_version.py") as f:
exec(f.read(), version_info)
setup(
name="ropwr",
version=version_info['__version__'],
description="RoPWR: Robust Piecewise Regression",
long_description=long_description,
author="Guillermo Navas-Palencia",
author_email="[email protected]",
packages=find_packages(),
platforms="any",
include_package_data=True,
license="Apache Licence 2.0",
url="https://github.com/guillermo-navas-palencia/ropwr",
cmdclass={'clean': CleanCommand},
python_requires='>=3.7',
install_requires=install_requires,
extras_require=extras_require,
classifiers=[
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3']
)