From 0fd6679f6f25628b601a442fc125671b624df44a4912f8d32fded0eba1d67879 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 8 Jan 2025 00:11:39 +0000 Subject: [PATCH] Accepting request 1235712 from home:mcalabkova:branches:devel:languages:python needed by weblate OBS-URL: https://build.opensuse.org/request/show/1235712 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-altcha?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++++ .gitignore | 1 + altcha-0.1.7.tar.gz | 3 +++ python-altcha.changes | 4 ++++ python-altcha.spec | 54 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 85 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 altcha-0.1.7.tar.gz create mode 100644 python-altcha.changes create mode 100644 python-altcha.spec 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/altcha-0.1.7.tar.gz b/altcha-0.1.7.tar.gz new file mode 100644 index 0000000..dc5f49c --- /dev/null +++ b/altcha-0.1.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca5e19cf3bb37d060c9943961582731333956ab61db3f17fa0ecfb7878ba3d4e +size 8671 diff --git a/python-altcha.changes b/python-altcha.changes new file mode 100644 index 0000000..23f5708 --- /dev/null +++ b/python-altcha.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Jan 7 16:09:16 UTC 2025 - Markéta Machová + +- Initial packaging (v0.1.7), needed by weblate diff --git a/python-altcha.spec b/python-altcha.spec new file mode 100644 index 0000000..760ea08 --- /dev/null +++ b/python-altcha.spec @@ -0,0 +1,54 @@ +# +# spec file for package python-altcha +# +# Copyright (c) 2025 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-altcha +Version: 0.1.7 +Release: 0 +Summary: A library for creating and verifying challenges for ALTCHA +License: MIT +URL: https://github.com/altcha-org/altcha-lib-py +Source: https://files.pythonhosted.org/packages/source/a/altcha/altcha-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildArch: noarch +%python_subpackages + +%description +The ALTCHA Python Library is a lightweight, zero-dependency library designed for creating and verifying +[ALTCHA](https://altcha.org) challenges, specifically tailored for Python applications. + +%prep +%autosetup -p1 -n altcha-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pyunittest -v tests/test_altcha.py + +%files %{python_files} +%{python_sitelib}/altcha +%{python_sitelib}/altcha-%{version}.dist-info + +%changelog