15
0

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-akismet?expand=0&rev=12
This commit is contained in:
2025-05-15 09:17:49 +00:00
committed by Git OBS Bridge
commit 2364c89c19
5 changed files with 148 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

3
akismet-1.2.1.tar.gz Normal file
View File

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

58
python-akismet.changes Normal file
View File

@@ -0,0 +1,58 @@
-------------------------------------------------------------------
Tue May 13 07:58:01 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Thu Aug 4 08:32:22 UTC 2022 - Otto Hollmann <otto.hollmann@suse.com>
- Update to 1.2.1:
* Add support for python 3.10
* Drop python 3.6
-------------------------------------------------------------------
Mon Dec 6 22:55:52 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Separate package mock is actually not needed.
-------------------------------------------------------------------
Fri Apr 17 11:08:49 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- Update to 1.1
* akismet 1.1 and later do not support Python 2
* support for recheck_reason, used when a comment or other content
is being submitted a second or later time, and indicating the reason
-------------------------------------------------------------------
Thu Nov 7 16:13:32 UTC 2019 - Matej Cepl <mcepl@suse.com>
- Run through spec-cleaner
-------------------------------------------------------------------
Thu Aug 2 08:52:21 UTC 2018 - tchvatal@suse.com
- Remove not required dependency on devel
-------------------------------------------------------------------
Wed Oct 25 07:58:30 UTC 2017 - buschmann23@opensuse.org
- update to version 1.0.1
+ no changelog available
- update to version 1.0.0
+ no changelog available
- spec file changes
+ update url
+ update source link
+ convert to python single spec
-------------------------------------------------------------------
Sat Mar 26 00:53:50 UTC 2011 - alexandre@exatati.com.br
- Regenerate spec file with py2pack;
- Bzip2 source file;
- Add README.txt as documentation.
-------------------------------------------------------------------
Thu Apr 29 03:02:22 UTC 2010 - alexandre@exatati.com.br
- Initial package (0.2.0) for openSUSE.

63
python-akismet.spec Normal file
View File

@@ -0,0 +1,63 @@
#
# spec file for package python-akismet
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2017 Matthias Fehring <buschmann23@opensuse.org>
#
# 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 mod_name akismet
Name: python-%{mod_name}
Version: 1.2.1
Release: 0
Summary: Interface to the Akismet Anti Comment-Spam API
License: BSD-3-Clause
URL: https://github.com/ubernostrum/akismet
Source0: https://files.pythonhosted.org/packages/source/a/%{mod_name}/%{mod_name}-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-requests
BuildArch: noarch
%python_subpackages
%description
A Python interface to the Akismet anti comment-spam API.
%prep
%setup -q -n %{mod_name}-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# Can't run the tests as they need working server API
#%%pytest
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/akismet.py
%{python_sitelib}/akismet-%{version}*-info
%pycache_only %{python_sitelib}/__pycache__/akismet*
%changelog