Skip to content

Commit

Permalink
Add Python 3.12 support (#1226)
Browse files Browse the repository at this point in the history
  • Loading branch information
younik authored Aug 3, 2024
1 parent ace3894 commit 6f64500
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 26 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
- os: ubuntu-latest
python: 311
platform: manylinux_x86_64
- os: ubuntu-latest
python: 312
platform: manylinux_x86_64

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
# Big Sur, Monterey
os: [macos-11, macos-12]
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion docs/code_examples/aec_rps_usage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import aec_rps
from . import aec_rps

env = aec_rps.env(render_mode="human")
env.reset(seed=42)
Expand Down
2 changes: 1 addition & 1 deletion docs/code_examples/parallel_rps_usage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import parallel_rps
from . import parallel_rps

env = parallel_rps.parallel_env(render_mode="human")
observations, infos = env.reset()
Expand Down
41 changes: 21 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
]
Expand All @@ -31,34 +32,34 @@ dynamic = ["version"]

[project.optional-dependencies]
# Update dependencies in `all` if any are added or removed
atari = ["multi_agent_ale_py==0.1.11", "pygame==2.3.0"]
atari = ["multi_agent_ale_py>=0.1.11", "pygame>=2.3.0"]
classic = [
"chess==1.9.4",
"rlcard==1.0.5",
"pygame==2.3.0",
"chess>=1.9.4",
"rlcard>=1.0.5",
"pygame>=2.3.0",
"shimmy[openspiel]>=1.2.0"
]
butterfly = ["pygame==2.3.0", "pymunk==6.2.0"]
mpe = ["pygame==2.3.0"]
sisl = ["pygame==2.3.0", "pymunk==6.2.0", "box2d-py==2.3.5", "scipy>=1.4.1"]
butterfly = ["pygame>=2.3.0", "pymunk>=6.2.0"]
mpe = ["pygame>=2.3.0"]
sisl = ["pygame>=2.3.0", "pymunk>=6.2.0", "box2d-py>=2.3.5", "scipy>=1.4.1"]
other = ["pillow>=8.0.1"]
testing = [
"pynput==1.7.6",
"pytest==8.0.0",
"AutoROM==0.6.1",
"pytest-cov==4.1.0",
"pytest-xdist==3.5.0",
"pre-commit==3.5.0",
"pytest-markdown-docs==0.5.0"
"pynput>=1.7.6",
"pytest>=8.0.0",
"AutoROM>=0.6.1",
"pytest-cov>=4.1.0",
"pytest-xdist>=3.5.0",
"pre-commit>=3.5.0",
"pytest-markdown-docs>=0.5.0"
]
all = [
"multi_agent_ale_py==0.1.11",
"pygame==2.3.0",
"chess==1.9.4",
"rlcard==1.0.5",
"multi_agent_ale_py>=0.1.11",
"pygame>=2.3.0",
"chess>=1.9.4",
"rlcard>=1.0.5",
"shimmy[openspiel]>=1.2.0",
"pymunk==6.2.0",
"box2d-py==2.3.5",
"pymunk>=6.2.0",
"box2d-py>=2.3.5",
"scipy>=1.4.1",
"pillow>=8.0.1",
]
Expand Down
5 changes: 3 additions & 2 deletions tutorials/Tianshou/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pettingzoo[classic]==1.23.0
packaging==21.3
numpy<2.0.0
pettingzoo[classic]>=1.23.0
packaging>=21.3
tianshou==0.5.0

0 comments on commit 6f64500

Please sign in to comment.