-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
74 lines (61 loc) · 2.25 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
"""Create instructions to build the MRC package."""
import os
import runpy
from setuptools import find_packages, setup
base_dir = os.path.dirname(os.path.abspath(__file__))
MRCpy = runpy.run_path(os.path.join
(base_dir,
'MRCpy',
'__init__.py'))
def parse_requirements_file(filename):
"""
Read the lines of the requirements file.
Parameters
----------
filename : str
The filename to read
Returns
-------
Array of lines of the requirements file.
"""
with open(filename) as input_file:
return input_file.read().splitlines()
if __name__ == '__main__':
requirements = parse_requirements_file('requirements.txt')
install_requires = []
# Add all the requirements.
for requirement in requirements:
install_requires.append(requirement)
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name="MRCpy",
version=MRCpy['__version__'],
install_requires=install_requires,
description="Minimax Risk Classification",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/MachineLearningBCAM/MRCpy",
packages=find_packages(),
# py_modules=["MRCpy", "MRCpy.phi"],
# "phi.PhiGaussian", "phi.PhiLinear", "phi.PhiThreshold"],
# package_dir={'': 'minimax_risk_classifiers'},
classifiers=[
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Machine Learning",
"Topic :: Scientific/Engineering :: Mathematics",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8"
],
data_files=[
"README.md"
],
test_suite='tests',
include_package_data=True,
package_data={'': ['datasets/data/*', 'datasets/descr/*']},
python_requires='>=3.6',
zip_safe=False
)