From cb667a7f01815d07a720c83fb4f92806a14c19a0 Mon Sep 17 00:00:00 2001 From: Jendrik Seipp Date: Wed, 9 Oct 2024 23:06:38 +0200 Subject: [PATCH 1/2] Test newer Python versions up to 3.13. --- .github/workflows/ubuntu.yml | 20 ++++++++++---------- setup.py | 4 ++++ 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index f4d68ec..605802f 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -4,10 +4,10 @@ name: Ubuntu on: push: branches: - - master + - main pull_request: branches: - - master + - main jobs: build: @@ -17,16 +17,17 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-18.04, ubuntu-20.04] - python-version: [3.6, 3.7, 3.8, 3.9] + os: [ubuntu-20.04, ubuntu-22.04] + python-version: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11', '3.12', '3.13'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Show environment run: | @@ -35,14 +36,13 @@ jobs: - name: Install dependencies run: | - sudo apt-get -y install minisat - python -m pip install --upgrade pip tox + sudo apt-get -y install minisat python3-pip tox - name: Check style - if: matrix.os == 'ubuntu-20.04' && matrix.python-version == '3.9' + if: matrix.os == 'ubuntu-22.04' && matrix.python-version == '3.12' run: | tox -e style - name: Run tests run: | - tox -e slow + tox -e py,slow diff --git a/setup.py b/setup.py index 6b08617..297d084 100644 --- a/setup.py +++ b/setup.py @@ -35,6 +35,10 @@ "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Scientific/Engineering", ], install_requires=["wheel"], From c9f8a2bd1c715f2cef96f7df413710ff4b9ed931 Mon Sep 17 00:00:00 2001 From: Jendrik Seipp Date: Wed, 9 Oct 2024 23:14:57 +0200 Subject: [PATCH 2/2] Drop support for Python 3.6. --- .github/workflows/ubuntu.yml | 2 +- CHANGELOG.md | 5 +++++ README.md | 2 +- setup.py | 3 +-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 605802f..e3959c4 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -18,7 +18,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-20.04, ubuntu-22.04] - python-version: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11', '3.12', '3.13'] + python-version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v3 diff --git a/CHANGELOG.md b/CHANGELOG.md index fe9df72..5010798 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 2.2 (unreleased) + +* Raise minimum Python version to 3.7 and maximum Python version to 3.13 (#28). + + # 2.1 (2022-01-17) * Add options to API for removal of static facts from init, and removal of irrelevant operators (Blai Bonet, #14). diff --git a/README.md b/README.md index 96e71ef..975838b 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ costs. # Requirements -Pyperplan requires [Python](https://python.org) >= 3.6. +Pyperplan requires [Python](https://python.org) >= 3.7. # Installation diff --git a/setup.py b/setup.py index 297d084..c5d0f9e 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,6 @@ "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Programming Language :: Python", - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", @@ -42,5 +41,5 @@ "Topic :: Scientific/Engineering", ], install_requires=["wheel"], - python_requires=">=3.6", + python_requires=">=3.7", )