0d96672ea9
* drop support for python 3.8 * add support for python 3.13 * prepare for python 3.14 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pure-protobuf?expand=0&rev=11
69 lines
2.1 KiB
RPMSpec
69 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-pure-protobuf
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-pure-protobuf
|
|
Version: 3.1.3
|
|
Release: 0
|
|
Summary: Protocol Buffers using Python type annotations
|
|
License: MIT
|
|
URL: https://github.com/eigenein/protobuf
|
|
Source: https://files.pythonhosted.org/packages/source/p/pure-protobuf/pure_protobuf-%{version}.tar.gz
|
|
Source1: %{name}-tests-%{version}.tar.gz
|
|
Source99: get-tests.sh
|
|
BuildRequires: %{python_module get-annotations}
|
|
BuildRequires: %{python_module hatch_vcs}
|
|
BuildRequires: %{python_module hatchling}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module poetry-core}
|
|
BuildRequires: %{python_module poetry-dynamic-versioning}
|
|
BuildRequires: %{python_module pydantic}
|
|
BuildRequires: %{python_module typing-extensions}
|
|
BuildRequires: fdupes
|
|
BuildRequires: git-core
|
|
BuildRequires: python-rpm-macros
|
|
## needed for tests
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module pytest-benchmark}
|
|
BuildRequires: %{python_module pytest-cov}
|
|
BuildArch: noarch
|
|
Requires: python-typing-extensions
|
|
%python_subpackages
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%prep
|
|
%autosetup -a1 -p1 -n pure_protobuf-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%{python_sitelib}/pure_protobuf
|
|
%{python_sitelib}/pure_protobuf-%{version}.dist-info
|
|
|
|
%changelog
|