33 lines
892 B
Python
33 lines
892 B
Python
|
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 = "MeshAnything",
|
||
|
packages=find_packages(),
|
||
|
description=long_description,
|
||
|
long_description=README,
|
||
|
install_requires=install_requires
|
||
|
)
|