forked from open-lasso-python/lasso-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
54 lines (43 loc) · 1.29 KB
/
setup.py
File metadata and controls
54 lines (43 loc) · 1.29 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env python
import unittest
from setuptools import find_packages, setup
def get_version():
return "1.5.2post1"
def collect_tests():
"""Sets up unit testing"""
test_loader = unittest.TestLoader()
test_suite = test_loader.discover(".", pattern="test_*.py")
return test_suite
def get_requirements():
"""Collects requirements"""
with open("requirements.txt", "r") as fp:
requirements = [line.strip() for line in fp if line.strip()]
print(requirements)
return requirements
def main():
setup(
name="lasso-python",
version=get_version(),
description="LASSO Python Library",
author="open-lasso-python community",
url="https://github.com/open-lasso-python/lasso-python",
license="BSD 3-Clause",
packages=find_packages(),
install_requires=get_requirements(),
package_data={
"": [
"*.png",
"*.html",
"*.js",
"*.so",
"*.so.5",
"*.dll",
"*.txt",
"*.css",
],
},
test_suite="setup.collect_tests",
zip_safe=False,
)
if __name__ == "__main__":
main()