diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index ece5115..3e4a6d5 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -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 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c0e89f9..07e7e82 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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 diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 0133f0d..5fa3f30 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -6,6 +6,7 @@ on: - main tags: - 'v[0-9].*' + workflow_dispatch: jobs: build_wheels: @@ -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' @@ -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 diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 472dfe6..3daf923 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,12 @@ Changelog ========= +Unreleased +---------- +Added +^^^^^ +* Python 3.13 wheels + v0.6.0 (2024-04-17) ------------------- Added diff --git a/cypcap/__init__.py b/cypcap/__init__.py index 19fc039..6365607 100644 --- a/cypcap/__init__.py +++ b/cypcap/__init__.py @@ -5,4 +5,4 @@ from ._cypcap import * -__version__ = u"0.6.0" +__version__ = u"0.6.1" diff --git a/pyproject.toml b/pyproject.toml index a29a9f1..d8a0013 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/setup.py b/setup.py index 513fc31..c0590c5 100644 --- a/setup.py +++ b/setup.py @@ -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,