diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..8a13651b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,37 @@ +[build-system] +requires = ["setuptools>=64", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "libero" +version = "0.1.0" +description = "LIBERO: Benchmarking Knowledge Transfer for Lifelong Robot Learning" +readme = "README.md" +requires-python = ">=3" +authors = [ + { name = "Bo Liu", email = "bliu@cs.utexas.edu" }, + { name = "Yifeng Zhu", email = "yifengz@cs.utexas.edu" }, + { name = "Chongkai Gao" }, + { name = "Yihao Feng" }, + { name = "Qiang Liu" }, + { name = "Yuke Zhu" }, + { name = "Peter Stone" }, +] +# dependencies = [] # install_requires was empty + +# If you have a project URL, you can add it here: +# [project.urls] +# "Homepage" = "https://your-project-url.com" + +[project.scripts] +"lifelong.main" = "libero.lifelong.main:main" +"lifelong.eval" = "libero.lifelong.evaluate:main" +"libero.config_copy" = "scripts.config_copy:main" +"libero.create_template" = "scripts.create_template:main" + +[tool.setuptools] +include-package-data = true + +[tool.setuptools.packages.find] +where = ["."] # Search in the current directory (where pyproject.toml is) +include = ["libero*"] # Include all packages starting with "libero" (e.g., "libero", "libero_utils") \ No newline at end of file diff --git a/setup.py b/setup.py index 59d49004..7f1a1763 100644 --- a/setup.py +++ b/setup.py @@ -1,36 +1,4 @@ -# read the contents of your README file -from os import path +from setuptools import setup -from setuptools import find_packages, setup - -this_directory = path.abspath(path.dirname(__file__)) -with open(path.join(this_directory, "./README.md"), encoding="utf-8") as f: - lines = f.readlines() - -# remove images from README -lines = [x for x in lines if ".png" not in x] -long_description = "".join(lines) - -setup( - name="libero", - packages=[package for package in find_packages() if package.startswith("libero")], - install_requires=[], - eager_resources=["*"], - include_package_data=True, - python_requires=">=3", - description="LIBERO: Benchmarking Knowledge Transfer for Lifelong Robot Learning", - author="Bo Liu, Yifeng Zhu, Chongkai Gao, Yihao Feng, Qiang Liu, Yuke Zhu, Peter Stone", - # url="https://github.com/ARISE-Initiative/robosuite", - author_email="bliu@cs.utexas.edu, yifengz@cs.utexas.edu", - version="0.1.0", - long_description=long_description, - long_description_content_type="text/markdown", - entry_points={ - "console_scripts": [ - "lifelong.main=libero.lifelong.main:main", - "lifelong.eval=libero.lifelong.evaluate:main", - "libero.config_copy=scripts.config_copy:main", - "libero.create_template=scripts.create_template:main", - ] - }, -) +if __name__ == "__main__": + setup()