-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dynamic versioning. Remove old files
Signed-off-by: guillemdb <[email protected]>
- Loading branch information
Showing
8 changed files
with
19 additions
and
1,015 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,14 @@ | ||
[project] | ||
name = "plangym" | ||
version = "0.0.33" | ||
description = "Plangym is an interface to use OpenAI gym for planning problems. It extends the standard interface to allow setting and recovering the environment states." | ||
authors = [ | ||
{ name = "Guillem Duran Ballester", email = "[email protected]" }, | ||
] | ||
dynamic = ["version"] | ||
description = "Plangym is an interface to use gymnasium for planning problems. It extends the standard interface to allow setting and recovering the environment states." | ||
authors = [{ name = "Guillem Duran Ballester", email = "[email protected]" }] | ||
maintainers = [{ name = "Guillem Duran Ballester", email = "[email protected]" }] | ||
license = {file = "LICENSE"} | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
packages = [ | ||
{ include = "plangym", from = "src" } | ||
] | ||
include = [ | ||
"tests/**/*", | ||
"tests/**/.*", | ||
] | ||
packages = [{ include = "plangym", from = "src" }] | ||
include = ["tests/**/*", "tests/**/.*"] | ||
homepage = "https://github.com/FragileTech/plangym" | ||
repository = "https://github.com/FragileTech/plangym" | ||
documentation = "https://github.com/FragileTech/plangym" | ||
|
@@ -24,8 +17,8 @@ classifiers = [ | |
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Software Development :: Libraries", | ||
] | ||
dependencies = [ | ||
|
@@ -37,10 +30,9 @@ dependencies = [ | |
"imageio>=2.35.1", | ||
] | ||
[project.optional-dependencies] | ||
atari = ["ale-py>=0.7.0", | ||
"gymnasium[accept-rom-license,atari]>=0.29.1", | ||
]#, "autorom[accept-rom-license]>=0.4.2"] | ||
nes = ["gym[accept-rom-license] @ git+https://github.com/FragileTech/gym.git", | ||
atari = ["ale-py>=0.7.0", "gymnasium[accept-rom-license,atari]>=0.29.1"] | ||
nes = [ | ||
"gym[accept-rom-license] @ git+https://github.com/FragileTech/gym.git", | ||
"nes-py @ git+https://github.com/FragileTech/nes-py", # Requires clang, build-essential | ||
"gym-super-mario-bros==7.3.2", | ||
] | ||
|
@@ -66,18 +58,17 @@ requires = ["hatchling"] | |
build-backend = "hatchling.build" | ||
[tool.hatch.metadata] | ||
allow-direct-references = true | ||
[tool.hatch.version] | ||
path = "src/plangym/version.py" | ||
|
||
[tool.rye] | ||
dev-dependencies = [ | ||
"ruff", | ||
] | ||
dev-dependencies = ["ruff"] | ||
|
||
[tool.rye.scripts] | ||
style = { chain = ["ruff check --fix-only --unsafe-fixes tests src", "ruff format tests src"] } | ||
check = { chain = ["ruff check --diff tests src", "ruff format --diff tests src"]} #,"mypy src tests" ] } | ||
test = { chain = ['/bin/find tests -name "*.pyc" -delete', "pytest -n 0 -s -o log_cli=true -o log_cli_level=info tests" ], env-file = ".dev.env" } | ||
|
||
|
||
[tool.ruff] | ||
# Assume Python 3.10 | ||
target-version = "py310" | ||
|
@@ -131,7 +122,8 @@ ignore = [ | |
"D100", "D211", "D213", "D104", "D203", "D301", "D407", "S101", | ||
"FBT001", "FBT002", "FIX002", "ISC001", "PLR0913", "RUF012", "TD003", | ||
"PTH123", "PLR6301", "PLR0917", "S311", "S403", "PLR0914", "PLR0915", "S608", | ||
"EM102", "PTH111", "FIX004", "UP035", "PLW2901", "S318", "S408", 'S405', 'E902', "TD001", "TD002", "FIX001", | ||
"EM102", "PTH111", "FIX004", "UP035", "PLW2901", "S318", "S408", 'S405', | ||
'E902', "TD001", "TD002", "FIX001", | ||
] | ||
# Allow autofix for all enabled rules (when `--fix`) is provided. | ||
fixable = ["ALL"] | ||
|
@@ -165,11 +157,7 @@ preview = true | |
quote-style = "double" | ||
|
||
[tool.mypy] | ||
exclude = [ | ||
"experimental.*", | ||
"deprecated.*", | ||
] | ||
|
||
exclude = ["experimental.*", "deprecated.*"] | ||
ignore_missing_imports = true | ||
|
||
# isort orders and lints imports | ||
|
@@ -185,10 +173,7 @@ include_trailing_comma = true | |
color_output = true | ||
lines_after_imports = 2 | ||
honor_noqa = true | ||
skip = [ | ||
"venv", | ||
".venv", | ||
] | ||
skip = ["venv", ".venv"] | ||
skip_glob = ["*.pyx"] | ||
|
||
[tool.pylint.master] | ||
|
@@ -206,10 +191,7 @@ enable = """, | |
|
||
[tool.pytest.ini_options] | ||
# To disable a specific warning --> action:message:category:module:line | ||
filterwarnings = [ | ||
"ignore::UserWarning", | ||
'ignore::DeprecationWarning', | ||
] | ||
filterwarnings = ["ignore::UserWarning", 'ignore::DeprecationWarning'] | ||
addopts = "--ignore=scripts --doctest-continue-on-failure" | ||
|
||
# Code coverage config | ||
|
Oops, something went wrong.