Skip to content

Commit

Permalink
Clean up setup.py() and set version in pyproject.toml (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottower authored Jun 29, 2023
1 parent fa575a9 commit cd7bb57
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 25 deletions.
5 changes: 0 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ COPY --chown=$USER:$USER pyproject.toml $HOME/code/metaworld/pyproject.toml

WORKDIR $HOME/code/metaworld

# Testing: list out all files
RUN ls -alh
RUN pwd
RUN ls ..

# Install metaworld dependencies
RUN . $HOME/venv/bin/activate && exec pip install -e .[testing]

Expand Down
2 changes: 0 additions & 2 deletions metaworld/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

EnvName = str

__version__ = "2.0.0"


class Task(NamedTuple):
"""All data necessary to describe a single MDP.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "metaworld"
version = "2.0.0"
description = "Collections of robotics environments geared towards benchmarking multi-task and meta reinforcement learning."
readme = "README.md"
requires-python = ">= 3.8"
Expand All @@ -29,7 +30,6 @@ dependencies = [
"numpy>=1.18",
"scipy>=1.4.1",
]
dynamic = ["version"]

[project.optional-dependencies]
# Update dependencies in `all` if any are added or removed
Expand Down
18 changes: 1 addition & 17 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,5 @@
"""Sets up the project."""

# import pathlib

from setuptools import setup

# CWD = pathlib.Path(__file__).absolute().parent
#
#
# def get_version():
# """Gets the metaworld version."""
# path = CWD / "metaworld" / "__init__.py"
# content = path.read_text()
#
# for line in content.splitlines():
# if line.startswith("__version__"):
# return line.strip().split()[-1].strip().strip('"')
# raise RuntimeError("bad version data in __init__.py")


setup(name="metaworld", version="2.0.0")
setup()

0 comments on commit cd7bb57

Please sign in to comment.