diff --git a/python312.changes b/python312.changes index 78e6405..82c8494 100644 --- a/python312.changes +++ b/python312.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Thu Apr 27 16:59:09 UTC 2023 - Daniel Garcia + +- Ignore failing test test_freeze_simple_script, it fails because it + cannot import _sysconfigdata__linux_x86_64-linux-gnu that's not + present in the test environment, it fails without bundled libs. +- Remove non existing paths: + * %{sitedir}/tkinter/test + * %{sitedir}/sqlite3/test + * %{dynlib _curses_panel} + ------------------------------------------------------------------- Wed Apr 26 10:55:38 UTC 2023 - Daniel Garcia diff --git a/python312.spec b/python312.spec index 5817a35..7869b2a 100644 --- a/python312.spec +++ b/python312.spec @@ -565,17 +565,13 @@ if test $(ulimit -v) = unlimited || test $(ulimit -v) -gt 10000000; then ulimit -v 11000000 || : fi -# test_freeze_simple_script in test.test_tools.test_freeze.TestFreeze -# uses CONFIG_ARGS to run ./configure. -export CONFIG_ARGS="--enable-ipv6 --enable-shared --with-ensurepip=no \ - --with-system-ffi --with-system-expat --with-lto --enable-optimizations \ - --with-system-libmpdec --enable-loadable-sqlite-extensions" - export PYTHONPATH="$(pwd -P)/Lib" # Use timeout, like make target buildbottest # We cannot run tests parallel, because osc build environment doesn’t # have /dev/shm -%make_build -j1 test TESTOPTS="-u curses -v -x $EXCLUDE --timeout=5400" + +# test_freeze_simple_script is skipped, because it fails without bundled libs. +%make_build -j1 test TESTOPTS="-u curses -v -i test_freeze_simple_script -x $EXCLUDE --timeout=5400" # use network, be verbose: #make test TESTOPTS="-l -u network -v" %endif @@ -620,7 +616,7 @@ for module in \ ensurepip html http re \ importlib json logging multiprocessing pydoc_data unittest \ urllib venv wsgiref lib2to3 test tomllib turtledemo \ - xml xmlrpc zoneinfo __phello__ + xml xmlrpc zipfile zoneinfo __phello__ do rm -r %{buildroot}%{sitedir}/$module done @@ -633,7 +629,7 @@ for library in \ _posixsubprocess _queue _random resource select _ssl _socket spwd \ _statistics _struct syslog termios _testbuffer _testimportmultiple \ _testmultiphase unicodedata zlib _ctypes_test _testinternalcapi _testcapi \ - _typing _testclinic xxlimited_35 \ + _typing _testclinic xxlimited xxlimited_35 \ _xxtestfuzz _xxsubinterpreters _elementtree pyexpat _md5 _sha1 \ _sha2 _blake2 _sha3 _uuid _zoneinfo \ _testsinglephase _xxinterpchannels xxsubtype @@ -775,14 +771,12 @@ echo %{sitedir}/_import_failed > %{buildroot}/%{sitedir}/site-packages/zzzz-impo %files -n %{python_pkg_name}-tk %defattr(644, root, root, 755) %{sitedir}/tkinter -%exclude %{sitedir}/tkinter/test %{dynlib _tkinter} %files -n %{python_pkg_name}-curses %defattr(644, root, root, 755) %{sitedir}/curses %{dynlib _curses} -%{dynlib _curses_panel} %files -n %{python_pkg_name}-dbm %defattr(644, root, root, 755) @@ -795,7 +789,6 @@ echo %{sitedir}/_import_failed > %{buildroot}/%{sitedir}/site-packages/zzzz-impo %dir %{sitedir} %dir %{sitedir}/lib-dynload %{sitedir}/sqlite3 -%exclude %{sitedir}/sqlite3/test %{dynlib readline} %{dynlib _sqlite3} %if 0%{?suse_version} < 1599 @@ -887,7 +880,6 @@ echo %{sitedir}/_import_failed > %{buildroot}/%{sitedir}/site-packages/zzzz-impo %{dynlib _testinternalcapi} %{dynlib _testimportmultiple} %{dynlib _testmultiphase} -# %%{dynlib xxlimited} %{dynlib _testsinglephase} %{dynlib _xxinterpchannels} %{dynlib _xxtestfuzz}