14
0

Accepting request 873026 from home:alarrosa:branches:devel:languages:python

- On SLE/Leap, set the egg version on %prep to the package version
  since it's not being set automatically.

OBS-URL: https://build.opensuse.org/request/show/873026
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-keyring?expand=0&rev=88
This commit is contained in:
2021-02-17 14:20:16 +00:00
committed by Git OBS Bridge
parent 61c07da8d6
commit 0bbe6cf4b1
2 changed files with 11 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-keyring
#
# 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
@@ -53,6 +53,10 @@ from python. It can be used in any application that needs safe password storage.
%prep
%setup -q -n keyring-%{version}
%patch -p1
%if 0%{?sle_version}
# keyring is not setting the egg version correctly without this:
sed -i -e '1a version=%{version}' setup.cfg
%endif
# For rpmlint warning: remove shebang from python library:
sed -i '/^#!/d' keyring/cli.py
sed -i -e 's,--flake8,,' -e 's,--black,,' -e 's,--cov,,' pytest.ini