Accepting request 441401 from home:frispete:python
- add test section OBS-URL: https://build.opensuse.org/request/show/441401 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SecretStorage?expand=0&rev=8
This commit is contained in:
parent
4dbbcb383f
commit
860a787f43
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 22 12:37:40 UTC 2016 - hpj@urpla.net
|
||||
|
||||
- add test section
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 1 05:28:50 UTC 2016 - tbechtold@suse.com
|
||||
|
||||
|
@ -26,11 +26,15 @@ Url: https://github.com/mitya57/secretstorage
|
||||
# NOTE(toabctl): For whatever reason, the pypi.io url is not working...
|
||||
#Source: https://pypi.io/packages/source/s/SecretStorage/SecretStorage-%{version}.tar.gz
|
||||
Source: https://pypi.python.org/packages/a5/a5/0830cfe34a4cfd0d1c3c8b614ede1edb2aaf999091ac8548dd19cb352e79/SecretStorage-2.3.1.tar.gz
|
||||
BuildRequires: python-cryptography
|
||||
BuildRequires: dbus-1-python
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
Requires: dbus-1-python
|
||||
BuildRequires: python-cryptography
|
||||
Requires: python-cryptography
|
||||
# Testing requirements
|
||||
BuildRequires: dbus-1-x11
|
||||
BuildRequires: gnome-keyring
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
@ -66,6 +70,11 @@ python setup.py build
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%check
|
||||
# gnome-keyring "forgets" to create this directory under certain conditions
|
||||
mkdir $HOME/.cache
|
||||
dbus-run-session -- python -m unittest discover -s tests
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc changelog README.rst LICENSE
|
||||
|
Loading…
Reference in New Issue
Block a user