Skip to content

Commit 7da56a6

Browse files
committed
Build for Python 3.14 too
1 parent e5dbeb7 commit 7da56a6

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM quay.io/pypa/manylinux2014_x86_64:latest
44

55
ENV PATH /root/.cargo/bin:$PATH
66
# Add all supported python versions
7-
ENV PATH /opt/python/cp310-cp310/bin:/opt/python/cp311-cp311:/opt/python/cp312-cp312/bin:/opt/python/cp313-cp313/bin:$PATH
7+
ENV PATH /opt/python/cp310-cp310/bin:/opt/python/cp311-cp311:/opt/python/cp312-cp312/bin:/opt/python/cp313-cp313/bin:/opt/python/cp314-cp314/bin:$PATH
88
# Otherwise `cargo new` errors
99
ENV USER root
1010

@@ -21,7 +21,7 @@ RUN curl https://www.musl-libc.org/releases/musl-1.1.20.tar.gz -o musl.tar.gz \
2121
&& rustup toolchain install nightly --target x86_64-unknown-linux-musl \
2222
&& rustup default nightly \
2323
&& yum install -y libffi-devel \
24-
&& pip3.13 install --no-cache-dir virtualenv \
24+
&& pip3.14 install --no-cache-dir virtualenv \
2525
&& cargo install --locked maturin
2626

2727
WORKDIR /rs_pp
@@ -38,8 +38,10 @@ RUN virtualenv -p python3.10 /venv310 && . /venv310/bin/activate && python -m pi
3838
RUN virtualenv -p python3.11 /venv311 && . /venv311/bin/activate && python -m pip install -r requirements-dev.txt && maturin develop && python -m pytest . && rm -r /venv311
3939
RUN virtualenv -p python3.12 /venv312 && . /venv312/bin/activate && python -m pip install -r requirements-dev.txt && maturin develop && python -m pytest . && rm -r /venv312
4040
RUN virtualenv -p python3.13 /venv313 && . /venv313/bin/activate && python -m pip install -r requirements-dev.txt && maturin develop && python -m pytest . && rm -r /venv313
41+
RUN virtualenv -p python3.14 /venv314 && . /venv314/bin/activate && python -m pip install -r requirements-dev.txt && maturin develop && python -m pytest . && rm -r /venv314
42+
4143

4244
ENV RUSTFLAGS="-C target-feature=-crt-static"
43-
RUN maturin build --target x86_64-unknown-linux-musl --manylinux off --interpreter python3.10 python3.11 python3.12 python3.13
45+
RUN maturin build --target x86_64-unknown-linux-musl --manylinux off --interpreter python3.10 python3.11 python3.12 python3.13 python3.14
4446

45-
CMD ["maturin", "publish", "--interpreter", "python3.10", "python3.11", "python3.12", "python3.13"]
47+
CMD ["maturin", "publish", "--interpreter", "python3.10", "python3.11", "python3.12", "python3.14"]

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ classifier = [
1212
"Programming Language :: Python :: 3.11",
1313
"Programming Language :: Python :: 3.12",
1414
"Programming Language :: Python :: 3.13",
15+
"Programming Language :: Python :: 3.14",
1516
"Programming Language :: Python",
1617
"Programming Language :: Rust",
1718
]

0 commit comments

Comments
 (0)