This repository was archived by the owner on Jun 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
44 lines (36 loc) · 1.26 KB
/
setup.py
File metadata and controls
44 lines (36 loc) · 1.26 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
import os
from setuptools import find_packages, setup
def resolve_requirements(file):
if not os.path.isfile(file):
file = os.path.join(os.path.dirname(__file__), "requirements", file)
requirements = []
with open(file) as f:
req = f.read().splitlines()
for r in req:
if r.startswith("-r"):
requirements += resolve_requirements(
os.path.join(os.path.dirname(file), r.split(" ")[1]))
else:
requirements.append(r)
return requirements
def read_file(file):
with open(file) as f:
content = f.read()
return content
requirements = resolve_requirements(__file__.replace("setup.py",
"requirements.txt"))
readme = read_file(__file__.replace("setup.py", "README.md"))
setup(
name='deliravision-torch',
packages=find_packages(),
url='https://github.com/delira-dev/vision_torch',
test_suite="unittest",
long_description=readme,
long_description_content_type='text/markdown',
maintainer="Michael Baumgartner",
maintainer_email="[email protected]",
license='BSD-2',
install_requires=requirements,
tests_require=["coverage"],
python_requires=">=3.5"
)