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:
parent
61c07da8d6
commit
0bbe6cf4b1
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 16 09:47:10 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>
|
||||||
|
|
||||||
|
- On SLE/Leap, set the egg version on %prep to the package version
|
||||||
|
since it's not being set automatically.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 30 12:35:11 UTC 2020 - Hans-Peter Jansen <hpj@urpla.net>
|
Wed Sep 30 12:35:11 UTC 2020 - Hans-Peter Jansen <hpj@urpla.net>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-keyring
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
%prep
|
||||||
%setup -q -n keyring-%{version}
|
%setup -q -n keyring-%{version}
|
||||||
%patch -p1
|
%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:
|
# For rpmlint warning: remove shebang from python library:
|
||||||
sed -i '/^#!/d' keyring/cli.py
|
sed -i '/^#!/d' keyring/cli.py
|
||||||
sed -i -e 's,--flake8,,' -e 's,--black,,' -e 's,--cov,,' pytest.ini
|
sed -i -e 's,--flake8,,' -e 's,--black,,' -e 's,--cov,,' pytest.ini
|
||||||
|
Loading…
Reference in New Issue
Block a user