diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index d5940f9ce..dd6e1bba5 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -12,7 +12,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.10', '3.11', '3.12', '3.13'] os: [ubuntu-latest, macos-latest] fail-fast: false steps: @@ -44,15 +44,15 @@ jobs: run: pip install -e '.[dev]' - name: Run tests run: python -m pytest --import-mode=append -svx nle/tests - test_sdist_3_9: - name: Test sdist on MacOS w/ Py3.9 + test_sdist_3_10: + name: Test sdist on MacOS w/ Py3.10 needs: test_repo runs-on: macos-latest steps: - - name: Setup Python 3.9 env + - name: Setup Python 3.10 env uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: '3.10' - name: Ensure latest pip, wheel & setuptools run: python -m pip install -q --upgrade pip wheel setuptools - name: Install dependencies diff --git a/.github/workflows/test_package.yml b/.github/workflows/test_package.yml index 4c70113df..e6560b053 100644 --- a/.github/workflows/test_package.yml +++ b/.github/workflows/test_package.yml @@ -12,7 +12,7 @@ jobs: runs-on: macos-latest strategy: matrix: - python-version: ['3.9', '3.10', '3.11', '3.12'] + python-version: ['3.10', '3.11', '3.12'] fail-fast: false steps: - name: Setup Python ${{ matrix.python-version }} env diff --git a/README.md b/README.md index 67fc8c897..f7ffe081e 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ with other gym (or Gynmasium) / RL environments. ## Installation -NLE requires `python>=3.9`, `cmake>=3.18` to be installed and available both when building the +NLE requires `python>=3.10`, `cmake>=3.18` to be installed and available both when building the package, and at runtime. On **MacOS**, one can use `Homebrew` as follows: @@ -66,7 +66,7 @@ Afterwards it's a matter of setting up your environment. We advise using a conda environment for this: ```bash -$ conda create -y -n nle python=3.9 +$ conda create -y -n nle python=3.10 $ conda activate nle $ pip install nle ``` diff --git a/doc/nle/source/getting_started.rst b/doc/nle/source/getting_started.rst index 55a25db33..a3b9c84f5 100644 --- a/doc/nle/source/getting_started.rst +++ b/doc/nle/source/getting_started.rst @@ -4,7 +4,7 @@ Getting Started Dependencies ************ -NLE requires `python>=3.9`, `cmake>=3.18` and some NetHack dependencies +NLE requires `python>=3.10`, `cmake>=3.18` and some NetHack dependencies (e.g. `libncurses`) to be installed and available both when building the package, and at runtime. diff --git a/docker/Dockerfile-focal b/docker/Dockerfile-focal index f13d1a154..915c23015 100644 --- a/docker/Dockerfile-focal +++ b/docker/Dockerfile-focal @@ -5,7 +5,7 @@ FROM nvidia/cuda:12.4.1-devel-ubuntu20.04 ARG TARGETPLATFORM RUN echo "Building image for $TARGETPLATFORM" -ARG PYTHON_VERSION=3.9 +ARG PYTHON_VERSION=3.10 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && \ diff --git a/docker/Dockerfile.valgrind b/docker/Dockerfile.valgrind index 61f9524dc..faa85cfb8 100644 --- a/docker/Dockerfile.valgrind +++ b/docker/Dockerfile.valgrind @@ -3,7 +3,7 @@ FROM ubuntu:20.04 -ARG PYTHON_VERSION=3.9 +ARG PYTHON_VERSION=3.10 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -yq \ diff --git a/pyproject.toml b/pyproject.toml index 1d3976781..4e3257212 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,11 +46,11 @@ allow-dict-calls-with-keyword-arguments = true [tool.cibuildwheel] # We need to build wheels for the following Python versions: -build = "cp{39,310,311,312,313}-*" +build = "cp{310,311,312,313}-*" [tool.cibuildwheel.linux] # Only manylinux is supported (no musllinux) -build = "cp{39,310,311,312,313}-manylinux*" +build = "cp{310,311,312,313}-manylinux*" # We need to clean up the build directory, all .so files, and CMakeCache.txt # and install the dependencies using yum, as manylinux2014 image is CentOS 7-based diff --git a/setup.py b/setup.py index 1885a2cf4..6c00e2779 100644 --- a/setup.py +++ b/setup.py @@ -157,14 +157,13 @@ def build_extension(self, ext): setup_requires=["pybind11>=2.2"], install_requires=["pybind11>=2.2", "numpy>=1.16", "gymnasium==1.0.0"], extras_require=extras_deps, - python_requires=">=3.9", + python_requires=">=3.10", classifiers=[ "License :: OSI Approved :: Nethack General Public License", "Development Status :: 5 - Production/Stable", "Operating System :: POSIX :: Linux", "Operating System :: MacOS", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", diff --git a/third_party/pybind11 b/third_party/pybind11 index 8a099e44b..ed5057ded 160000 --- a/third_party/pybind11 +++ b/third_party/pybind11 @@ -1 +1 @@ -Subproject commit 8a099e44b3d5f85b20f05828d919d2332a8de841 +Subproject commit ed5057ded698e305210269dafa57574ecf964483