Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pypng for openSUSE:Factory checked in at 2023-07-03 17:44:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pypng (Old) and /work/SRC/openSUSE:Factory/.python-pypng.new.13546 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pypng" Mon Jul 3 17:44:26 2023 rev:10 rq:1096597 version:0.20220715.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pypng/python-pypng.changes 2022-10-08 01:25:59.502335165 +0200 +++ /work/SRC/openSUSE:Factory/.python-pypng.new.13546/python-pypng.changes 2023-07-03 17:44:46.081418922 +0200 @@ -1,0 +2,51 @@ +Mon Jul 3 07:00:03 UTC 2023 - Torsten Gruner <simmpho...@opensuse.org> + +- update to version 0.20220715.0 + * Development moved to gitlab: https://gitlab.com/drj11/pypng + * If you pass an empty file to PyPNG + it now raises the builtin Python exception EOFError. + This should make it easier to diagnose empty file problems separately + from genuine format errors + (which use png.FormatError). + This is a slightly breaking change to the API. + * New prirowpng tool to join PNG images in a row left-to-right + (old internal pipcat tool). + * New pricolpng tool to join PNG images in a column top-to-bottom. + * Support for plain PGM files (magic number P2) added to pripamtopng. + * New priplan9topng tool to convert from Plan 9 image format to PNG. + In reality this has been lurking in the codebase for years, but + has recently been converted to Python 3. + The author has only a limited collection of Plan 9 images, + which limits the testing that can be done. + The author welcomes bug reports for Plan 9 images. + * The priplan9topng tool has an even more experimental option + --font which converts Plan 9 subfont files to a sequence of PNG files. +- release 0.0.21 + * Support for Python 2 is dropped. + * Python 3.5 and onwards are supported. + * Some of the ancillary tools are modified to work on Python 3. + * Installs via wheel files. + * prichunkpng command line tool now has some new options to add + * chunks: + --iccprofile to add a iCCP chunk (ICC Profile); + --physical to add a pHYs chunk, specifying the intended pixel size; + --sigbit to add a sBIT chunk, specifying the encoded significant bits; + --transparent to add a tRNS chunk, specifying the transparent colour. + * priditherpng command line tool standardised and + converted to Python 3. + * pripngtopam tool now has a --plain option to output plain PGM + and PPM formats. The topam part of the name is a bit of a + misnomer: when possible (L and RGB PNG files) the tool will + output either a PGM (grey) or a PPM (RGB) file. Essentially all + tools that can process a PAM file can also process a PGM or a + PPM file. PAM files cannot be plain so using the option + will raise an error in the case where a true PAM file is + written. + * Better error messages when you write the wrong number of rows. + (Slightly experimentally) running the png module as a command + line tool, with python -m png, will report the version and + file location of the png module. +- remove pr_106.patch +- remove pypng-pr104-py39.patch + +------------------------------------------------------------------- Old: ---- pr_106.patch pypng-0.0.20.tar.gz pypng-pr104-py39.patch New: ---- pypng-0.20220715.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pypng.spec ++++++ --- /var/tmp/diff_new_pack.nnMLIt/_old 2023-07-03 17:44:46.805423184 +0200 +++ /var/tmp/diff_new_pack.nnMLIt/_new 2023-07-03 17:44:46.809423208 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pypng # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,22 +16,22 @@ # -%define binaries prichunkpng priforgepng prigreypng pripalpng pripamtopng pripnglsch pripngtopam priweavepng -%{?!python_module:%define python_module() python3-%{**}} +%define binaries prichunkpng priforgepng prigreypng pripalpng pripamtopng pripnglsch pripngtopam priweavepng pricolpng priditherpng priplan9topng prirowpng +%{?sle15_python_module_pythons} Name: python-pypng -Version: 0.0.20 +Version: 0.20220715.0 Release: 0 Summary: Pure Python PNG image encoder/decoder License: MIT Group: Development/Languages/Python -URL: https://github.com/drj11/pypng +URL: https://gitlab.com/drj11/pypng Source: https://files.pythonhosted.org/packages/source/p/pypng/pypng-%{version}.tar.gz -# PATCH-FIX-UPSTREAM pr_106 -- gh#drj11/pypng#106 remove test modules -Patch0: pr_106.patch -# PATCH-FIX-UPSTREAM pypng-pr104-py39.patch -- gh#drj11/pypng#104 -- python 3.9 compat -Patch1: https://github.com/drj11/pypng/pull/104.patch#/pypng-pr104-py39.patch BuildRequires: %{python_module Cython} +BuildRequires: %{python_module base >= 3.5} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: %{python_module numpy if (%python-base without python36-base)} @@ -44,26 +44,22 @@ PyPNG allows PNG image files to be read and written using pure Python. %prep -%setup -q -n pypng-%{version} -%patch0 -p1 -%if 0%{suse_version} >= 1550 -# The patch for Python 3.9 compatibility breaks Python 2 -%patch1 -p1 -%endif -sed -i -e '/^#!\//, 1d' code/png.py +%setup 1 -q -n pypng-%{version} +sed -i -e '/^#!\//, 1d' code/{exnumpy,iccp,mkiccp,png,pngsuite,texttopng}.py +sed -i 's|license_file = |license_files = |' setup.cfg %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install for b in %{binaries}; do %python_clone -a %{buildroot}%{_bindir}/$b done %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:code $python code/test_png.py +%pytest %post %{lua: for b in rpm.expand("%{binaries}"):gmatch("%S+") do ++++++ pypng-0.0.20.tar.gz -> pypng-0.20220715.0.tar.gz ++++++ ++++ 44456 lines of diff (skipped)