Accepting request 1005043 from home:mcepl:work

Git credentials helper storing credentials securely in pass(1).

Please, submit to openSUSE:Factory.

OBS-URL: https://build.opensuse.org/request/show/1005043
OBS-URL: https://build.opensuse.org/package/show/security:privacy/python-pass-git-helper?expand=0&rev=1
This commit is contained in:
Dr. Werner Fink 2022-09-26 07:04:14 +00:00 committed by Git OBS Bridge
commit 98874db264
5 changed files with 131 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d9ab12d81e283411a65285a0030cbfef2548dc580631d2337628e57f10e463aa
size 97593

View File

@ -0,0 +1,26 @@
-------------------------------------------------------------------
Sat May 28 23:12:19 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Update to 1.2.0:
- support Python 3.10 (292d9fc)
- don't leak Python exceptions to the user (4415d7e), closes
#38
- Adds an encoding configuration per pass entry (fixes #27 +
#29) and includes some code cleanup (#30).
- Adds support for the ${username} replacement in the
configuration file. For details, refer to #11. Thanks to
@somasis for the feature.
- This version adds more flexibility for selecting the username
from an entry. Different strategies have been implemented to
realize different needs such as searching for a line matching
a given regular expression. The readme file explains the
configuration in detail.
- The host of a request can now be used as a variable to
construct a the entry of the password store. This allows
wildcard entries dispatching to any number of file system
entries in the password store.
-------------------------------------------------------------------
Sat May 28 22:58:55 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Initial packaging effort for pass-git-helper 0.3.0.

View File

@ -0,0 +1,78 @@
#
# spec file for package python-pass-git-helper
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define modname pass-git-helper
Name: python-pass-git-helper
Version: 1.2.0
Release: 0
Summary: A git credential helper interfacing with pass
License: LGPL-3.0+
URL: https://github.com/languitar/pass-git-helper
Source: https://github.com/languitar/%{modname}/archive/refs/tags/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module base}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module dataclasses >= 0.7 if %python-base < 3.7}
# SECTION test requirements
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pyxdg}
# /SECTION
BuildRequires: fdupes
Requires: python-pyxdg
BuildArch: noarch
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
A git credential helper interfacing with pass, the standard unix password manager.
%prep
%autosetup -p1 -n pass-git-helper-%{version}
sed -i -e '/--cov-config=setup.cfg/d' setup.cfg
sed -i -e '1{\@^#!%{_bindir}/env python@d}' passgithelper.py
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/pass-git-helper
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative pass-git-helper
%postun
%python_uninstall_alternative pass-git-helper
%files %{python_files}
%doc README.md
%python_alternative %{_bindir}/pass-git-helper
%pycache_only %{python_sitelib}/__pycache__/passgithelper*.pyc
%{python_sitelib}/pass_git_helper-%{version}*-info
%{python_sitelib}/passgithelper.py
%changelog