%bcond_without tests # The xvfb tests sometimes hang in koji. %bcond_with xvfb_tests Name: python-keyring Version: 23.9.1 Release: 1%{?dist} Summary: Store and access your passwords safely License: MIT and Python URL: https://github.com/jaraco/keyring Source0: %{pypi_source keyring} BuildArch: noarch BuildRequires: python3-devel %if %{with tests} # The “testing” extra mostly brings in linters and similar, which we would have # to patch out. Instead, we BR pytest manually. See: # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters BuildRequires: python3dist(pytest) %if %{with xvfb_tests} # Run graphical tests in non-graphical build environment. BuildRequires: xorg-x11-server-Xvfb # Enable libsecret backend BuildRequires: python3-gobject BuildRequires: libsecret BuildRequires: gnome-keyring BuildRequires: /usr/bin/dbus-launch %endif %endif %global desc %{expand: The Python keyring library provides an easy way to access the system keyring service from python. It can be used in any application that needs safe password storage. These recommended keyring backends are supported: • macOS Keychain • Freedesktop Secret Service supports many DE including GNOME (requires secretstorage) • KDE4 & KDE5 KWallet (requires dbus) • Windows Credential Locker Other keyring implementations are available through third-party backends.} %description %desc %package -n python3-keyring Summary: Python 3 library to access the system keyring service %description -n python3-keyring %desc %prep %setup -q -n keyring-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files keyring # For compatibility with historical versions of this package, when there were # both python2 and python3 packages: ln -s keyring %{buildroot}%{_bindir}/keyring-python3 %check %if %{with tests} # If we don’t do this, then test_entry_point fails because it finds two # EntryPoint instances. # See upstream issue: https://github.com/jaraco/keyring/issues/526 rm -vrf *.egg-info *.dist-info %if %{with xvfb_tests} %global __pytest /usr/bin/xvfb-run -a /usr/bin/pytest %endif %pytest %endif %files -n python3-keyring -f %{pyproject_files} # pyproject_files handles LICENSE; verify with “rpm -qL -p …” %doc CHANGES.rst README.rst %{_bindir}/keyring-python3 %{_bindir}/keyring %changelog * Mon Sep 05 2022 Benjamin A. Beasley - 23.9.1-1 - Update to 23.9.1 (close RHBZ#2123348) * Fri Aug 12 2022 Benjamin A. Beasley - 23.8.2-1 - Update to 23.8.2 (close RHBZ#2107061) * Fri Jul 22 2022 Fedora Release Engineering - 23.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 23.6.0-2 - Rebuilt for Python 3.11 * Tue May 24 2022 Benjamin A. Beasley - 23.5.1-1 - Update to 23.5.1 (close RHBZ#2089081) * Wed Apr 06 2022 Benjamin A. Beasley - 23.5.0-3 - Switch to pyproject-rpm-macros * Wed Apr 06 2022 Benjamin A. Beasley - 23.5.0-2 - Fix rather than skipping test_entry_point * Thu Mar 24 2022 Benjamin A. Beasley - 23.5.0-1 - Update to 23.5.0 (close RHBZ#1920125) - Drop EPEL8 compatibility in the Fedora spec file: this upstream release requires setuptools features not available in EPEL8 - Allow using xvfb to run the tests for the libsecret backend; disable by default because tests occasionally hang in koji when doing so * Tue Mar 22 2022 Benjamin A. Beasley - 21.8.0-6 - Drop workarounds for EPEL7 and for EOL Fedoras - Update description text from upstream - Stop using deprecated nose package for tests * Fri Jan 21 2022 Fedora Release Engineering - 21.8.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 21.8.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 21.8.0-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 21.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jan 13 2021 Joel Capitao - 21.8.0-1 - Update to 21.8.0 (rhbz#1910110) * Mon Nov 09 2020 Joel Capitao - 21.5.0-1 - Update to 21.5.0 (rhbz#1873845) * Mon Aug 24 2020 Christopher Tubbs - 21.3.1-1 - new version 21.3.1 (rhbz#1871352) * Wed Aug 12 2020 Merlin Mathesius - 21.3.0-2 - Drop manual (Build)Requires on python3-importlib-metadata for RHEL9+ and ELN. * Mon Aug 03 2020 Christopher Tubbs - 21.3.0-1 - new version 21.3.0 (rhbz#1810846) * Wed Jul 29 2020 Fedora Release Engineering - 21.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 21.2.0-2 - Rebuilt for Python 3.9 * Fri Apr 17 2020 Christopher Tubbs - 21.2.0-1 - new version (rhbz#1810846) * Tue Feb 11 2020 Christopher Tubbs - 21.1.0-1 - new version 21.1.0 (rhbz#1790114) * Thu Jan 30 2020 Fedora Release Engineering - 21.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jan 10 2020 Christopher Tubbs - 21.0.0-1 - new version 21.0.0 (rhbz#1782317) * Wed Dec 04 2019 Fabio Valentini - 19.3.0-2 - Drop manual (Build)Requires on python3-importlib-metadata in rawhide/f32. * Tue Dec 03 2019 Christopher Tubbs - 19.3.0-1 - new version 19.3.0 (rhbz#1778416) * Fri Sep 20 2019 Christopher Tubbs - 19.2.0-1 - new version 19.2.0 (rhbz#1751298) * Thu Aug 22 2019 Christopher Tubbs - 19.1.0-1 - new version 19.1.0 (rhbz#1744382) * Mon Aug 19 2019 Miro Hrončok - 19.0.2-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 19.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue May 21 2019 Christopher Tubbs - 19.0.2-1 - new version 19.0.2 (rhbz#1711472) * Thu May 09 2019 Orion Poplawski - 19.0.1-2 - Drop BR on pytest-cache * Thu Mar 28 2019 Christopher Tubbs - 19.0.1-1 - Update to 19.0.1 (rhbz#1691871) * Fri Feb 08 2019 Yatin Karel - 17.1.1-1 - Update to 17.1.1 * Sat Feb 02 2019 Fedora Release Engineering - 15.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Dec 11 2018 David King - 15.2.0-1 - Update to 15.2.0 * Thu Oct 18 2018 Miro Hrončok - 13.2.1-4 - Remove python2 subpackage from Fedora 30+ * Sat Jul 14 2018 Fedora Release Engineering - 13.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Jul 07 2018 Miro Hrončok - 13.2.1-2 - Add missing dependency on entrypoints (#1598998) * Fri Jul 06 2018 Christopher Tubbs - 13.2.1-1 - Update to 13.2.1 * Thu Jul 05 2018 Christopher Tubbs - 13.2.0-1 - Update to 13.2.0 * Mon Jun 18 2018 Miro Hrončok - 11.0.0-4 - Rebuilt for Python 3.7 * Fri Mar 09 2018 Iryna Shcherbina - 11.0.0-3 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Thu Mar 08 2018 Christopher Tubbs - 11.0.0-2 - Remove unused BR pycryptopp (rhbz#1552676) * Mon Mar 5 2018 Haïkel Guémar - 11.0.0-1 - Upstream 11.0.0 (RHBZ#1539962) * Fri Feb 09 2018 Fedora Release Engineering - 10.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Jan 12 2018 Christopher Tubbs - 10.6.0-1 - Update to 10.6.0 (rhbz#1532092) * Thu Dec 21 2017 Christopher Tubbs - 10.5.1-1 - Update to 10.5.1; fix AttributeError with kwallet backend (bz#1526653) * Thu Nov 16 2017 Christopher Tubbs - 10.5.0-1 - Update to 10.5.0; bz#1512519 * Mon Aug 28 2017 Christopher Tubbs - 10.4.0-2 - Use python2-* naming conventions for *Requires * Mon Aug 28 2017 Christopher Tubbs - 10.4.0-1 - Update to python-keyring 10.4.0 (bz#1464676) * Thu Jul 27 2017 Fedora Release Engineering - 10.3.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Apr 11 2017 Christopher Tubbs - 10.3.2-2 - Fix dependency on setuptools_scm for f25 * Mon Apr 10 2017 Christopher Tubbs - 10.3.2-1 - Update to python-keyring 10.3.2 * Sat Feb 11 2017 Fedora Release Engineering - 9.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Dec 22 2016 Miro Hrončok - 9.0-6 - Rebuild for Python 3.6 * Wed Dec 21 2016 Christopher Tubbs - 9.0-5 - Add dependency on python-SecretStorage (bz#1328218,bz#1398710) * Mon Dec 19 2016 Miro Hrončok - 9.0-4 - Rebuild for Python 3.6 * Mon Nov 21 2016 Orion Poplawski - 9.0-3 - Enable python 3 build for EPEL - Ship python2-keyring - Modernize spec * Tue Jul 19 2016 Fedora Release Engineering - 9.0-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Mon May 02 2016 Matthias Runge - 9.0-1 - update to 9.0, resolves rhbz#1271641, rhbz#1195985 * Thu Feb 04 2016 Fedora Release Engineering - 5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Oct 13 2015 Robert Kuska - 5.0-3 - Rebuilt for Python3.5 rebuild * Thu Jun 18 2015 Fedora Release Engineering - 5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Feb 04 2015 Christopher Meng - 5.0-1 - Update to 5.0 - Revise license tag to match upstream. * Sat Aug 02 2014 Christopher Meng - 4.0-1 - Update to 4.0 * Sat Jun 07 2014 Fedora Release Engineering - 3.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 28 2014 Kalev Lember - 3.8-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Tue May 13 2014 Christopher Meng - 3.8-1 - Update to 3.8 * Sat Mar 08 2014 Christopher Meng - 3.6-1 - Update to 3.6 * Thu Feb 13 2014 Christopher Meng - 3.4-1 - Update to 3.4(BZ#1064256) - Ensure the obsolete line works for the old packages really. * Mon Dec 02 2013 Christopher Meng - 3.3-1 - Update to 3.3(BZ#1007354,BZ#872262) - Cleanup dependencies mess(BZ#1030944). - Optimize the %%changelog section of the spec. * Tue Oct 22 2013 Ratnadeep Debnath - 3.1-1 - Bump to version 3.1 * Thu Feb 14 2013 Fedora Release Engineering - 0.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Ratnadeep Debnath 0.7-1 - Python 3 is now supported. All tests now pass under Python 3.2 on Windows and Linux (although Linux backend support is limited). Fixes #28. - Extension modules on Mac and Windows replaced by pure-Python ctypes implementations. Thanks to Jérôme Laheurte. - WinVaultKeyring now supports multiple passwords for the same service. Fixes #47. - Most of the tests don't require user interaction anymore. - Entries stored in Gnome Keyring appears now with a meaningful name if you try to browser your keyring (for ex. with Seahorse) - Tests from Gnome Keyring no longer pollute the user own keyring. - keyring.util.escape now accepts only unicode strings. Don't try to encode strings passed to it. * Tue Nov 08 2011 Ratnadeep Debnath 0.6.2-1 - fix compiling on OSX with XCode 4.0 - Gnome keyring should not be used if there is no DISPLAY or if the dbus is not around (https://bugs.launchpad.net/launchpadlib/+bug/752282). - Added keyring.http for facilitating HTTP Auth using keyring. - Add a utility to access the keyring from the command line. * Mon Jan 10 2011 Ratnadeep Debnath 0.5.1-1 - Remove a spurious KDE debug message when using KWallet - Fix a bug that caused an exception if the user canceled the KWallet dialog * Sun Nov 28 2010 Ratnadeep Debnath 0.5-2 - Removed sub-packages: gnome and kwallet; removed "Requires: PyKDE4 PyQt4" * Mon Nov 22 2010 Ratnadeep Debnath 0.5-1 - RPM for keyring-0.5 * Mon Nov 01 2010 Ratnadeep Debnath 0.4-1 - Updated rpm to python-keyring version 0.4 * Sat Oct 30 2010 Ratnadeep Debnath 0.2-4 - Filtered gnome_keyring.so from the provides list, removed kdelibs-devel * Sat Oct 02 2010 Ratnadeep Debnath 0.2-3 - Updated dependencies to kdelibs4-devel, some cleanup * Tue Aug 24 2010 Ratnadeep Debnath 0.2-2 - Some updates according to bugzilla reviews * Sat Jun 26 2010 Ratnadeep Debnath 0.2-1.3 - Some cleanup * Sat Jun 26 2010 Felix Schwarz 0.2-1.2 - add KWallet subpackage * Mon Jun 21 2010 Felix Schwarz 0.2-1.1 - add build dependencies - create subpackage for gnome, disable KWallet for now - look for files in arch-dependend site-packages * Tue May 25 2010 Ratnadeep Debnath 0.2-1 - Incorporated some changes with reference to http://vcrhonek.fedorapeople.org/python-keyring/python-keyring.spec - Fixed some rpmlint errors * Wed May 19 2010 Ratnadeep Debnath 0.2 - Initial RPM package