17
0

- Update to 0.8.1

* Fix crash on Windows for Python >= 3.12, caused by
    distutils module been removed from Python 3.12.
- from version 0.8
  * Fix unnecessary runtime dependency on setuptools.
  * Explicitly require a first argument called "progname". This is to
    avoid the common error not passing a progname by pointing users to it.
    This is fully backward compatible
  * Issue a warning if first argument looks like an option.
  * Fix crash if gs.new_instance() fails.
  * Breaking change (only effecting the low-level API):
    init_with_args() no longer catches e_Quit,
    but raises an exception like for any other error except e_Info.
  * Pass correct value to gslib if user_error is set.
  * Enhance documentation
  * Add some doc-strings.
  * Fix some linting issues.
  * Add testing with Python 3.10, 3.11, 3.12 and 3.13.
  * Revise testing, packaging and CI/CD.
  * Make tests independent of fonts, thus avoiding test failures.
  * Enhance examples.
- Drop python-ghostscript-update-tests.patch, fixed upstream
- Remove CHANGES.txt from %doc section

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ghostscript?expand=0&rev=5
This commit is contained in:
2025-09-18 12:39:10 +00:00
committed by Git OBS Bridge
parent ad2561814c
commit ba6e116559
5 changed files with 32 additions and 387 deletions

View File

@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-ghostscript
Version: 0.7
Version: 0.8.1
Release: 0
License: GPL-3.0-or-later
Summary: Python interface to the Ghostscript C-API
@@ -26,9 +26,6 @@ Group: Development/Languages/Python
URL: https://gitlab.com/pdftools/python-ghostscript
Source: https://files.pythonhosted.org/packages/source/g/ghostscript/ghostscript-%{version}.tar.gz
Source1: https://gitlab.com/pdftools/python-ghostscript/-/raw/develop/test/testimage.bmp
# Previous tests were dependent on fonts and generated different results
# depending on ghostscript version and platform
Patch1: python-ghostscript-update-tests.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
@@ -62,7 +59,7 @@ cp %{SOURCE1} test
%pytest -v
%files %{python_files}
%doc CHANGES.txt README.rst
%doc README.rst
%license COPYING
%{python_sitelib}/ghostscript
%{python_sitelib}/ghostscript-%{version}*-info