Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
209 changes: 139 additions & 70 deletions .github/workflows/ci.yaml

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ For a complete changelog, see:

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

6.0.3 (2025-09-25)

* https://github.com/yaml/pyyaml/pull/864 -- Support for Python 3.14 and free-threading (experimental)

6.0.2 (2024-08-06)

* https://github.com/yaml/pyyaml/pull/808 -- Support for Cython 3.x and Python 3.13
Expand Down
2 changes: 1 addition & 1 deletion lib/yaml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .loader import *
from .dumper import *

__version__ = '6.0.2'
__version__ = '6.0.3'
try:
from .cyaml import *
__with_libyaml__ = True
Expand Down
22 changes: 15 additions & 7 deletions packaging/build/libyaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

set -eux

# build the requested version of libyaml locally
echo "::group::fetch libyaml ${LIBYAML_REF}"
git config --global advice.detachedHead false
git clone --branch "$LIBYAML_REF" "$LIBYAML_REPO" libyaml
pushd libyaml
git reset --hard "$LIBYAML_REF"
echo "::endgroup::"

# ensure the prove testing tool is available
echo "::group::ensure build/test prerequisites"
if ! command -v prove; then
Expand All @@ -12,14 +20,14 @@ if ! command -v prove; then
exit 1
fi
fi
echo "::endgroup::"

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

echo "::group::autoconf libyaml w/ static only"
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[build-system]
requires = [
"setuptools", # FIXME: declare min/max setuptools versions?
"wheel",
"Cython; python_version < '3.13'",
"Cython>=3.0; python_version >= '3.13'"
]
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

NAME = 'PyYAML'
VERSION = '6.0.2'
VERSION = '6.0.3'
DESCRIPTION = "YAML parser and emitter for Python"
LONG_DESCRIPTION = """\
YAML is a data serialization format designed for human readability
Expand Down Expand Up @@ -34,6 +34,7 @@
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand Down
1 change: 1 addition & 0 deletions yaml/_yaml.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# cython: freethreading_compatible = True

import yaml

Expand Down