Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop Python 3.7 support #550

Merged
merged 2 commits into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, macos-12]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11']

runs-on: ${{ matrix.os }}

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ or

### Linux
Both x86-64 and ARM64 architectures are supported.
ViZDoom requires C++11 compiler, CMake 3.4+, Boost 1.65+ SDL2, OpenAL (optional) and Python 3.7+. Below you will find instructrion how to install these dependencies.
ViZDoom requires C++11 compiler, CMake 3.4+, Boost 1.65+ SDL2, OpenAL (optional) and Python 3.8+. Below you will find instructrion how to install these dependencies.

#### apt-based distros (Ubuntu, Debian, Linux Mint, etc.)

Expand All @@ -81,7 +81,7 @@ To install ViZDoom run (may take few minutes):
apt install cmake git libboost-all-dev libsdl2-dev libopenal-dev
pip install vizdoom
```
We recommend using at least Ubuntu 18.04+ or Debian 10+ with Python 3.7+.
We recommend using at least Ubuntu 18.04+ or Debian 10+ with Python 3.8+.

#### dnf/yum-based distros (Fedora, RHEL, CentOS, Alma/Rocky Linux, etc.)

Expand All @@ -90,7 +90,7 @@ To install ViZDoom run (may take few minutes):
dnf install cmake git boost-devel SDL2-devel openal-soft-devel
pip install vizdoom
```
We recommend using at least Fedora 35+ or RHEL/CentOS/Alma/Rocky Linux 9+ with Python 3.7+. To install openal-soft-devel on RHEL/CentOS/Alma/Rocky Linux 9, one needs to use `dnf --enablerepo=crb install`.
We recommend using at least Fedora 35+ or RHEL/CentOS/Alma/Rocky Linux 9+ with Python 3.8+. To install openal-soft-devel on RHEL/CentOS/Alma/Rocky Linux 9, one needs to use `dnf --enablerepo=crb install`.

#### Conda-based installation
To install ViZDoom on a conda environment (no system-wide installations required):
Expand All @@ -111,12 +111,12 @@ To install ViZDoom on run (may take few minutes):
brew install cmake git boost openal-soft sdl2
pip install vizdoom
```
We recommend using at least macOS High Sierra 10.13+ with Python 3.7+.
We recommend using at least macOS High Sierra 10.13+ with Python 3.8+.
On Apple Silicon (M1 and M2), make sure you are using Python for Apple Silicon.


### Windows
To install pre-build release for Windows 10 or 11 64-bit and Python 3.7+ just run (should take few seconds):
To install pre-build release for Windows 10 or 11 64-bit and Python 3.8+ just run (should take few seconds):
```
pip install vizdoom
```
Expand Down
8 changes: 4 additions & 4 deletions docs/introduction/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Even if you plan to install ViZDoom via pip, you need to install some dependenci
* Make
* GCC 6.0+
* Boost libraries 1.65.0+
* Python 3.7+ for Python binding (optional)
* Python 3.8+ for Python binding (optional)

Additionally, [ZDoom dependencies](http://zdoom.org/wiki/Compile_ZDoom_on_Linux) are needed.

Expand Down Expand Up @@ -69,7 +69,7 @@ python setup.py build && python setup.py install
* CMake 3.4+
* Clang 5.0+
* Boost libraries 1.65.0+
* Python 3.7+ for Python binding (optional)
* Python 3.8+ for Python binding (optional)
## <a name="build"></a> Building

Additionally, [ZDoom dependencies](http://zdoom.org/wiki/Compile_ZDoom_on_Mac_OS_X) are needed.
Expand All @@ -88,7 +88,7 @@ brew install cmake boost openal-soft sdl2
* CMake 3.4+
* Visual Studio 2012+
* Boost 1.65+
* Python 3.7+ for Python binding (optional)
* Python 3.8+ for Python binding (optional)

Additionally, [ZDoom dependencies](http://zdoom.org/wiki/Compile_ZDoom_on_Windows) are needed.
Most of them (except Boost) are gathered in this repository: [ViZDoomWinDepBin](https://github.com/mwydmuch/ViZDoomWinDepBin).
Expand All @@ -99,7 +99,7 @@ You can download Boost from [here](https://www.boost.org/users/download).

ViZDoom for Python can be installed via **pip** on Linux, MacOS and Windows, and it is strongly recommended.
However you will still need to install **[Linux](#linux_deps)/[MacOS](#macos_deps) dependencies**, as it will be build locally from source.
For Windows 10 or 11 64-bit and Python 3.7+ we provide pre-build wheels (binary packages).
For Windows 10 or 11 64-bit and Python 3.8+ we provide pre-build wheels (binary packages).


To install the most stable official release from [PyPI](https://pypi.python.org/pypi):
Expand Down
10 changes: 5 additions & 5 deletions docs/introduction/pythonQuickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Linux
Both x86-64 and ARM64 architectures are supported.
ViZDoom requires C++11 compiler, CMake 3.4+, Boost 1.65+ SDL2, OpenAL (optional) and Python 3.7+. Below you will find instructrion how to install these dependencies.
ViZDoom requires C++11 compiler, CMake 3.4+, Boost 1.65+ SDL2, OpenAL (optional) and Python 3.8+. Below you will find instructrion how to install these dependencies.

### apt-based distros (Ubuntu, Debian, Linux Mint, etc.)

Expand All @@ -11,7 +11,7 @@ To install ViZDoom run (may take few minutes):
apt install cmake git libboost-all-dev libsdl2-dev libopenal-dev
pip install vizdoom
```
We recommend using at least Ubuntu 18.04+ or Debian 10+ with Python 3.7+.
We recommend using at least Ubuntu 18.04+ or Debian 10+ with Python 3.8+.

### dnf/yum-based distros (Fedora, RHEL, CentOS, Alma/Rocky Linux, etc.)

Expand All @@ -20,7 +20,7 @@ To install ViZDoom run (may take few minutes):
dnf install cmake git boost-devel SDL2-devel openal-soft-devel
pip install vizdoom
```
We recommend using at least Fedora 35+ or RHEL/CentOS/Alma/Rocky Linux 9+ with Python 3.7+. To install openal-soft-devel on RHEL/CentOS/Alma/Rocky Linux 9, one needs to use `dnf --enablerepo=crb install`.
We recommend using at least Fedora 35+ or RHEL/CentOS/Alma/Rocky Linux 9+ with Python 3.8+. To install openal-soft-devel on RHEL/CentOS/Alma/Rocky Linux 9, one needs to use `dnf --enablerepo=crb install`.

### Conda-based installation
To install ViZDoom on a conda environment (no system-wide installations required):
Expand All @@ -41,12 +41,12 @@ To install ViZDoom on run (may take few minutes):
brew install cmake git boost openal-soft sdl2
pip install vizdoom
```
We recommend using at least macOS High Sierra 10.13+ with Python 3.7+.
We recommend using at least macOS High Sierra 10.13+ with Python 3.8+.
On Apple Silicon (M1 and M2), make sure you are using Python for Apple Silicon.


## Windows
To install pre-build release for Windows 10 or 11 64-bit and Python 3.7+ just run (should take few seconds):
To install pre-build release for Windows 10 or 11 64-bit and Python 3.8+ just run (should take few seconds):
```
pip install vizdoom
```
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exclude = ["**/__pycache__"]
strict = []

typeCheckingMode = "basic"
pythonVersion = "3.7"
pythonVersion = "3.8"
pythonPlatform = "All"
typeshedPath = "typeshed"
enableTypeIgnoreComments = true
Expand Down
4 changes: 3 additions & 1 deletion scripts/windows_build_cmake.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@echo off
setlocal enabledelayedexpansion

:: This script should only be used for development purposes on Windows.

:: Configuration
:: %%% Set this variables to match your environment.
:: %%% CMake for Windws can be downloaded from https://cmake.org/download/
Expand Down Expand Up @@ -29,7 +31,7 @@ set OPENALDIR=%LIB_DIR%\openal-soft
set OPENAL_DLL=%LIB_DIR%\openal-soft\bin\Win64\OpenAL32.dll

:: Build wheels for all Python versions
for %%P in (36 37 38 39 310) do (
for %%P in (38 39 310 311) do (
set PYTHON_VERSION=%%P
set PYTHON_VERSION_DOT=!PYTHON_VERSION:~0,1!.!PYTHON_VERSION:~1!
echo Building for Python !PYTHON_VERSION_DOT! version using !CMAKE_GENERATOR_NAME!
Expand Down
2 changes: 1 addition & 1 deletion scripts/windows_build_wheels.bat
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set BOOST_ROOT=%VIZDOOM_WIN_DEPS_ROOT%/boost


:: Build wheels for all Python versions
for %%P in (37 38 39 310) do (
for %%P in (38 39 310 311) do (
rmdir /Q /S "./bin/"
rmdir /Q /S "./build/"

Expand Down
10 changes: 2 additions & 8 deletions scripts/windows_test_wheels.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
setlocal enabledelayedexpansion

:: Set to current ViZDoom version
set VIZDOOM_VERSION=1.2.0
set VIZDOOM_VERSION=1.2.1

:: Build wheels for all Python versions
for %%P in (37 38 39 310) do (
for %%P in (38 39 310 311) do (
set PYTHON_VERSION=%%P
set PYTHON_VERSION_DOT=!PYTHON_VERSION:~0,1!.!PYTHON_VERSION:~1!
echo Testing wheels for Python !PYTHON_VERSION_DOT! ...
Expand All @@ -24,12 +24,6 @@ for %%P in (37 38 39 310) do (
!PYTHON_EXECUTABLE! -m pip install !WHEEL_FILE![gym]
)

:: This can be removed after end of support for Python 3.7
set WHEEL_M_FILE=dist\vizdoom-!VIZDOOM_VERSION!-cp!PYTHON_VERSION!-cp!PYTHON_VERSION!m-win_amd64.whl
if exist !WHEEL_M_FILE! (
!PYTHON_EXECUTABLE! -m pip install !WHEEL_M_FILE![gym]
)

:: Test wheel from test PyPI index
rem !PYTHON_EXECUTABLE! -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ vizdoom

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ def run(self):
"License :: OSI Approved :: MIT License",
"Programming Language :: C++",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down
Loading