forked from pool/python-pydenticon
- Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydenticon?expand=0&rev=18
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
|
3
pydenticon-0.3.1.tar.gz
Normal file
3
pydenticon-0.3.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2ef363cdd6f4f0193ce62257486027e36884570f6140bbde51de72df321b77f1
|
||||||
|
size 26181
|
47
python-pydenticon.changes
Normal file
47
python-pydenticon.changes
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 4 10:11:28 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to pip-based build
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jun 11 15:34:10 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
- Add %{?sle15_python_module_pythons}
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 6 12:38:28 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- do not require python-mock for build
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 28 06:53:23 UTC 2021 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- %check: use %pyunittest rpm macro
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 8 10:44:58 UTC 2021 - Oliver Kurz <okurz@suse.com>
|
||||||
|
|
||||||
|
- Fixed no longer supported bare words in build conditions
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jun 8 11:28:18 UTC 2019 - Oliver Kurz <okurz@suse.com>
|
||||||
|
|
||||||
|
- Disable tests on big endian arch due to https://github.com/azaghal/pydenticon/issues/10
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 20 15:32:34 UTC 2019 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- version update to 0.3.1
|
||||||
|
* Minor bug-fixes.
|
||||||
|
- run tests
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jun 18 19:44:24 UTC 2017 - okurz@suse.com
|
||||||
|
|
||||||
|
- Convert to singlespec
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 27 13:49:57 UTC 2017 - okurz@suse.com
|
||||||
|
|
||||||
|
- Initial submission
|
||||||
|
|
88
python-pydenticon.spec
Normal file
88
python-pydenticon.spec
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-pydenticon
|
||||||
|
#
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define modname pydenticon
|
||||||
|
# tests on big endian systems fail due to https://github.com/azaghal/pydenticon/issues/10 , disabled until fixed"
|
||||||
|
# can not use "ifarch" when BuildArch is set to noarch
|
||||||
|
%if "%{_arch}" == "s390x" || "%{_arch}" == "s390x" || "%{_arch}" == "ppc" || "%{_arch}" == "ppc64"
|
||||||
|
%bcond_with test
|
||||||
|
%else
|
||||||
|
%bcond_without test
|
||||||
|
%endif
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
|
Name: python-%{modname}
|
||||||
|
Version: 0.3.1
|
||||||
|
Release: 0
|
||||||
|
Summary: Library for generating identicons
|
||||||
|
License: BSD-3-Clause
|
||||||
|
Group: Development/Languages/Python
|
||||||
|
URL: https://github.com/azaghal/%{modname}
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/p/pydenticon/%{modname}-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module Pillow}
|
||||||
|
BuildRequires: %{python_module base}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-Pillow
|
||||||
|
BuildArch: noarch
|
||||||
|
# SECTION test requirements
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
# /SECTION
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
Pydenticon is a small utility library that can be used for deterministically
|
||||||
|
generating identicons based on the hash of provided data.
|
||||||
|
|
||||||
|
The implementation is a port of the Sigil identicon implementation from:
|
||||||
|
|
||||||
|
* https://github.com/cupcake/sigil/
|
||||||
|
|
||||||
|
Pydenticon provides a couple of extensions of its own when compared to the
|
||||||
|
original Sigil implementation, like:
|
||||||
|
|
||||||
|
* Ability to supply custom digest algorithms (allowing for larger identicons if
|
||||||
|
digest provides enough entropy).
|
||||||
|
* Ability to specify a rectangle for identicon size..
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{modname}-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/%{modname}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%if %{with test}
|
||||||
|
# https://github.com/azaghal/pydenticon/issues/11
|
||||||
|
sed -i 's:^import mock:from unittest import mock:' tests/test_pydenticon.py
|
||||||
|
%pyunittest discover -v
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
|
%{python_sitelib}/pydenticon
|
||||||
|
%{python_sitelib}/pydenticon-%{version}*-info
|
||||||
|
|
||||||
|
%changelog
|
Reference in New Issue
Block a user