Skip to content

Commit

Permalink
Update dynamic versioning. Remove old files
Browse files Browse the repository at this point in the history
Signed-off-by: guillemdb <[email protected]>
  • Loading branch information
Guillemdb committed Aug 30, 2024
1 parent bd4d64f commit b3848fd
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 1,015 deletions.
110 changes: 0 additions & 110 deletions __pyproject.toml

This file was deleted.

56 changes: 0 additions & 56 deletions __setup.py

This file was deleted.

13 changes: 0 additions & 13 deletions _requirements-lint.txt

This file was deleted.

8 changes: 0 additions & 8 deletions _requirements-test.txt

This file was deleted.

17 changes: 0 additions & 17 deletions _requirements.txt

This file was deleted.

54 changes: 18 additions & 36 deletions pyproject.toml
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"
Expand All @@ -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 = [
Expand All @@ -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",
]
Expand All @@ -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"
Expand Down Expand Up @@ -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"]
Expand Down Expand Up @@ -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
Expand All @@ -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]
Expand All @@ -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
Expand Down
Loading

0 comments on commit b3848fd

Please sign in to comment.