Group :: Development/Python3
RPM: python3-module-keyring
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define oname keyring
%def_with check
Name: python3-module-%oname
Version: 24.2.0
Release: alt1
Summary: Keyring provides an easy way to access the system keyring service
License: MIT
Group: Development/Python3
Url: https://pypi.python.org/pypi/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
%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{\ at ^#!/usr/bin/env python at 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 at 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
…
Full changelog you can see here
%def_with check
Name: python3-module-%oname
Version: 24.2.0
Release: alt1
Summary: Keyring provides an easy way to access the system keyring service
License: MIT
Group: Development/Python3
Url: https://pypi.python.org/pypi/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
%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{\ at ^#!/usr/bin/env python at 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 at 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
…
Full changelog you can see here