14
0
Files
python-Protego/python-Protego.spec
Markéta Machová 25e32e6cb8 Accepting request 1290241 from home:glaubitz:branches:devel:languages:python
- Update to 0.5.0
  * Restructured the code, splitting the single ``protego.py`` file
    into multiple modules. The public API remains the same but some
    internal names may now be available at different import paths.
  * Added type hints and ``py.typed``.
  * Added official support for PyPy 3.11.
  * Switched the build backend from ``setuptools`` to ``hatchling``.
  * Switched from ``setup.py`` to ``pyproject.toml``.
  * CI fixes and improvements.
- Update BuildRequires from pyproject.toml
- Update filenames of Python files matched in %files section
- Use Python 3.11 on SLE-15 by default

OBS-URL: https://build.opensuse.org/request/show/1290241
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Protego?expand=0&rev=17
2025-07-03 14:28:42 +00:00

59 lines
1.7 KiB
RPMSpec

#
# spec file for package python-Protego
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-Protego
Version: 0.5.0
Release: 0
Summary: Pure-Python robotstxt parser with support for modern conventions
License: BSD-3-Clause
URL: https://github.com/scrapy/protego
Source: https://files.pythonhosted.org/packages/source/P/Protego/protego-%{version}.tar.gz
BuildRequires: %{python_module hatchling >= 1.27.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
Protego is a pure-Python `robots.txt` parser with support for modern conventions.
%prep
%setup -q -n protego-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/protego
%{python_sitelib}/[Pp]rotego-%{version}.dist-info
%changelog