d0162c50dc
latest geventhttpclient. (gh#jelmer/dulwich#1299, gh#jelmer/dulwich#1294) - Update 0.22.1: * Fix pypi deployments by @jelmer in #1284 * Handle alternate case for worktreeconfig setting by @wshanks in #1286 * Ship rust files. Fixes #1287 by @jelmer in #1290 - update 0.22.0: * Start on 0.21.8 by @jelmer in #1240 * Install twine when uploading to pypi by @jelmer in #1241 * Remove shebang from graph.py by @mtelka in #1242 * Disable pypi uploads in disperse; this is now down by the GitHub actions workflow by @jelmer in #1243 * tweak doc-strings in LocalGitClient for clarity by @stspdotname in #1245 * Keep GitHub Actions up to date with GitHub's Dependabot by @cclauss in #1249 * Bump the github_actions group with 5 updates by @dependabot in #1250 * Add Python 3.12 to the testing by @cclauss in #1251 * pyproject.toml: Add trove classifier for Python 3.12 by @cclauss in #1252 * Convert _objects.c to _objects.rs by @jelmer in #1204 * Convert pack C helper to rust by @jelmer in #1255 * Convert diff-tree C helper to rust by @jelmer in #1256 * Revert "Bump the github_actions group with 5 updates" by @jelmer in #1257 * Only expect a shallow update when requesting a depth by @abderrahim in #1259 * Use f-strings by @jelmer in #1263 * Wrap all urllib3 read ProtocolErrors as GitProtocolError by @nanonyme in #1261 * Update cargo dependencies with dependabot by @jelmer in #1264 * wheels: Don't build with nightly by @jelmer in #1273 * Reformat with ruff by @jelmer in #1272 * Use latest cibuildwheel by @jelmer in #1276 * cibuildwheel: define options in pyproject.toml by @jelmer in #1275 * Move tests to root. Fixes #1024 by @jelmer in #1277 OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/python-dulwich?expand=0&rev=33
113 lines
3.5 KiB
RPMSpec
113 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package python-dulwich
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%if 0%{?suse_version} >= 1550
|
|
%bcond_without test
|
|
%else
|
|
%bcond_with test
|
|
%endif
|
|
|
|
%{?sle15_python_module_pythons}
|
|
%define oldpython python
|
|
Name: python-dulwich
|
|
Version: 0.22.1
|
|
Release: 0
|
|
Summary: Pure-Python Git Library
|
|
License: Apache-2.0 OR GPL-2.0-or-later
|
|
Group: Development/Languages/Python
|
|
URL: https://www.dulwich.io
|
|
Source0: https://github.com/jelmer/dulwich/archive/dulwich-%{version}.tar.gz#/dulwich-%{version}.tar.gz
|
|
# PATCH-FIX-UPSTREAM geventhttpclient-compat.patch gh#jelmer/dulwich#1299, gh#jelmer/dulwich#1294
|
|
Patch0: geventhttpclient-compat.patch
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools >= 17.1}
|
|
BuildRequires: %{python_module setuptools-rust}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
%if %{with test}
|
|
BuildRequires: %{python_module Sphinx}
|
|
BuildRequires: %{python_module fastimport}
|
|
BuildRequires: %{python_module geventhttpclient}
|
|
BuildRequires: %{python_module gevent}
|
|
BuildRequires: %{python_module gpg}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module typing_extensions if %python-base < 3.8}
|
|
BuildRequires: %{python_module urllib3 >= 1.24.1}
|
|
%if 0%{?suse_version} <= 1500
|
|
BuildRequires: python-mock
|
|
%endif
|
|
%endif
|
|
Requires: python-urllib3 >= 1.24.1
|
|
%if %{python_version_nodots} < 38
|
|
Requires: python-typing_extensions
|
|
%endif
|
|
Requires(post): update-alternatives
|
|
Requires(preun): update-alternatives
|
|
Recommends: python-fastimport
|
|
Recommends: python-gpg
|
|
Obsoletes: %{oldpython}-dulwich-doc < 0.20.5
|
|
%python_subpackages
|
|
|
|
%description
|
|
Simple Pure-Python implementation of the Git file formats and protocols. Dulwich
|
|
is the place where Mr. and Mrs. Git live in one of the Monty Python sketches.
|
|
|
|
%prep
|
|
%autosetup -p1 -n dulwich-dulwich-%{version}
|
|
sed -i '/usr\/bin\/env/d' dulwich/contrib/diffstat.py
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
%python_clone -a %{buildroot}%{_bindir}/dulwich
|
|
%python_clone -a %{buildroot}%{_bindir}/dul-receive-pack
|
|
%python_clone -a %{buildroot}%{_bindir}/dul-upload-pack
|
|
|
|
%check
|
|
%if %{with test}
|
|
%python_expand $python -m unittest tests.test_suite
|
|
%endif
|
|
|
|
%post
|
|
%python_install_alternative dulwich
|
|
%python_install_alternative dul-receive-pack
|
|
%python_install_alternative dul-upload-pack
|
|
|
|
%postun
|
|
%python_uninstall_alternative dulwich
|
|
%python_uninstall_alternative dul-receive-pack
|
|
%python_uninstall_alternative dul-upload-pack
|
|
|
|
%files %{python_files}
|
|
%license COPYING
|
|
%doc NEWS README.rst
|
|
%python_alternative dulwich
|
|
%python_alternative dul-receive-pack
|
|
%python_alternative dul-upload-pack
|
|
%{python_sitearch}/dulwich
|
|
%{python_sitearch}/dulwich-%{version}*-info
|
|
|
|
%changelog
|