- update to 0.22.6:

* ``ObjectStore.iter_prefix``: fix handling of missing
    loose object directories. (Jelmer Vernooij)
  * Reject invalid refcontainer values (not 40 characters or
    symref).
  * Add type hints to various functions. (Castedo Ellerman)
  * Drop support for Python 3.8. (Jelmer Vernooij)
  * Fix refspec handling in porcelain.pull. (Jelmer Vernooij)
  * Drop broken refspec support in porcelain.clone.
  * Provide ``ref_prefix`` functionality client-side
    if the server does not support it.
  * Consistently honor ``ref_prefix`` and ``protocol_version``
    arguments in client. (Jelmer Vernooij)
  * Strip pkt-line when negotiating protocol v2. Fixes
    compatibility with gerrit. (Rémy Pecqueur, #1423)
  * Don't pull in ``setuptools_rust`` when building pure
    package. (Eli Schwartz)
  * Return peeled refs from ``GitClient.get_refs`` if protocol-v2
    is used. (Stefan Sperling, #1410)
  * Drop outdated performance file. (Jelmer Vernooij, #1411)
  * Fix handling of symrefs with protocol v2.
  * Add ``ObjectStore.iter_prefix``.  (Jelmer Vernooij)
  * Revert back to version 3 of ``Cargo.lock``, to allow
    building with older Cargo versions.
  * Use a default ref-prefix when fetching with git protocol v2
  * Add `ObjectStore.iter_prefix`. (Jelmer Vernooij)
  * Improve wheel building in CI, so we can upload wheels for the
    next release.
  * Ship ``Cargo.lock``. (Jelmer Vernooij, #1287)
  * Ship ``tests/`` and ``testdata/`` in sdist. (Jelmer Vernooij,

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/python-dulwich?expand=0&rev=35
This commit is contained in:
Lukas Müller 2024-11-23 18:57:58 +00:00 committed by Git OBS Bridge
commit f4393fb5c2
8 changed files with 1191 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
dulwich-0.21.7.tar.gz Normal file
View File

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

3
dulwich-0.22.1.tar.gz Normal file
View File

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

3
dulwich-0.22.6.tar.gz Normal file
View File

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

View File

@ -0,0 +1,35 @@
From 7064f5f0b8094877459f4b6ed2eff72627a19750 Mon Sep 17 00:00:00 2001
From: PerchunPak <git@perchun.it>
Date: Sun, 28 Apr 2024 17:42:10 +0200
Subject: [PATCH] Keep up with changes in geventhttpclient
---
dulwich/contrib/swift.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: dulwich-dulwich-0.22.1/dulwich/contrib/swift.py
===================================================================
--- dulwich-dulwich-0.22.1.orig/dulwich/contrib/swift.py
+++ dulwich-dulwich-0.22.1/dulwich/contrib/swift.py
@@ -257,7 +257,7 @@ class SwiftConnector:
if ret.status_code < 200 or ret.status_code >= 300:
raise SwiftException(
"AUTH v1.0 request failed on "
- + f"{str(auth_httpclient.get_base_url()) + path} with error code {ret.status_code} ({ret.items()!s})"
+ + f"{self.auth_url} with error code {ret.status_code} ({ret.items()!s})"
)
storage_url = ret["X-Storage-Url"]
token = ret["X-Auth-Token"]
Index: dulwich-dulwich-0.22.1/tests/test_greenthreads.py
===================================================================
--- dulwich-dulwich-0.22.1.orig/tests/test_greenthreads.py
+++ dulwich-dulwich-0.22.1/tests/test_greenthreads.py
@@ -35,7 +35,7 @@ except ImportError:
gevent_support = False
if gevent_support:
- from ..greenthreads import GreenThreadsMissingObjectFinder
+ from dulwich.greenthreads import GreenThreadsMissingObjectFinder
skipmsg = "Gevent library is not installed"

1013
python-dulwich.changes Normal file

File diff suppressed because it is too large Load Diff

110
python-dulwich.spec Normal file
View File

@ -0,0 +1,110 @@
#
# 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.6
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
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