forked from Stable-X/StableNormal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
32 lines (25 loc) · 892 Bytes
/
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
from pathlib import Path
from setuptools import setup, find_packages
setup_path = Path(__file__).parent
README = (setup_path / "README.md").read_text(encoding="utf-8")
with open("README.md", "r") as fh:
long_description = fh.read()
def split_requirements(requirements):
install_requires = []
dependency_links = []
for requirement in requirements:
if requirement.startswith("git+"):
dependency_links.append(requirement)
else:
install_requires.append(requirement)
return install_requires, dependency_links
with open("./requirements.txt", "r") as f:
requirements = f.read().splitlines()
install_requires, dependency_links = split_requirements(requirements)
setup(
name = "stablenormal",
packages=find_packages(),
description=long_description,
long_description=README,
install_requires=install_requires
)