Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pycairo for openSUSE:Factory checked in at 2021-07-21 19:05:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pycairo (Old) and /work/SRC/openSUSE:Factory/.python-pycairo.new.2632 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pycairo" Wed Jul 21 19:05:31 2021 rev:5 rq:906780 version:1.20.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pycairo/python-pycairo.changes 2020-12-05 20:35:08.910584916 +0100 +++ /work/SRC/openSUSE:Factory/.python-pycairo.new.2632/python-pycairo.changes 2021-07-21 19:05:36.311210703 +0200 @@ -1,0 +2,13 @@ +Sat Jul 17 07:00:12 UTC 2021 - Dirk M??ller <dmuel...@suse.com> + +- update to 1.20.1 + * setup.py: Respect the PKG_CONFIG environment variable + * Make import_cairo inline in addition to static + * docs: Fix example in Pattern.set_filter() docs _pr_`221` + * docs: Fix build with newer sphinx + * docs: Fix NumPy width, height-conventions in examples + * docs: Last parameter of rel_curve_to should be dy3, not dy4 + * mypy: Fixes for mypy 0.800+ + * mypy: Don't run mypy via pytest + +------------------------------------------------------------------- Old: ---- pycairo-1.20.0.tar.gz New: ---- pycairo-1.20.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pycairo.spec ++++++ --- /var/tmp/diff_new_pack.q3bGcg/_old 2021-07-21 19:05:36.807211565 +0200 +++ /var/tmp/diff_new_pack.q3bGcg/_new 2021-07-21 19:05:36.807211565 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pycairo # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,7 +20,7 @@ %define skip_python2 1 %define oldpython python Name: python-pycairo -Version: 1.20.0 +Version: 1.20.1 Release: 0 Summary: Python Bindings for Cairo License: LGPL-2.1-or-later OR MPL-1.1 ++++++ pycairo-1.20.0.tar.gz -> pycairo-1.20.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycairo-1.20.0/NEWS new/pycairo-1.20.1/NEWS --- old/pycairo-1.20.0/NEWS 2020-10-05 18:37:02.000000000 +0200 +++ new/pycairo-1.20.1/NEWS 2021-06-03 19:13:51.000000000 +0200 @@ -1,6 +1,17 @@ -Since version 1.11.0 Pycairo uses `Semantic Versioning -<http://semver.org/>`__ i.e. the newest version is the latest stable one. -The last version supporting Python 2.7 is 1.18.x. +.. _v1.20.1: + +1.20.1 - 2021-06-03 +------------------- + +* Use poetry for development :pr:`232` +* setup.py: Respect the PKG_CONFIG environment variable :pr:`235` +* Make import_cairo inline in addition to static :pr`224` +* docs: Fix example in Pattern.set_filter() docs _pr_`221` +* docs: Fix build with newer sphinx :pr:`222` +* docs: Fix NumPy width, height-conventions in examples :pr:`231` +* docs: Last parameter of rel_curve_to should be dy3, not dy4 :pr:`230` +* mypy: Fixes for mypy 0.800+ :pr:`233` +* mypy: Don't run mypy via pytest :pr:`234` .. _v1.20.0: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycairo-1.20.0/PKG-INFO new/pycairo-1.20.1/PKG-INFO --- old/pycairo-1.20.0/PKG-INFO 2020-10-05 18:40:27.839746000 +0200 +++ new/pycairo-1.20.1/PKG-INFO 2021-06-03 19:26:45.351313400 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: pycairo -Version: 1.20.0 +Version: 1.20.1 Summary: Python interface for cairo Home-page: https://pycairo.readthedocs.io Maintainer: Christoph Reiter diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycairo-1.20.0/cairo/pycairo.h new/pycairo-1.20.1/cairo/pycairo.h --- old/pycairo-1.20.0/cairo/pycairo.h 2020-04-01 16:03:19.000000000 +0200 +++ new/pycairo-1.20.1/cairo/pycairo.h 2021-06-03 19:01:15.000000000 +0200 @@ -252,7 +252,7 @@ /* Return -1 on error, 0 on success. * PyCapsule_Import will set an exception if there's an error. */ -static int +static inline int import_cairo(void) { Pycairo_CAPI = (Pycairo_CAPI_t*) PyCapsule_Import("cairo.CAPI", 0); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycairo-1.20.0/docs/integration.rst new/pycairo-1.20.1/docs/integration.rst --- old/pycairo-1.20.0/docs/integration.rst 2020-02-09 11:49:34.000000000 +0100 +++ new/pycairo-1.20.1/docs/integration.rst 2021-04-28 22:42:12.000000000 +0200 @@ -25,7 +25,7 @@ width, height = 255, 255 surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, width, height) buf = surface.get_data() - data = numpy.ndarray(shape=(width, height), + data = numpy.ndarray(shape=(height, width), dtype=numpy.uint32, buffer=buf) @@ -154,4 +154,4 @@ texture = ctx.texture((width, height), 4, data=surface.get_data()) An example can also be found in the ModernGL project: -https://github.com/moderngl/moderngl/blob/master/examples/integration_pycairo.py \ No newline at end of file +https://github.com/moderngl/moderngl/blob/master/examples/integration_pycairo.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycairo-1.20.0/docs/pycairo_c_api.rst new/pycairo-1.20.1/docs/pycairo_c_api.rst --- old/pycairo-1.20.0/docs/pycairo_c_api.rst 2020-10-05 18:17:53.000000000 +0200 +++ new/pycairo-1.20.1/docs/pycairo_c_api.rst 2021-04-28 20:51:55.000000000 +0200 @@ -100,9 +100,9 @@ .. c:type:: PyObject PycairoContext - .. c:member:: cairo_t* PycairoContext.ctx +.. c:member:: cairo_t* PycairoContext.ctx - The wrapped :any:`cairo_t` + The wrapped :any:`cairo_t` .. c:type:: PyTypeObject *PycairoContext_Type @@ -140,9 +140,9 @@ .. c:type:: PyObject PycairoFontFace - .. c:member:: cairo_font_face_t* PycairoFontFace.font_face +.. c:member:: cairo_font_face_t* PycairoFontFace.font_face - The wrapped :any:`cairo_font_face_t` +The wrapped :any:`cairo_font_face_t` .. c:type:: PyTypeObject *PycairoFontFace_Type @@ -168,7 +168,7 @@ .. c:type:: PyObject PycairoFontOptions - .. c:member:: cairo_font_options_t* PycairoFontOptions.font_options +.. c:member:: cairo_font_options_t* PycairoFontOptions.font_options .. c:type:: PyTypeObject *PycairoFontOptions_Type @@ -190,7 +190,7 @@ .. c:type:: PyObject PycairoMatrix - .. c:member:: cairo_matrix_t PycairoMatrix.matrix +.. c:member:: cairo_matrix_t PycairoMatrix.matrix .. c:type:: PyTypeObject *PycairoMatrix_Type @@ -212,7 +212,7 @@ .. c:type:: PyObject PycairoPath - .. c:member:: cairo_path_t* PycairoPath.path +.. c:member:: cairo_path_t* PycairoPath.path .. c:type:: PyTypeObject *PycairoPath_Type @@ -235,7 +235,7 @@ .. c:type:: PyObject PycairoPattern - .. c:member:: cairo_pattern_t* PycairoPattern.pattern +.. c:member:: cairo_pattern_t* PycairoPattern.pattern .. c:type:: PyTypeObject *PycairoPattern_Type @@ -284,7 +284,7 @@ .. c:type:: PyObject PycairoRegion - .. c:member:: cairo_region_t* PycairoRegion.region +.. c:member:: cairo_region_t* PycairoRegion.region .. c:type:: PyTypeObject *PycairoRegion_Type @@ -306,7 +306,7 @@ .. c:type:: PyObject PycairoRectangleInt - .. c:member:: cairo_rectangle_int_t* PycairoRectangleInt.rectangle_int +.. c:member:: cairo_rectangle_int_t* PycairoRectangleInt.rectangle_int .. c:type:: PyTypeObject *PycairoRectangleInt_Type @@ -329,7 +329,7 @@ .. c:type:: PyObject PycairoScaledFont - .. c:member:: cairo_scaled_font_t* PycairoScaledFont.scaled_font +.. c:member:: cairo_scaled_font_t* PycairoScaledFont.scaled_font .. c:type:: PyTypeObject *PycairoScaledFont_Type @@ -351,7 +351,7 @@ .. c:type:: PyObject PycairoSurface - .. c:member:: cairo_surface_t* PycairoSurface.surface +.. c:member:: cairo_surface_t* PycairoSurface.surface .. c:type:: PyTypeObject *PycairoSurface_Type diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycairo-1.20.0/docs/reference/context.rst new/pycairo-1.20.1/docs/reference/context.rst --- old/pycairo-1.20.0/docs/reference/context.rst 2020-01-19 10:57:15.000000000 +0100 +++ new/pycairo-1.20.1/docs/reference/context.rst 2021-04-28 22:42:12.000000000 +0200 @@ -809,7 +809,7 @@ ctx.rel_line_to(-width, 0) ctx.close_path() - .. method:: rel_curve_to(dx1, dy1, dx2, dy2, dx3, dy4) + .. method:: rel_curve_to(dx1, dy1, dx2, dy2, dx3, dy3) :param dx1: the X offset to the first control point :type dx1: float diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycairo-1.20.0/docs/reference/patterns.rst new/pycairo-1.20.1/docs/reference/patterns.rst --- old/pycairo-1.20.0/docs/reference/patterns.rst 2019-08-24 23:37:20.000000000 +0200 +++ new/pycairo-1.20.1/docs/reference/patterns.rst 2021-04-28 20:51:55.000000000 +0200 @@ -58,7 +58,7 @@ creates implicitly. For example:: context.set_source_surface(image, x, y) - surfacepattern.set_filter(context.get_source(), cairo.FILTER_NEAREST) + context.get_source().set_filter(cairo.FILTER_NEAREST) .. versionadded:: 1.12.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycairo-1.20.0/meson.build new/pycairo-1.20.1/meson.build --- old/pycairo-1.20.0/meson.build 2020-10-05 18:24:55.000000000 +0200 +++ new/pycairo-1.20.1/meson.build 2021-04-28 20:51:55.000000000 +0200 @@ -1,6 +1,6 @@ project( 'pycairo', 'c', - version: '1.20.0', + version: '1.20.1', meson_version: '>= 0.47.0', default_options: [ 'warning_level=1', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycairo-1.20.0/pycairo.egg-info/PKG-INFO new/pycairo-1.20.1/pycairo.egg-info/PKG-INFO --- old/pycairo-1.20.0/pycairo.egg-info/PKG-INFO 2020-10-05 18:40:27.000000000 +0200 +++ new/pycairo-1.20.1/pycairo.egg-info/PKG-INFO 2021-06-03 19:26:44.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: pycairo -Version: 1.20.0 +Version: 1.20.1 Summary: Python interface for cairo Home-page: https://pycairo.readthedocs.io Maintainer: Christoph Reiter diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycairo-1.20.0/pyproject.toml new/pycairo-1.20.1/pyproject.toml --- old/pycairo-1.20.0/pyproject.toml 2020-10-05 17:45:46.000000000 +0200 +++ new/pycairo-1.20.1/pyproject.toml 2021-04-28 22:42:12.000000000 +0200 @@ -1,2 +1,20 @@ +[tool.poetry] +name = "pycairo" +version = "1.20.1" +description = "Python interface for cairo" +authors = ["Christoph Reiter"] + +[tool.poetry.dependencies] +python = "^3.6" + +[tool.poetry.dev-dependencies] +pytest = "^6.0.0" +hypothesis = "^6.0.0" +mypy = {version = "^0.812", markers = "platform_python_implementation != 'PyPy'"} +flake8 = "^3.9.1" +Sphinx = "^3.5.4" +sphinx-rtd-theme = "^0.5.2" +coverage = "^5.5" + [build-system] requires = ["setuptools", "wheel"] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycairo-1.20.0/setup.cfg new/pycairo-1.20.1/setup.cfg --- old/pycairo-1.20.0/setup.cfg 2020-10-05 18:40:27.839746000 +0200 +++ new/pycairo-1.20.1/setup.cfg 2021-06-03 19:26:45.351313400 +0200 @@ -28,6 +28,7 @@ disallow_any_explicit = False strict_optional = True follow_imports = silent +exclude = ^(examples/|build/) [egg_info] tag_build = diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycairo-1.20.0/setup.py new/pycairo-1.20.1/setup.py --- old/pycairo-1.20.0/setup.py 2020-10-05 18:24:50.000000000 +0200 +++ new/pycairo-1.20.1/setup.py 2021-06-03 19:01:15.000000000 +0200 @@ -19,7 +19,7 @@ from distutils import sysconfig -PYCAIRO_VERSION = '1.20.0' +PYCAIRO_VERSION = '1.20.1' CAIRO_VERSION_REQUIRED = '1.15.10' @@ -41,8 +41,9 @@ def pkg_config_version_check(pkg, version): + pkg_config = os.environ.get('PKG_CONFIG', 'pkg-config') command = [ - "pkg-config", + pkg_config, "--print-errors", "--exists", '%s >= %s' % (pkg, version), @@ -52,7 +53,8 @@ def pkg_config_parse(opt, pkg): - command = ["pkg-config", opt, pkg] + pkg_config = os.environ.get('PKG_CONFIG', 'pkg-config') + command = [pkg_config, opt, pkg] ret = _check_output(command) output = ret.decode() opt = opt[-2:] @@ -405,9 +407,6 @@ def check_setuptools_for_dist(): if "setuptools" not in sys.modules: raise Exception("setuptools not available") - version = tuple(map(int, sys.modules["setuptools"].__version__.split("."))) - if version < (24, 2, 0): - raise Exception("setuptools too old") du_sdist = get_command_class("sdist") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycairo-1.20.0/tests/test_typing.py new/pycairo-1.20.1/tests/test_typing.py --- old/pycairo-1.20.0/tests/test_typing.py 2020-04-01 16:03:19.000000000 +0200 +++ new/pycairo-1.20.1/tests/test_typing.py 2021-04-28 22:42:12.000000000 +0200 @@ -1,21 +1,8 @@ import os import io -import sys import types import cairo -import pytest - -mypy = pytest.importorskip("mypy.api") -pytestmark = pytest.mark.skipif( - sys.version_info[:2] < (3, 6), reason="Py3.6 only") -pytestmark - - -def test_mypy(): - out, err, status = mypy.run([os.path.dirname(cairo.__path__[0])]) - if status != 0: - raise Exception("\n" + "\n".join([out, err])) def test_typing():