From f7409953060f1f4d0f8988f1e131a49f84c95eba Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Fri, 18 Aug 2023 16:39:25 +0300 Subject: [PATCH] Add support for Python 3.12 (#515) * Add support for Python 3.12 * Drop support for EOL Python 3.7 --- .github/workflows/ci.yml | 4 +++- README.rst | 2 +- setup.cfg | 3 --- setup.py | 4 ++-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31119837..0944e224 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,8 +15,9 @@ jobs: runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] os: [ubuntu-latest, macos-latest, windows-latest] steps: @@ -26,5 +27,6 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Test run: python -m unittest discover diff --git a/README.rst b/README.rst index d6037845..1bf1f624 100644 --- a/README.rst +++ b/README.rst @@ -83,7 +83,7 @@ Installing Prerequisites ------------- -* **pycparser** was tested with Python 3.7+ on Linux, Mac OS and Windows. +* **pycparser** was tested with Python 3.8+ on Linux, macOS and Windows. * **pycparser** has no external dependencies. The only non-stdlib library it uses is PLY, which is bundled in ``pycparser/ply``. The current PLY version is diff --git a/setup.cfg b/setup.cfg index ed8a958e..0c9e0fc1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,2 @@ -[bdist_wheel] -universal = 1 - [metadata] license_file = LICENSE diff --git a/setup.py b/setup.py index 345917bd..6e99e787 100644 --- a/setup.py +++ b/setup.py @@ -53,13 +53,13 @@ def make_release_tree(self, basedir, files): 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python :: 3', - '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', ], - python_requires=">=3.7", + python_requires=">=3.8", packages=['pycparser', 'pycparser.ply'], package_data={'pycparser': ['*.cfg']}, cmdclass={'install': install, 'sdist': sdist},