Accepting request 1153209 from home:dimstar:Factory
This might make sense here? python cli/lib to create swiss QR Bills OBS-URL: https://build.opensuse.org/request/show/1153209 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-qrbill?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
4
python-qrbill.changes
Normal file
4
python-qrbill.changes
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Feb 24 15:38:09 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Initial package, version 1.1.0.
|
77
python-qrbill.spec
Normal file
77
python-qrbill.spec
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-qrbill
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: python-qrbill
|
||||||
|
Version: 1.1.0
|
||||||
|
Release: 0
|
||||||
|
Summary: A library to generate Swiss QR-bill payment slips
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/claudep/swiss-qr-bill/
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/q/qrbill/qrbill-%{version}.tar.gz
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
# SECTION test requirements
|
||||||
|
BuildRequires: %{python_module iso3166}
|
||||||
|
BuildRequires: %{python_module python-stdnum >= 1.13}
|
||||||
|
BuildRequires: %{python_module qrcode}
|
||||||
|
BuildRequires: %{python_module svgwrite}
|
||||||
|
# /SECTION
|
||||||
|
BuildRequires: fdupes
|
||||||
|
Requires: python-iso3166
|
||||||
|
Requires: python-python-stdnum >= 1.13
|
||||||
|
Requires: python-qrcode
|
||||||
|
Requires: python-svgwrite
|
||||||
|
BuildArch: noarch
|
||||||
|
Requires(pre): update-alternatives
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
A library to generate Swiss QR-bill payment slips
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n qrbill-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/qrbill
|
||||||
|
%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%python_expand PYTHONPATH=%{buildroot}/%{$python_sitelib} $python tests/test_qrbill.py
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative qrbill
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative qrbill
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%doc CHANGELOG.rst README.rst
|
||||||
|
%license LICENSE.TXT
|
||||||
|
%python_alternative %{_bindir}/qrbill
|
||||||
|
%{python_sitelib}/qrbill
|
||||||
|
%{python_sitelib}/qrbill-%{version}.dist-info
|
||||||
|
|
||||||
|
%changelog
|
3
qrbill-1.1.0.tar.gz
Normal file
3
qrbill-1.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ea2b09f48c1f1f8144358a67b1e5c60d91a7f7c50f5446005fd2d34e6c1a48ce
|
||||||
|
size 23036
|
Reference in New Issue
Block a user