-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (30 loc) · 1.02 KB
/
setup.py
File metadata and controls
39 lines (30 loc) · 1.02 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
from setuptools import setup, find_packages
import re
with open('README.md') as fp:
long_description = fp.read()
def parse_req_line(line):
line = line.strip()
if not line or line[0] == '#':
return None
return line
def load_requirements(file_name):
with open(file_name) as fp:
reqs = filter(None, (parse_req_line(line) for line in fp))
return list(reqs)
install_requires = load_requirements('requirements.txt')
tests_require = load_requirements('requirements-dev.txt')
setup(
name="lr2d",
version='0.1.0',
packages=find_packages(include=['lr2d', 'lr2d.*']),
install_requires=install_requires,
test_suite="tests",
tests_require=tests_require,
description="Linear Regression 2-D of housing price against house area",
long_description=long_description,
long_description_content_type="text/markdown",
maintainer="Xander I/O Data",
maintainer_email="alexander.n.leano@gmail.com",
url="https://www.xanderiodata.com",
python_requires=">=3.7, <4",
)