Skip to content

Commit 49790e7

Browse files
authored
Release 6.0.3 (#889)
* Update CI and Build Targets for Python 3.14 and Windows/arm64 (#864) * Update CI and Build Targets * Add Python 3.14 pre-release support * Add Windows/arm64 builds * Update to current GHA runner versions * Native aarch64 Linux runners * Fix musllinux 1.2 builds * musl libyaml build fixes * add 3.14t wheels w/ freethreading directive, misc CI/build cleanup * include package version in merged dist artifact filename (cherry picked from commit d51d8a1) * Release 6.0.3
1 parent 41309b0 commit 49790e7

File tree

7 files changed

+162
-80
lines changed

7 files changed

+162
-80
lines changed

.github/workflows/ci.yaml

Lines changed: 139 additions & 70 deletions
Large diffs are not rendered by default.

CHANGES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ For a complete changelog, see:
33

44
* https://github.com/yaml/pyyaml/commits/
55

6+
6.0.3 (2025-09-25)
7+
8+
* https://github.com/yaml/pyyaml/pull/864 -- Support for Python 3.14 and free-threading (experimental)
9+
610
6.0.2 (2024-08-06)
711

812
* https://github.com/yaml/pyyaml/pull/808 -- Support for Cython 3.x and Python 3.13

lib/yaml/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from .loader import *
99
from .dumper import *
1010

11-
__version__ = '6.0.2'
11+
__version__ = '6.0.3'
1212
try:
1313
from .cyaml import *
1414
__with_libyaml__ = True

packaging/build/libyaml.sh

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
set -eux
44

5+
# build the requested version of libyaml locally
6+
echo "::group::fetch libyaml ${LIBYAML_REF}"
7+
git config --global advice.detachedHead false
8+
git clone --branch "$LIBYAML_REF" "$LIBYAML_REPO" libyaml
9+
pushd libyaml
10+
git reset --hard "$LIBYAML_REF"
11+
echo "::endgroup::"
12+
513
# ensure the prove testing tool is available
614
echo "::group::ensure build/test prerequisites"
715
if ! command -v prove; then
@@ -12,14 +20,14 @@ if ! command -v prove; then
1220
exit 1
1321
fi
1422
fi
15-
echo "::endgroup::"
1623

17-
# build the requested version of libyaml locally
18-
echo "::group::fetch libyaml ${LIBYAML_REF}"
19-
git config --global advice.detachedHead false
20-
git clone --branch "$LIBYAML_REF" "$LIBYAML_REPO" libyaml
21-
pushd libyaml
22-
git reset --hard "$LIBYAML_REF"
24+
# hack to fix up locally musl1.2 libtool macros
25+
if grep -m 1 alpine /etc/os-release; then
26+
if ! grep -E 'AC_CONFIG_MACRO_DIRS\(\[m4])' configure.ac; then
27+
echo 'AC_CONFIG_MACRO_DIRS([m4])' >> configure.ac
28+
ACLOCAL_PATH=/usr/local/share/libtool/ libtoolize
29+
fi
30+
fi
2331
echo "::endgroup::"
2432

2533
echo "::group::autoconf libyaml w/ static only"

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[build-system]
22
requires = [
33
"setuptools", # FIXME: declare min/max setuptools versions?
4-
"wheel",
54
"Cython; python_version < '3.13'",
65
"Cython>=3.0; python_version >= '3.13'"
76
]

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
NAME = 'PyYAML'
3-
VERSION = '6.0.2'
3+
VERSION = '6.0.3'
44
DESCRIPTION = "YAML parser and emitter for Python"
55
LONG_DESCRIPTION = """\
66
YAML is a data serialization format designed for human readability
@@ -34,6 +34,7 @@
3434
"Programming Language :: Python :: 3.11",
3535
"Programming Language :: Python :: 3.12",
3636
"Programming Language :: Python :: 3.13",
37+
"Programming Language :: Python :: 3.14",
3738
"Programming Language :: Python :: Implementation :: CPython",
3839
"Programming Language :: Python :: Implementation :: PyPy",
3940
"Topic :: Software Development :: Libraries :: Python Modules",

yaml/_yaml.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# cython: freethreading_compatible = True
12

23
import yaml
34

0 commit comments

Comments
 (0)