HI! Is there currently something going on in OBS which makes Python packages fail in %check with strange import errors? Ciao, Michael.
Am 25.12.21 um 16:53 schrieb Michael Ströder:
HI!
Is there currently something going on in OBS which makes Python packages fail in %check with strange import errors?
Ciao, Michael.
Nothing out of the usual. Any specific error message or link where it fails for you? devel:languages:python looks quite sane to me. Three days ago, sr#941699 was accepted into openSUSE:Factory/standard where python-pytest got two patches backported from upstream for python310 compatibility. I guess it is now also in the latest snapshot. But it should do no harm to the existing flavors. - Ben
On 12/25/21 17:15, Ben Greiner wrote:
Am 25.12.21 um 16:53 schrieb Michael Ströder:
Is there currently something going on in OBS which makes Python packages fail in %check with strange import errors?
Nothing out of the usual. Any specific error message or link where it fails for you? devel:languages:python looks quite sane to me.
Three days ago, sr#941699 was accepted into openSUSE:Factory/standard where python-pytest got two patches backported from upstream for python310 compatibility. I guess it is now also in the latest snapshot. But it should do no harm to the existing flavors.
Ben, thanks for your quick answer. It seems I had a regression in a new release with a cyclic import which was not found by running tests with tox. So I reverted everything to the prior upstream release. Anyway for Leap 15.3 and 15.4 I now get error message: error: line 53: Unknown tag: %python_subpackages The full build log: https://build.opensuse.org/package/live_build_log/home:stroeder:iam/python-l... This worked before whatever happened since 11-Dec-2021 11:06. Ciao, Michael.
Am 25.12.21 um 18:36 schrieb Michael Ströder:
Anyway for Leap 15.3 and 15.4 I now get error message:
error: line 53: Unknown tag: %python_subpackages
The full build log:
https://build.opensuse.org/package/live_build_log/home:stroeder:iam/python-l...
This worked before whatever happened since 11-Dec-2021 11:06.
This is a case similar to https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/H.... You should explicitly specify `BuildRequires: python-rpm-macros`, since you are using a macro from it. Regards, Ben
Am Samstag, 25. Dezember 2021, 19:47:05 CET schrieb Ben Greiner:
This is a case similar to https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/H V2RZMMNL6EPIBRAS7QCMEDWF7K7DO5G/. You should explicitly specify `BuildRequires: python-rpm-macros`, since you are using a macro from it.
Why is this only needed for Leap 15.3, not other Leaps nor TW? It probably makes more sense to add this to the general setup for Leap 15.3, instead of fixing some hundered (or even more) packages that fail to build for this reason... Cheers Axel
Hi On 1/2/22 22:00, Axel Braun wrote:
Am Samstag, 25. Dezember 2021, 19:47:05 CET schrieb Ben Greiner:
This is a case similar to https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/H V2RZMMNL6EPIBRAS7QCMEDWF7K7DO5G/. You should explicitly specify `BuildRequires: python-rpm-macros`, since you are using a macro from it.
Why is this only needed for Leap 15.3, not other Leaps nor TW? It probably makes more sense to add this to the general setup for Leap 15.3, instead of fixing some hundered (or even more) packages that fail to build for this reason...
Previously the python package pulled this in as a dependency, however that has been changed as some people have been working to reduce the dependencies in core packages to the absolute minimum necessary in order to make container based systems as efficient as possible. As a side note this will also slightly speed up the build of every package in obs which ends up requiring python for building (pretty much everything) and doesn't use any python macros which is a significant percentage of packages built in obs. Cheers -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B
participants (4)
-
Axel Braun
-
Ben Greiner
-
Michael Ströder
-
Simon Lees