#11 Use Fedora-packaged libsecret-mock-service to run the tests
Opened 2 months ago by churchyard. Modified 2 months ago
rpms/ churchyard/python-SecretStorage libsecret-packaged  into  rawhide

file modified
+3 -7
@@ -10,20 +10,17 @@ 

  Release:    %autorelease

  Summary:    Python bindings to FreeDesktop.org Secret Service API

  URL:        https://github.com/mitya57/secretstorage

- Source0:    https://github.com/mitya57/secretstorage/archive/%{commit}/secretstorage-%{shortcommit}.tar.gz

+ Source:     https://github.com/mitya57/secretstorage/archive/%{commit}/secretstorage-%{shortcommit}.tar.gz

  License:    BSD-3-Clause

  BuildArch:  noarch

  

- # Use the latest libsecret from upstream to run the tests as

- # built libsecret does not ship those Python files, TODO make it so

- Source1:    http://download.gnome.org/sources/libsecret/0.21/libsecret-0.21.4.tar.xz

- 

  BuildRequires:  python3-devel

  

  # Test dependencies

  %if %{with tests}

  BuildRequires:  /usr/bin/dbus-launch

  BuildRequires:  /usr/bin/xvfb-run

+ BuildRequires:  libsecret-mock-service

  BuildRequires:  python3-dbus

  BuildRequires:  python3-gobject-base

  %endif
@@ -79,7 +76,6 @@ 

  

  %prep

  %autosetup -n secretstorage-%{commit}

- tar xf %{SOURCE1}

  

  %build

  %pyproject_wheel
@@ -101,7 +97,7 @@ 

  %pyproject_check_import

  %if %{with tests}

  export %{py3_test_envvars}

- for MOCK in libsecret-0.21.4/libsecret/mock-service-{normal,only-plain,lock}.py; do

+ for MOCK in /usr/share/libsecret/mock-service-{normal,only-plain,lock}.py; do

    xvfb-run -a dbus-launch --exit-with-session %{python3} tests/run_tests.py ${MOCK}

  done

  %endif

file modified
-1
@@ -1,2 +1,1 @@ 

- SHA512 (libsecret-0.21.4.tar.xz) = 4731d9b2809a867f59e0702a55d1577ee0a968826c3df40717b1a6f6ea3f9d94ed95457dd82070d2914f5b1911d49fd6ae340bec6f4bcf88b6c804782ae7a24e

  SHA512 (secretstorage-3e5097c.tar.gz) = 975fd7e6138a68d53bfce53ffc1d18eabac82b77efb9fe58c604f4999bc9c72ca080458da69250961b6896608fa52d7d340dca254708bacfb2aab004b08628c9

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/295970b4ec5c4ec09b2bd7ba3f091fbc

Are those files indeed packaged in the tarball?

https://gitlab.gnome.org/GNOME/libsecret/-/issues/83

I assume then that the pypi tarball doesn't contain them.

Those files are packaged in the Fedora package, downstream only.

Metadata