Skip to content

Commit

Permalink
Merge pull request #40 from segevfiner/python3.13
Browse files Browse the repository at this point in the history
Work on Python 3.13 wheels
  • Loading branch information
segevfiner authored Oct 29, 2024
2 parents e0ba974 + 2138b35 commit 65979da
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.11', '3.12']
python-version: ['3.9', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
tags:
- 'v[0-9].*'
workflow_dispatch:

jobs:
build_wheels:
Expand All @@ -18,10 +19,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'

- name: Install dependencies (Windows)
if: runner.os == 'Windows'
Expand All @@ -33,19 +35,19 @@ jobs:
- name: Build sdist
if: matrix.os == 'ubuntu-20.04'
run: |
pip install cython>=3.0.0
python setup.py sdist
pip install build
python -m build --sdist
- name: Build wheels
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_SKIP: 'pp* *-musllinux*'
CIBW_ARCHS_MACOS: universal2
CIBW_BEFORE_ALL_LINUX: >
yum install -y flex bison libnl3-devel bluez-libs-devel &&
curl https://www.tcpdump.org/release/libpcap-1.10.1.tar.gz -O &&
tar xf libpcap-1.10.1.tar.gz &&
cd libpcap-1.10.1 &&
curl https://www.tcpdump.org/release/libpcap-1.10.5.tar.gz -O &&
tar xf libpcap-1.10.5.tar.gz &&
cd libpcap-1.10.5 &&
./configure &&
make -j2 &&
make install
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

Unreleased
----------
Added
^^^^^
* Python 3.13 wheels

v0.6.0 (2024-04-17)
-------------------
Added
Expand Down
2 changes: 1 addition & 1 deletion cypcap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
from ._cypcap import *


__version__ = u"0.6.0"
__version__ = u"0.6.1"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build-system]
requires = ["setuptools", "wheel", "cython>=0.29.24"]
requires = ["setuptools>=59.0", "cython>=0.29.24"]
build-backend = "setuptools.build_meta"
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ def run(self):
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
keywords="libpcap pcap",
zip_safe=False,
Expand Down

0 comments on commit 65979da

Please sign in to comment.