Skip to content

Commit fa7453b

Browse files
committed
Add dockerfile
1 parent 2d210cb commit fa7453b

File tree

6 files changed

+57
-108
lines changed

6 files changed

+57
-108
lines changed

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM python:3.10.8
2+
3+
WORKDIR /app
4+
5+
RUN pip install --no-cache-dir --upgrade pip
6+
7+
COPY . .
8+
9+
RUN pip install --no-cache-dir . && pip install pytest
10+
11+
# Run tests by default
12+
CMD ["pytest", "tests/functional"]

pyproject.toml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
[build-system]
2+
requires = ["setuptools>=64"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "oprl"
7+
version = "0.1.0"
8+
description = "An RL Lib"
9+
readme = "README.md"
10+
requires-python = "==3.10.8"
11+
license = {text = "MIT"}
12+
authors = [
13+
{name = "Igor Kuznetsov"},
14+
]
15+
classifiers = [
16+
"Development Status :: 3 - Alpha",
17+
"Intended Audience :: Developers",
18+
"Programming Language :: Python :: 3.10",
19+
]
20+
dependencies = [
21+
"torch==2.2.2",
22+
"tensorboard==2.15.1",
23+
"packaging==23.2",
24+
"dm-control==1.0.11",
25+
"mujoco==2.3.3",
26+
"numpy==1.26.4",
27+
]
28+
29+
[project.optional-dependencies]
30+
dev = [
31+
"pytest>=6.0",
32+
"black",
33+
"flake8",
34+
]
35+
36+
[project.urls]
37+
"Homepage" = "https://schatty.github.io/oprl"
38+
39+
[tool.setuptools.packages.find]
40+
where = ["src"]
41+
include = ["oprl*"]
42+
43+
[tool.setuptools.package-dir]
44+
"" = "src"

src/setup.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

tests/functional/src/test_env.py

Lines changed: 0 additions & 52 deletions
This file was deleted.

tests/functional/src/test_rl_algos.py

Lines changed: 0 additions & 35 deletions
This file was deleted.

tests/functional/test_env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
]
4040

4141

42-
env_names: list[str] = dm_control_envs + safety_envs
42+
env_names: list[str] = dm_control_envs # + safety_envs
4343

4444

4545
@pytest.mark.parametrize("env_name", env_names)

0 commit comments

Comments
 (0)