commit 98874db264cc1deeaa37be94198df47bdfeff1cc52315352ef62a5e5d0bbea59 Author: Dr. Werner Fink Date: Mon Sep 26 07:04:14 2022 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pass-git-helper-1.2.0.tar.gz b/pass-git-helper-1.2.0.tar.gz new file mode 100644 index 0000000..b24e727 --- /dev/null +++ b/pass-git-helper-1.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d9ab12d81e283411a65285a0030cbfef2548dc580631d2337628e57f10e463aa +size 97593 diff --git a/python-pass-git-helper.changes b/python-pass-git-helper.changes new file mode 100644 index 0000000..f6eaaea --- /dev/null +++ b/python-pass-git-helper.changes @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +Sat May 28 23:12:19 UTC 2022 - Matej Cepl + +- 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 + +- Initial packaging effort for pass-git-helper 0.3.0. diff --git a/python-pass-git-helper.spec b/python-pass-git-helper.spec new file mode 100644 index 0000000..052779c --- /dev/null +++ b/python-pass-git-helper.spec @@ -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