forked from pool/python314
- Library
- gh-137426: Remove the code deprecation of
importlib.abc.ResourceLoader. It is documented as
deprecated, but left for backwards compatibility with other
classes in importlib.abc.
- gh-137282: Fix tab completion and dir() on
concurrent.futures.
- gh-137257: Bump the version of pip bundled in ensurepip to
version 25.2
- gh-137226: Fix behavior of
annotationlib.ForwardRef.evaluate() when the type_params
parameter is passed and the name of a type param is also
present in an enclosing scope.
- gh-130522: Fix unraisable TypeError raised during
interpreter shutdown in the threading module.
- gh-137059: Fix handling of file URLs with a
Windows drive letter in the URL authority by
urllib.request.url2pathname(). This fixes a regression in
earlier pre-releases of Python 3.14.
- gh-130577: tarfile now validates archives to ensure member
offsets are non-negative. (Contributed by Alexander Enrique
Urieles Nieto in gh-130577; CVE-2025-8194, bsc#1247249).
- gh-135228: When dataclasses replaces a class with a slotted
dataclass, the original class can now be garbage collected
again. Earlier changes in Python 3.14 caused this class to
always remain in existence together with the replacement
class synthesized by dataclasses.
- Documentation
- gh-136155: We are now checking for fatal errors in EPUB
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python314?expand=0&rev=91
79 lines
2.1 KiB
Bash
79 lines
2.1 KiB
Bash
#!/bin/bash
|
|
|
|
export LC_ALL=C
|
|
|
|
master=python*.spec
|
|
|
|
# create import_failed.map from package definitions
|
|
pkgname=$(grep python_pkg_name $master |grep define |awk -F' ' '{print $3}')
|
|
MAPFILE=import_failed.map
|
|
function new_map_line () {
|
|
package=$1
|
|
package=$(echo $1 |sed -e "s:%{python_pkg_name}:$pkgname:")
|
|
modules=$2
|
|
if [ -z "$package" -o -z "$modules" ]; then
|
|
return
|
|
fi
|
|
if [[ "$package" =~ "-base" ]]; then
|
|
return
|
|
fi
|
|
echo "$package:$modules" >> $MAPFILE.tmp
|
|
}
|
|
|
|
for spec in *.spec; do
|
|
basename=${spec%.spec}
|
|
package=
|
|
modules=
|
|
while read line; do
|
|
case $line in
|
|
"%files -n "*)
|
|
new_map_line $package "$modules"
|
|
package=${line#"%files -n "}
|
|
modules=
|
|
;;
|
|
"%files "*)
|
|
new_map_line $package "$modules"
|
|
package=$basename-${line#"%files "}
|
|
modules=
|
|
;;
|
|
"%files")
|
|
new_map_line $package "$modules"
|
|
package=$basename
|
|
modules=
|
|
;;
|
|
"%{sitedir}/config-"*)
|
|
# ignore
|
|
;;
|
|
"%{sitedir}/"*)
|
|
word=${line#"%{sitedir}/"}
|
|
if ! echo $word | grep -q /; then
|
|
modules="$modules $word"
|
|
fi
|
|
;;
|
|
"%{dynlib "*"}")
|
|
word=${line#"%{dynlib "}
|
|
word=${word%"}"}
|
|
modules="$modules $word"
|
|
;;
|
|
esac
|
|
done < $spec
|
|
new_map_line $package "$modules"
|
|
done
|
|
|
|
cat $MAPFILE.tmp |sort -u > $MAPFILE
|
|
rm $MAPFILE.tmp
|
|
|
|
# run test inclusion check
|
|
tar xJf Python-*.xz
|
|
python3 skipped_tests.py
|
|
|
|
# generate baselibs.conf
|
|
VERSION=$(grep ^Version $master|awk -F':' '{print $2}' |sed -e 's/ //g')
|
|
python_version=${VERSION:0:3} # 3.3
|
|
python_version_abitag=${python_version//./} # 33
|
|
python_version_soname=${python_version//./_} # 3_3
|
|
echo "$pkgname-base" > baselibs.conf
|
|
echo "$pkgname" >> baselibs.conf
|
|
echo "libpython$python_version_soname-1_0" >> baselibs.conf
|
|
|