From 4eb29caf4e6af0b63feb76519b2aa7dde175cb92 Mon Sep 17 00:00:00 2001 From: Isaac Muse Date: Mon, 7 Nov 2022 19:54:12 -0700 Subject: [PATCH] Add support for Python 3.11 (#1854) --- .github/workflows/build.yml | 26 ++++++++++++++------------ .github/workflows/deploy.yml | 14 +++++++------- docs/src/markdown/about/changelog.md | 3 ++- hatch_build.py | 1 + pymdownx/__meta__.py | 2 +- 5 files changed, 25 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 68c32e94d..902d7b743 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: max-parallel: 4 matrix: platform: [ubuntu-latest, windows-latest] - python-version: [3.7, 3.8, 3.9, '3.10'] + python-version: [3.7, 3.8, 3.9, '3.10', '3.11'] include: - python-version: 3.7 tox-env: py37 @@ -27,6 +27,8 @@ jobs: tox-env: py39 - python-version: '3.10' tox-env: py310 + - python-version: '3.11' + tox-env: py311 # exclude: # - platform: windows-latest # python-version: 3.10 @@ -37,10 +39,10 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} if: "!endsWith(matrix.python-version, '-dev')" - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Set up development Python ${{ matrix.python-version }} @@ -50,7 +52,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip setuptools tox coverage codecov + python -m pip install --upgrade pip build tox coverage codecov - name: Test run: | python -m tox @@ -67,7 +69,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.9] + python-version: ['3.11'] env: TOXENV: lint @@ -75,14 +77,14 @@ jobs: runs-on: ubuntu-latest 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 }} - name: Install dependencies run: | - python -m pip install --upgrade pip setuptools tox + python -m pip install --upgrade pip build tox - name: Lint run: | python -m tox @@ -91,7 +93,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.9] + python-version: ['3.11'] env: TOXENV: documents @@ -99,9 +101,9 @@ jobs: runs-on: ubuntu-latest 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 }} - name: Setup Node @@ -110,7 +112,7 @@ jobs: node-version: '16' - name: Install dependencies run: | - python -m pip install --upgrade pip setuptools tox + python -m pip install --upgrade pip build tox npm install --legacy-peer-deps - name: Install Aspell run: | diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 00985b0d6..fca011bbe 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,21 +11,21 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.9] + python-version: ['3.11'] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip setuptools + python -m pip install --upgrade pip build python -m pip install -r requirements/docs.txt - name: Deploy documents run: | @@ -40,10 +40,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: '3.11' - name: Package run: | pip install --upgrade build diff --git a/docs/src/markdown/about/changelog.md b/docs/src/markdown/about/changelog.md index ce5768501..589273f96 100644 --- a/docs/src/markdown/about/changelog.md +++ b/docs/src/markdown/about/changelog.md @@ -1,7 +1,8 @@ # Changelog -## 9.7.1 +## 9.8 +- **NEW**: Formally declare support for Python 3.11. - **FIX**: BetterEm: Fix case where `**` nested between `*` would be handled in an unexpected way. ## 9.7 diff --git a/hatch_build.py b/hatch_build.py index a55213ccb..5505ee397 100644 --- a/hatch_build.py +++ b/hatch_build.py @@ -45,6 +45,7 @@ def update(self, metadata): "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Filters", diff --git a/pymdownx/__meta__.py b/pymdownx/__meta__.py index 472c2bcd4..4cfed708d 100644 --- a/pymdownx/__meta__.py +++ b/pymdownx/__meta__.py @@ -185,5 +185,5 @@ def parse_version(ver, pre=False): return Version(major, minor, micro, release, pre, post, dev) -__version_info__ = Version(9, 7, 1, "final") +__version_info__ = Version(9, 8, 0, "final") __version__ = __version_info__._get_canonical()