summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2023-01-26 00:54:43 +0200
committerGitHub <noreply@github.com>2023-01-25 23:54:43 +0100
commit6d2bb1bb7b862e4aa6feb828f760c6568fefda7e (patch)
treea7fa2dbcc27a147f5e2fcbe1c39f356786b2c1a8
parent00072315fe40fe093fbbf1db5ebd67c46abf9bf7 (diff)
downloadpygments-git-6d2bb1bb7b862e4aa6feb828f760c6568fefda7e.tar.gz
Declare support for Python 3.11, test 3.12-dev, drop EOL 3.6 (#2324)
* Add support for Python 3.11 * Test Python 3.12-dev * Add colour to CI for readability * Drop support for EOL Python 3.6 * Test slower Windows first to speed up CI
-rw-r--r--.github/workflows/build.yaml20
-rw-r--r--.github/workflows/docs.yaml9
-rw-r--r--setup.cfg4
-rw-r--r--tox.ini2
4 files changed, 19 insertions, 16 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 2d26dfb1..f2865b78 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -2,6 +2,9 @@ name: Pygments
on: [push, pull_request]
+env:
+ FORCE_COLOR: 1
+
permissions:
contents: read # to fetch code (actions/checkout)
@@ -10,15 +13,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- os: [ubuntu-latest, windows-latest]
- python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
- exclude:
- - os: ubuntu-latest
- python-version: "3.6"
- include:
- - os: ubuntu-20.04
- python-version: "3.6"
- max-parallel: 4
+ os: [windows-latest, ubuntu-latest]
+ python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
steps:
- uses: actions/checkout@v3
@@ -39,6 +35,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
+ with:
+ python-version: "3.x"
- name: Run make check
run: make check
- name: Fail if the basic checks failed
@@ -50,6 +48,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
+ with:
+ python-version: "3.x"
- name: Regenerate mapfiles
run: make mapfiles
- name: Fail if mapfiles changed
@@ -65,7 +65,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
- python-version: 3.8
+ python-version: "3.x"
- name: Check out regexlint
run: git clone https://github.com/pygments/regexlint
- name: Run regexlint
diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml
index 41adf4e2..672beaf3 100644
--- a/.github/workflows/docs.yaml
+++ b/.github/workflows/docs.yaml
@@ -5,6 +5,9 @@ on:
branches:
- master
+env:
+ FORCE_COLOR: 1
+
permissions: {}
jobs:
build:
@@ -14,11 +17,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Python
- uses: actions/setup-python@v2
+ uses: actions/setup-python@v4
with:
- python-version: "3.10"
+ python-version: "3.x"
- name: Checkout Pygments
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: Install Sphinx & WCAG contrast ratio
run: pip install Sphinx wcag-contrast-ratio
- name: Create Pyodide WASM package
diff --git a/setup.cfg b/setup.cfg
index 21304dc9..748119be 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -19,11 +19,11 @@ classifiers =
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
- Programming Language :: Python :: 3.6
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 :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Topic :: Text Processing :: Filters
@@ -38,7 +38,7 @@ project_urls =
packages = find:
zip_safe = false
include_package_data = true
-python_requires = >=3.6
+python_requires = >=3.7
[options.packages.find]
include =
diff --git a/tox.ini b/tox.ini
index dc0a5be5..0de97559 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py{36, 37, 38, 39, 310}, lint
+envlist = py{37, 38, 39, 310, 311, 312}, lint
[testenv]
deps =