Пакет python3-module-keyring: Specfile

%define oname keyring

%def_with check

Name: python3-module-%oname
Version: 25.2.0
Release: alt1

Summary: Keyring provides an easy way to access the system keyring service

License: MIT
Group: Development/Python3
URL: https://pypi.org/project/keyring
VCS: https://github.com/jaraco/keyring

Source: %name-%version.tar

BuildArch: noarch

BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-setuptools_scm
BuildRequires: python3-module-wheel
BuildRequires: python3-module-toml

%if_with check
BuildRequires: python3-module-importlib-metadata
BuildRequires: python3-module-secretstorage
BuildRequires: python3-module-jaraco.classes
BuildRequires: python3-module-jaraco.functools
BuildRequires: python3-module-jaraco.context
%endif

# ALT#46056
Requires: python3-module-importlib_metadata

%description
The Python keyring lib provides an easy way to access the system
keyring service from python. It can be used in any application
that needs safe password storage.

%prep
%setup

# Drop redundant shebang
sed -i '1{\@^#!/usr/bin/env python@d}' keyring/cli.py

# Don't use SETUPTOOLS_SCM_PRETEND_VERSION.
# See: https://bugzilla.altlinux.org/46305
if [ ! -d .git ]; then
    git init
    git config user.email author@example.com
    git config user.name author
    git add .
    git commit -m 'release'
    git tag '%version'
fi

%build
%pyproject_build

%install
%pyproject_install

%check
%tox_check_pyproject

%files
%doc *.rst LICENSE
%_bindir/%oname
%python3_sitelibdir/%oname
%python3_sitelibdir/%{pyproject_distinfo %oname}

%changelog
* Tue Apr 30 2024 Grigory Ustinov <grenka@altlinux.org> 25.2.0-alt1
- Automatically updated to 25.2.0.

* Wed Apr 03 2024 Grigory Ustinov <grenka@altlinux.org> 25.1.0-alt1
- Automatically updated to 25.1.0.

* Mon Mar 25 2024 Grigory Ustinov <grenka@altlinux.org> 25.0.0-alt1
- Automatically updated to 25.0.0.

* Fri Mar 01 2024 Grigory Ustinov <grenka@altlinux.org> 24.3.1-alt1
- Automatically updated to 24.3.1.

* Thu Dec 28 2023 Grigory Ustinov <grenka@altlinux.org> 24.3.0-alt1
- Automatically updated to 24.3.0.

* Mon Jul 24 2023 Grigory Ustinov <grenka@altlinux.org> 24.2.0-alt1
- Automatically updated to 24.2.0.

* Tue Jun 27 2023 Michael Shigorin <mike@altlinux.org> 23.14.0-alt3.1
- fix build --without check (thx grenka@ again)

* Tue May 30 2023 Anton Zhukharev <ancieg@altlinux.org> 23.14.0-alt3
- Don't use SETUPTOOLS_SCM_PRETEND_VERSION (Closes: #46305).

* Fri May 05 2023 Grigory Ustinov <grenka@altlinux.org> 23.14.0-alt2
- Add runtime dependency on importlib_metadata (Closes: #45056).

* Sun Feb 26 2023 Grigory Ustinov <grenka@altlinux.org> 23.14.0-alt1
- Build new version (Closes: #45387).

* Thu Sep 23 2021 Michael Shigorin <mike@altlinux.org> 21.8.0-alt2
- fix build --without check (no pytest => no toml then)
- minor spec cleanup

* Sat Sep 11 2021 Anton Midyukov <antohami@altlinux.org> 21.8.0-alt1
- new version (21.8.0) with rpmgs script
- drop subpackage tests

* Sat Jul 24 2021 Grigory Ustinov <grenka@altlinux.org> 12.0.0-alt6
- Fixed BuildRequires.

* Thu Jul 15 2021 Grigory Ustinov <grenka@altlinux.org> 12.0.0-alt5
- Drop python2 support.

* Thu Oct 15 2020 Stanislav Levin <slev@altlinux.org> 12.0.0-alt4
- Made dependency on Pytest and its plugins optional.

* Thu Dec 13 2018 Evgeniy Korneechev <ekorneechev@altlinux.org> 12.0.0-alt3
- Updated deps for Python2.7

* Thu Dec 06 2018 Evgeniy Korneechev <ekorneechev@altlinux.org> 12.0.0-alt2
- Updated deps (ALT #35655)

* Mon Apr 02 2018 Andrey Bychkov <mrdrew@altlinux.org> 12.0.0-alt1
- Updated version to 12.0.0
  Fixed deps

* Fri Feb 02 2018 Stanislav Levin <slev@altlinux.org> 5.4-alt2.1
- (NMU) Fix Requires and BuildRequires to python-setuptools

* Fri Aug 04 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 5.4-alt2
- Updated build dependencies.

* Fri Jul 14 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 5.4-alt1.2
- Updated build spec

* Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 5.4-alt1.1
- (NMU) rebuild with rpm-build-python3-0.1.9
  (for common python3/site-packages/ and auto python3.3-ABI dep when needed)

* Sun Aug 16 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 5.4-alt1
- Version 5.4

* Wed Feb 25 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 5.2.1-alt1
- Version 5.2.1

* Tue Jul 15 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8-alt2
- Added module for Python 3

* Fri Jul 11 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8-alt1
- Version 3.8

* Fri Nov 29 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.2.1-alt1
- Version 3.2.1

* Tue Sep 17 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.0.3-alt1
- Version 3.0.3

* Wed Apr 03 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.2-alt1
- Initial build for Sisyphus