Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pydyf for openSUSE:Factory checked in at 2022-10-29 20:17:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pydyf (Old) and /work/SRC/openSUSE:Factory/.python-pydyf.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pydyf" Sat Oct 29 20:17:13 2022 rev:6 rq:1032129 version:0.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pydyf/python-pydyf.changes 2022-10-12 18:28:33.974201651 +0200 +++ /work/SRC/openSUSE:Factory/.python-pydyf.new.2275/python-pydyf.changes 2022-10-29 20:18:29.750654724 +0200 @@ -1,0 +2,10 @@ +Fri Oct 28 20:04:09 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com> + +- Update to version 0.5.0 + * Add the PDF.page_references property + * Revert the PDF.pages['Kids'] behavior to be backwards compatible with version 0.3.0 + +- Update to version 0.4.0 + * Allow nth page???s reference to be retrieved using PDF.pages['Kids'][n] + +------------------------------------------------------------------- Old: ---- pydyf-0.3.0.tar.gz New: ---- pydyf-0.5.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pydyf.spec ++++++ --- /var/tmp/diff_new_pack.hFycWC/_old 2022-10-29 20:18:30.150656856 +0200 +++ /var/tmp/diff_new_pack.hFycWC/_new 2022-10-29 20:18:30.154656877 +0200 @@ -18,7 +18,7 @@ Name: python-pydyf -Version: 0.3.0 +Version: 0.5.0 Release: 0 Summary: A low-level PDF generator License: BSD-3-Clause ++++++ pydyf-0.3.0.tar.gz -> pydyf-0.5.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pydyf-0.3.0/PKG-INFO new/pydyf-0.5.0/PKG-INFO --- old/pydyf-0.3.0/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 +++ new/pydyf-0.5.0/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pydyf -Version: 0.3.0 +Version: 0.5.0 Summary: A low-level PDF generator. Keywords: pdf,generator Author-email: CourtBouillon <cont...@courtbouillon.org> @@ -23,11 +23,8 @@ Requires-Dist: sphinx ; extra == "doc" Requires-Dist: sphinx_rtd_theme ; extra == "doc" Requires-Dist: pytest ; extra == "test" -Requires-Dist: pytest-xdist ; extra == "test" -Requires-Dist: pytest-flake8 ; extra == "test" -Requires-Dist: pytest-isort ; extra == "test" -Requires-Dist: pytest-cov ; extra == "test" -Requires-Dist: coverage[toml] ; extra == "test" +Requires-Dist: isort ; extra == "test" +Requires-Dist: flake8 ; extra == "test" Requires-Dist: pillow ; extra == "test" Project-URL: Changelog, https://github.com/CourtBouillon/pydyf/releases Project-URL: Code, https://github.com/CourtBouillon/pydyf diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pydyf-0.3.0/docs/changelog.rst new/pydyf-0.5.0/docs/changelog.rst --- old/pydyf-0.3.0/docs/changelog.rst 2022-09-19 08:55:51.185662300 +0200 +++ new/pydyf-0.5.0/docs/changelog.rst 2022-10-11 16:06:24.923553200 +0200 @@ -2,6 +2,67 @@ ========= +Version 0.5.0 +------------- + +Released on 2022-10-11. + +New features: + +* Add the PDF.page_references property +* Revert the PDF.pages['Kids'] behavior to be retro-compatible with version 0.3.0 + +Backers and sponsors: + +* Grip Angebotssoftware +* Manuel Barkhau +* Crisp BV +* SimonSoft +* Menutech +* Spacinov +* KontextWork +* Ren?? Fritz +* NCC Group +* Kobalt +* Tom Pohl +* John R Ellis +* Moritz Mahringer +* Yanal-Yvez Fargialla +* G??bor +* Piotr Horzycki +* Andrew Ittner + + +Version 0.4.0 +------------- + +Released on 2022-10-11. + +New features: + +* Allow nth page???s reference to be retrieved using PDF.pages['Kids'][n] + +Backers and sponsors: + +* Grip Angebotssoftware +* Manuel Barkhau +* Crisp BV +* SimonSoft +* Menutech +* Spacinov +* KontextWork +* Ren?? Fritz +* NCC Group +* Kobalt +* Tom Pohl +* John R Ellis +* Moritz Mahringer +* Yanal-Yvez Fargialla +* G??bor +* Piotr Horzycki +* Andrew Ittner + + Version 0.3.0 ------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pydyf-0.3.0/docs/contribute.rst new/pydyf-0.5.0/docs/contribute.rst --- old/pydyf-0.3.0/docs/contribute.rst 2020-12-06 19:47:33.597423300 +0100 +++ new/pydyf-0.5.0/docs/contribute.rst 2022-09-19 09:09:14.775515300 +0200 @@ -46,12 +46,20 @@ Launching tests require to have Ghostscript_ installed and available in ``PATH``. -You can launch tests (with code coverage and lint) using the following command:: +You can launch tests using the following command:: venv/bin/pytest +WeasyPrint also uses isort_ to check imports and flake8_ to check the coding +style:: + + venv/bin/python -m isort . --check --diff + venv/bin/python -m flake8 + .. _pytest: https://docs.pytest.org/ .. _Ghostscript: https://www.ghostscript.com/ +.. _isort: https://pycqa.github.io/isort/ +.. _flake8: https://flake8.pycqa.org/ Documentation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pydyf-0.3.0/pydyf/__init__.py new/pydyf-0.5.0/pydyf/__init__.py --- old/pydyf-0.3.0/pydyf/__init__.py 2022-09-17 09:55:05.994255800 +0200 +++ new/pydyf-0.5.0/pydyf/__init__.py 2022-10-11 16:03:43.788010100 +0200 @@ -8,7 +8,7 @@ from codecs import BOM_UTF16_BE from hashlib import md5 -VERSION = __version__ = '0.3.0' +VERSION = __version__ = '0.5.0' def _to_bytes(item): @@ -482,6 +482,12 @@ object_.number = len(self.objects) self.objects.append(object_) + @property + def page_references(self): + return tuple( + f'{object_number} 0 R'.encode('ascii') + for object_number in self.pages['Kids'][::3]) + def write_line(self, content, output): """Write line to output. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pydyf-0.3.0/pyproject.toml new/pydyf-0.5.0/pyproject.toml --- old/pydyf-0.3.0/pyproject.toml 2022-05-22 18:43:07.163792000 +0200 +++ new/pydyf-0.5.0/pyproject.toml 2022-09-19 10:20:58.063255500 +0200 @@ -38,14 +38,11 @@ [project.optional-dependencies] doc = ['sphinx', 'sphinx_rtd_theme'] -test = ['pytest', 'pytest-xdist', 'pytest-flake8', 'pytest-isort', 'pytest-cov', 'coverage[toml]', 'pillow'] +test = ['pytest', 'isort', 'flake8', 'pillow'] [tool.flit.sdist] exclude = ['.*'] -[tool.pytest.ini_options] -addopts = '--isort --flake8 --numprocesses=auto' - [tool.coverage.run] branch = true include = ['tests/*', 'pydyf/*']