- drop of test-skips.patch - drop of test_blocking_lock_file-extra-time.patch - Update to version 3.1.43: * Issue and test deprecation warnings by @EliahKagan in #1886 * Fix version_info cache invalidation, typing, parsing, and serialization by @EliahKagan in #1838 * Document manual refresh path treatment by @EliahKagan in #1839 * Improve static typing and docstrings related to git object types by @EliahKagan in #1859 * Fix release link in changelog by @PeterJCLaw in #1795 * Remove test dependency on sumtypes library by @EliahKagan in #1798 * Pin Sphinx plugins to compatible versions by @EliahKagan in #1803 * fix: treeNotSorted issue by @et-repositories in #1799 * Remove git.util.NullHandler by @EliahKagan in #1807 * Clarify why GIT_PYTHON_GIT_EXECUTABLE may be set on failure by @EliahKagan in #1810 * Report actual attempted Git command when Git.refresh fails by @EliahKagan in #1812 * Don't suppress messages when logging is not configured by @EliahKagan in #1813 * Pin Python 3.9.16 on Cygwin CI by @EliahKagan in #1814 * Have initial refresh use a logger to warn by @EliahKagan in #1815 * Omit warning prefix in "Bad git executable" message by @EliahKagan in #1816 * Test with M1 macOS CI runner by @EliahKagan in #1817 * Bump pre-commit/action from 3.0.0 to 3.0.1 by @dependabot in #1818 * Bump Vampire/setup-wsl from 2.0.2 to 3.0.0 by @dependabot in #1819 * Remove deprecated section in README.md by @marcm-ml in #1823 * Keep temp files out of project dir and improve cleanup by @EliahKagan in #1825 * Add __all__ in git.exc by @EliahKagan in #1719 * Set submodule update cadence to weekly by @EliahKagan in #1721 * Never modify sys.path by @EliahKagan in #1720 * Bump git/ext/gitdb from 8ec2390 to ec58b7e by @dependabot in #1722 * Revise comments, docstrings, some messages, and a bit of code by @EliahKagan in #1725 * Use zero-argument super() by @EliahKagan in #1726 * Remove obsolete note in _iter_packed_refs by @EliahKagan in #1727 * Reorganize test_util and make xfail marks precise by @EliahKagan in #1729 * Clarify license and make module top comments more consistent by @EliahKagan in #1730 * Deprecate compat.is_, rewriting all uses by @EliahKagan in #1732 * Revise and restore some module docstrings by @EliahKagan in #1735 * Make the rmtree callback Windows-only by @EliahKagan in #1739 * List all non-passing tests in test summaries by @EliahKagan in #1740 * Document some minor subtleties in test_util.py by @EliahKagan in #1749 * Always read metadata files as UTF-8 in setup.py by @EliahKagan in #1748 * Test native Windows on CI by @EliahKagan in #1745 * Test macOS on CI by @EliahKagan in #1752 * Let close_fds be True on all platforms by @EliahKagan in #1753 * Fix IndexFile.from_tree on Windows by @EliahKagan in #1751 * Remove unused TASKKILL fallback in AutoInterrupt by @EliahKagan in #1754 * Don't return with operand when conceptually void by @EliahKagan in #1755 * Group .gitignore entries by purpose by @EliahKagan in #1758 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-GitPython?expand=0&rev=59
90 lines
2.9 KiB
RPMSpec
90 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package python-GitPython
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%define skip_python2 1
|
|
%define skip_python313 1
|
|
%define simple_ver 3.1.43
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-GitPython
|
|
Version: 3.1.43
|
|
Release: 0
|
|
Summary: Python Git Library
|
|
License: BSD-3-Clause
|
|
URL: https://github.com/gitpython-developers/GitPython
|
|
Source: GitPython-%{version}.tar.gz
|
|
BuildRequires: %{python_module ddt >= 1.1.1}
|
|
BuildRequires: %{python_module gitdb >= 4.0.1}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module smmap >= 3.0.1}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: git-core
|
|
BuildRequires: python-rpm-macros
|
|
Requires: git-core
|
|
Requires: python-gitdb >= 4.0.1
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
GitPython is a python library used to interact with Git repositories.
|
|
|
|
GitPython provides object model read and write access to your git repository.
|
|
Access repository information conveniently, alter the index directly, handle
|
|
remotes, or go down to low-level object database access with big-files support.
|
|
|
|
With the new object database abstraction added in 0.3, its even possible to
|
|
implement your own storage mechanisms, the currently available implementations
|
|
are 'cgit' and pure python, which is the default.
|
|
|
|
%prep
|
|
%autosetup -p1 -n GitPython-%{version}
|
|
# do not pull in extra deps
|
|
sed -i -e '/tox/d' -e '/flake8/d' -e '/coverage/d' test-requirements.txt
|
|
sed -i -e '/addopts/d' pyproject.toml
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
export SKIP_GITHUB=true
|
|
export TRAVIS=true
|
|
|
|
export LANG=en_US.UTF-8
|
|
export GIT_PYTHON_TEST_GIT_REPO_BASE=${PWD}
|
|
|
|
git config --global protocol.file.allow "always"
|
|
git config --global user.email "you@example.com"
|
|
git config --global user.name "Your Name"
|
|
|
|
# And it completely unraveled again gh#gitpython-developers/GitPython#914
|
|
%pytest -k 'not (test_installation or test_rev_parse)' || /bin/true
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc AUTHORS CHANGES README.md doc/source/*.rst
|
|
%{python_sitelib}/git
|
|
%{python_sitelib}/GitPython-%{simple_ver}.dist-info
|
|
|
|
%changelog
|