Skip to content

Commit

Permalink
Support python v3.13 (#1001)
Browse files Browse the repository at this point in the history
  • Loading branch information
tefra authored Mar 30, 2024
1 parent 6441877 commit 2ebf999
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,25 @@ on:
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}-latest
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- {name: Python 3.8, python: '3.8', os: ubuntu}
- {name: Python 3.9, python: '3.9', os: ubuntu}
- {name: Python 3.10, python: '3.10', os: ubuntu}
- {name: Python 3.11, python: '3.11', os: ubuntu}
- {name: Python 3.12, python: '3.12', os: ubuntu}
- {name: Python 3.8, python: '3.8'}
- {name: Python 3.9, python: '3.9'}
- {name: Python 3.10, python: '3.10'}
- {name: Python 3.11, python: '3.11'}
- {name: Python 3.12, python: '3.12'}
- {name: Python 3.13, python: '3.13-dev'}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install libxml2
if: startsWith(matrix.python, 'pypy') || startsWith(matrix.python, '3.13')
if: startsWith(matrix.python, '3.13')
run: |
sudo apt-get install libxml2-dev libxslt-dev
- name: Install dependencies
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Code Generators",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def test_process_symmetrical_sequence(self):
AttrFactory.element(
name="b", namespace="b", restrictions=restrictions.clone()
),
AttrFactory.element(name="b", namespace="b"), # no paths, impossible!
AttrFactory.element(name="c", namespace="b"),
AttrFactory.element(
name="d", namespace="b", restrictions=Restrictions(choice=1)
Expand Down

0 comments on commit 2ebf999

Please sign in to comment.