From 860a787f43761ab9d42d87ac3fd47e238b536293e185bb6215f8bb493c49da8b Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 29 Nov 2016 08:37:03 +0000 Subject: [PATCH] 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 --- python-SecretStorage.changes | 5 +++++ python-SecretStorage.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/python-SecretStorage.changes b/python-SecretStorage.changes index 31116a4..73e9dab 100644 --- a/python-SecretStorage.changes +++ b/python-SecretStorage.changes @@ -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 diff --git a/python-SecretStorage.spec b/python-SecretStorage.spec index d9ca348..39cc253 100644 --- a/python-SecretStorage.spec +++ b/python-SecretStorage.spec @@ -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