Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b27db3

Browse files
authored
Add support for Python 3.13 (#576)
Update GitHub Actions. Explicitly install python3-setuptools for Tox env runs on Fedora.
1 parent a58282a commit 8b27db3

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ jobs:
2626
- "3.10"
2727
- "3.11"
2828
- "3.12"
29+
- "3.13"
2930
- "pypy3.9"
31+
- "pypy3.10"
3032
image:
3133
- "ubuntu-22.04"
3234
include:
@@ -43,7 +45,7 @@ jobs:
4345
- name: Disable AppArmor
4446
run: sudo aa-disable /usr/sbin/slapd
4547
- name: Set up Python ${{ matrix.python-version }}
46-
uses: actions/setup-python@v4
48+
uses: actions/setup-python@v5
4749
with:
4850
python-version: ${{ matrix.python-version }}
4951
allow-prereleases: true

.github/workflows/tox-fedora.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ jobs:
99
tox_test:
1010
name: Tox env "${{matrix.tox_env}}" on Fedora
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313
- name: Run Tox tests
1414
uses: fedora-python/tox-github-action@main
1515
with:
1616
tox_env: ${{ matrix.tox_env }}
1717
dnf_install: >
1818
@c-development openldap-devel python3-devel
1919
openldap-servers openldap-clients lcov clang-analyzer valgrind
20-
enchant
20+
enchant python3-setuptools
2121
strategy:
2222
matrix:
2323
tox_env:
@@ -28,6 +28,7 @@ jobs:
2828
- py310
2929
- py311
3030
- py312
31+
- py313
3132
- c90-py36
3233
- c90-py37
3334
- py3-nosasltls

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ class OpenLDAP2:
9393
'Programming Language :: Python :: 3.10',
9494
'Programming Language :: Python :: 3.11',
9595
'Programming Language :: Python :: 3.12',
96+
'Programming Language :: Python :: 3.13',
9697
# Note: when updating Python versions, also change tox.ini and .github/workflows/*
9798

9899
'Topic :: Database',

tox.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ python =
1717
3.10: py310
1818
3.11: py311
1919
3.12: py312
20+
3.13: py313
2021
pypy3.9: pypy3.9
22+
pypy3.10: pypy3.10
2123

2224
[testenv]
23-
deps =
25+
deps = setuptools
2426
passenv = WITH_GCOV
2527
# - Enable BytesWarning
2628
# - Turn all warnings into exceptions.
@@ -98,6 +100,7 @@ deps =
98100
markdown
99101
sphinx
100102
sphinxcontrib-spelling
103+
setuptools
101104
commands =
102105
{envpython} setup.py check --restructuredtext --metadata --strict
103106
{envpython} -m markdown README -f {envtmpdir}/README.html

0 commit comments

Comments
 (0)