2021-07-05 11:18:12 +08:00
|
|
|
import setuptools
|
2021-07-13 08:06:45 +08:00
|
|
|
import os
|
|
|
|
import pathlib
|
|
|
|
|
|
|
|
here = pathlib.Path(__file__).parent.resolve()
|
|
|
|
long_description = (here / "README.md").read_text(encoding="utf-8")
|
|
|
|
|
|
|
|
|
|
|
|
def load_requirements(path_dir=here, comment_char="#"):
|
|
|
|
with open(os.path.join(path_dir, "requirements.txt"), "r") as file:
|
|
|
|
lines = [line.strip() for line in file.readlines()]
|
|
|
|
requirements = []
|
|
|
|
for line in lines:
|
|
|
|
# filer all comments
|
|
|
|
if comment_char in line:
|
|
|
|
line = line[: line.index(comment_char)]
|
|
|
|
if line: # if requirement is not empty
|
|
|
|
requirements.append(line)
|
|
|
|
return requirements
|
2021-07-05 11:18:12 +08:00
|
|
|
|
|
|
|
|
|
|
|
setuptools.setup(
|
|
|
|
name="idrlnet", # Replace with your own username
|
2021-07-15 13:09:29 +08:00
|
|
|
version="0.0.1-rc2",
|
2021-07-05 11:18:12 +08:00
|
|
|
author="Intelligent Design & Robust Learning lab",
|
|
|
|
author_email="weipeng@deepinfar.cn",
|
|
|
|
description="IDRLnet",
|
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
url="https://github.com/idrl-lab/idrlnet",
|
|
|
|
packages=setuptools.find_packages(),
|
|
|
|
classifiers=[
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
],
|
2021-07-13 08:06:45 +08:00
|
|
|
python_requires=">=3.6",
|
|
|
|
install_requires=load_requirements(),
|
2021-07-12 16:03:42 +08:00
|
|
|
)
|