Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-lexicon for openSUSE:Factory checked in at 2024-05-15 21:25:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-lexicon (Old) and /work/SRC/openSUSE:Factory/.python-lexicon.new.1880 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-lexicon" Wed May 15 21:25:32 2024 rev:8 rq:1173811 version:2.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-lexicon/python-lexicon.changes 2023-04-22 22:00:58.041398289 +0200 +++ /work/SRC/openSUSE:Factory/.python-lexicon.new.1880/python-lexicon.changes 2024-05-15 21:25:51.619992844 +0200 @@ -1,0 +2,7 @@ +Tue May 14 02:07:51 UTC 2024 - Steve Kowalik <[email protected]> + +- Switch to pyproject and autosetup macros. +- Add patch support-pytest-8.patch: + * Use new "setup_method" to support pytest >= 8. + +------------------------------------------------------------------- New: ---- support-pytest-8.patch BETA DEBUG BEGIN: New:- Switch to pyproject and autosetup macros. - Add patch support-pytest-8.patch: * Use new "setup_method" to support pytest >= 8. BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-lexicon.spec ++++++ --- /var/tmp/diff_new_pack.53eGJ8/_old 2024-05-15 21:25:52.448022813 +0200 +++ /var/tmp/diff_new_pack.53eGJ8/_new 2024-05-15 21:25:52.448022813 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-lexicon # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-lexicon Version: 2.0.1 @@ -25,11 +24,15 @@ License: BSD-2-Clause URL: https://github.com/bitprophet/lexicon Source: https://files.pythonhosted.org/packages/source/l/lexicon/lexicon-%{version}.tar.gz +# PATCH-FIX-UPSTREAM (sort of) Not in the sdist, but on GitHub Patch0: add-pytest-ini.patch +# PATCH-FIX-OPENSUSE Support pytest >= 8 +Patch1: support-pytest-8.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-six # Completely different pkg but same namespece in sitelib folder Conflicts: python-dns-lexicon BuildArch: noarch @@ -46,14 +49,13 @@ * Lexicon, a subclass of both of the above which exhibits both sets of behavior %prep -%setup -q -n lexicon-%{version} -%autopatch -p1 +%autosetup -p1 -n lexicon-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -63,5 +65,5 @@ %doc README.rst %license LICENSE %{python_sitelib}/lexicon -%{python_sitelib}/lexicon-%{version}*-info +%{python_sitelib}/lexicon-%{version}.dist-info ++++++ support-pytest-8.patch ++++++ Index: lexicon-2.0.1/tests/alias_dict.py =================================================================== --- lexicon-2.0.1.orig/tests/alias_dict.py +++ lexicon-2.0.1/tests/alias_dict.py @@ -36,7 +36,7 @@ class AliasDict_: ad.unalias("lol no") class aliases_of: - def setup(self): + def setup_method(self): self.ad = AliasDict() def returns_list_of_aliases_for_given_real_key(self): @@ -162,7 +162,7 @@ class AliasDict_: class aliases_are_not_real_keys: "aliases are not real keys" - def setup(self): + def setup_method(self): self.a = AliasDict({"key1": "val1", "key2": "val2"}) self.a.alias("myalias", "key1")
