From 1af9902b55f8e100ceceeaa43ad8dcaed2d3b363 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 4 Sep 2023 23:24:03 +0300 Subject: [PATCH 1/2] Add support for Python 3.12 --- .github/workflows/ci.yaml | 5 +++-- pyproject.toml | 1 + setup.cfg | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a31480c..199874d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,16 +16,17 @@ jobs: fail-fast: false matrix: os: [ubuntu, macos, windows] - python: ["3.7", "3.8", "3.9", "3.10", "3.11.0-rc - 3.11", + python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.7", "pypy-3.8", "pypy-3.9"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} + allow-prereleases: true - name: Install tox run: python -m pip install tox diff --git a/pyproject.toml b/pyproject.toml index 81ee2be..75f51d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,6 +18,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules", diff --git a/setup.cfg b/setup.cfg index 6e83c10..863d85f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -13,6 +13,7 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Programming Language :: Python :: Implementation :: CPython Programming Language :: Python :: Implementation :: PyPy Topic :: Software Development :: Libraries :: Python Modules From e4d509c7e2e1f05685c48d0bd462c5e6efd6afb8 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Mon, 4 Sep 2023 23:26:17 +0300 Subject: [PATCH 2/2] Drop support for EOL Python 3.7 --- .github/workflows/ci.yaml | 4 ++-- pyproject.toml | 3 +-- setup.cfg | 3 +-- tox.ini | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 199874d..3d8bbff 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,8 +16,8 @@ jobs: fail-fast: false matrix: os: [ubuntu, macos, windows] - python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", - "pypy-3.7", "pypy-3.8", "pypy-3.9"] + python: ["3.8", "3.9", "3.10", "3.11", "3.12", + "pypy-3.8", "pypy-3.9"] steps: - uses: actions/checkout@v4 diff --git a/pyproject.toml b/pyproject.toml index 75f51d2..1d65322 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,6 @@ classifiers = [ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", @@ -29,7 +28,7 @@ dynamic = ["version"] license = {text = "MPL 2.0"} name = "pathspec" readme = "README-dist.rst" -requires-python = ">=3.7" +requires-python = ">=3.8" [project.urls] "Source Code" = "https://github.com/cpburnz/python-pathspec" diff --git a/setup.cfg b/setup.cfg index 863d85f..34abfd1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,7 +8,6 @@ classifiers = Operating System :: OS Independent Programming Language :: Python Programming Language :: Python :: 3 - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 @@ -28,7 +27,7 @@ version = attr: pathspec._meta.__version__ [options] packages = find: -python_requires = >=3.7 +python_requires = >=3.8 setup_requires = setuptools>=40.8.0 test_suite = tests diff --git a/tox.ini b/tox.ini index 5d039ae..89f20bd 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py37, py38, py39, py310, py311, py312, pypy3 +envlist = py38, py39, py310, py311, py312, pypy3 isolated_build = True [testenv]