Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-apipkg for openSUSE:Factory checked in at 2022-12-01 16:58:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-apipkg (Old)
and /work/SRC/openSUSE:Factory/.python-apipkg.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-apipkg"
Thu Dec 1 16:58:38 2022 rev:9 rq:1039166 version:3.0.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-apipkg/python-apipkg.changes 2021-10-20 20:24:29.561385794 +0200
+++ /work/SRC/openSUSE:Factory/.python-apipkg.new.1835/python-apipkg.changes 2022-12-01 16:59:00.951091870 +0100
@@ -1,0 +2,31 @@
+Wed Nov 30 17:05:54 UTC 2022 - Daniel Garcia
+
+- Generate the _version.py file in %prep to remove completely hatch-vcs from
+ pyproject to make it build and run tests correctly
+
+-------------------------------------------------------------------
+Wed Nov 30 16:45:02 UTC 2022 - Daniel Garcia
+
+- Remove python-hatch-vcs dependency
+
+-------------------------------------------------------------------
+Wed Nov 30 12:49:07 UTC 2022 - Daniel Garcia
+
+- Remove python-py dependency
+
+-------------------------------------------------------------------
+Tue Nov 29 16:53:46 UTC 2022 - Daniel Garcia
+
+- Remove python_module macro definition
+- Update to 3.0.1:
+ * restore tox.ini to support tox --current-env based packaging
+- 3.0.0
+ * add support for python 3.11 and drop dead pythons (thanks hukgo)
+ * migrate to hatch
+ * split up __init__.py
+ * add some type annotations
+- 2.1.1
+ * drop the python 3.4 support marker, 2.1.0 broke it
+ 2.1.0 will be yanked after release
+
+-------------------------------------------------------------------
Old:
----
apipkg-2.1.0.tar.gz
New:
----
apipkg-3.0.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-apipkg.spec ++++++
--- /var/tmp/diff_new_pack.zyywH4/_old 2022-12-01 16:59:01.499094878 +0100
+++ /var/tmp/diff_new_pack.zyywH4/_new 2022-12-01 16:59:01.503094900 +0100
@@ -1,7 +1,7 @@
#
# spec file
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 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-%{**}}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -%{flavor}
@@ -26,7 +25,7 @@
%bcond_with test
%endif
Name: python-apipkg%{psuffix}
-Version: 2.1.0
+Version: 3.0.1
Release: 0
Summary: Namespace control and lazy-import mechanism
License: MIT
@@ -34,10 +33,14 @@
URL: https://github.com/pytest-dev/apipkg/
Source: https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-%{version}.tar.gz
%if %{with test}
+BuildRequires: %{python_module apipkg = %{version}}
BuildRequires: %{python_module pytest}
%endif
+BuildRequires: %{python_module hatchling}
+BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -55,32 +58,38 @@
%prep
%autosetup -p1 -n apipkg-%{version}
-# Fix Python 2 install error on old setuptools in Leap
-# https://github.com/pypa/setuptools/issues/1136
-sed -i '/use_scm_version/ a \ package_dir={"": "src"},' setup.py
+# Set the package version static, not dynamic, to build without the .git folder
+sed -i ':a;N;$!ba;s/dynamic = \[[^]]*\]/version = "%{version}"/g' pyproject.toml
+# Remove hatch-vcs dep to avoid cycles
+rm .gitignore
+sed -i '/tool.hatch.build.hooks.vcs/d' pyproject.toml
+cat << EOF > src/apipkg/_version.py
+version = "%{version}"
+version_tuple = tuple(map(int, version.split(".")))
+EOF
%build
-%python_build
+%pyproject_wheel
%install
%if ! %{with test}
-%python_install
+%pyproject_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
-PYTHONPATH=$(pwd)/src
-%pytest
+# Do not test distribution version, it's broken because pytest doesn't require
+# python-py anymore
+%pytest -k 'not test_get_distribution_version'
%endif
%if ! %{with test}
%files %{python_files}
%license LICENSE
-%doc README.rst CHANGELOG
-%dir %{python_sitelib}/apipkg
-%{python_sitelib}/apipkg/*
-%{python_sitelib}/apipkg-%{version}-py%{python_version}.egg-info
+%doc README.rst
+%{python_sitelib}/apipkg
+%{python_sitelib}/apipkg-%{version}*-info
%endif
%changelog
++++++ apipkg-2.1.0.tar.gz -> apipkg-3.0.1.tar.gz ++++++
++++ 1606 lines of diff (skipped)