Skip to content
Snippets Groups Projects
Commit 710dd658 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Build for each Python version rather than using limited API

parent 504a9c6d
No related branches found
No related tags found
1 merge request!1Build for each Python version rather than using limited API
Pipeline #164491 passed
......@@ -2,17 +2,24 @@ image: quay.io/pypa/manylinux_2_34_x86_64
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
PYTHON: "/opt/python/cp311-cp311/bin/python"
cache:
paths:
- .cache/pip
before_script:
- PYTHON="/opt/python/$PY_VERSION/bin/python"
- $PYTHON --version ; $PYTHON -m pip --version # For debugging
- $PYTHON -m venv venv
test:
parallel:
matrix:
- PY_VERSION:
- cp310-cp310
- cp311-cp311
- cp312-cp312
- cp313-cp313
script:
- $PYTHON -m build
- auditwheel repair dist/*.whl
......@@ -31,6 +38,8 @@ publish-job:
- if: $CI_COMMIT_TAG
dependencies:
- test
variables:
PY_VERSION: cp313-cp313
script:
- ls dist/ wheelhouse/
- venv/bin/pip install -U twine
......
......@@ -15,12 +15,12 @@ classifiers = [
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Topic :: System :: Archiving :: Compression",
]
requires-python = ">=3.11"
requires-python = ">=3.10"
[project.urls]
Source = "https://git.xfel.eu/kluyvert/zlib_into"
[tool.setuptools]
ext-modules = [
{name = "zlib_into", sources = ["src/zlib_into.c"], libraries = ["z"], py-limited-api=true}
{name = "zlib_into", sources = ["src/zlib_into.c"], libraries = ["z"]}
]
[bdist_wheel]
py_limited_api=cp311
......@@ -4,7 +4,7 @@ License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/. */
#define PY_SSIZE_T_CLEAN
#define Py_LIMITED_API 0x030B0000
//#define Py_LIMITED_API 0x030B0000
#include <stdlib.h>
#include <Python.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment