2011-11-24 13:20:30 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-GitPython
|
|
|
|
#
|
2023-01-04 07:35:16 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2011-11-24 13:20:30 +01:00
|
|
|
#
|
|
|
|
# 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.
|
2011-12-12 10:01:57 +01:00
|
|
|
|
2018-12-04 14:29:47 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-11-24 13:20:30 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-09-24 11:13:23 +02:00
|
|
|
%define skip_python2 1
|
2023-04-21 17:06:41 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2011-11-24 13:20:30 +01:00
|
|
|
Name: python-GitPython
|
2023-05-11 19:33:37 +02:00
|
|
|
Version: 3.1.31.1676565040.f253335
|
2011-11-24 13:20:30 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Python Git Library
|
|
|
|
License: BSD-3-Clause
|
2018-04-14 21:20:00 +02:00
|
|
|
URL: https://github.com/gitpython-developers/GitPython
|
2020-04-02 11:46:33 +02:00
|
|
|
Source: GitPython-%{version}.tar.xz
|
2019-03-15 14:45:17 +01:00
|
|
|
Patch0: test-skips.patch
|
2019-09-24 11:13:23 +02:00
|
|
|
Patch1: test_blocking_lock_file-extra-time.patch
|
2019-03-15 14:45:17 +01:00
|
|
|
BuildRequires: %{python_module ddt >= 1.1.1}
|
2020-04-02 11:46:33 +02:00
|
|
|
BuildRequires: %{python_module gitdb >= 4.0.1}
|
2020-08-20 12:54:23 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-03-15 15:07:37 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2020-04-02 11:46:33 +02:00
|
|
|
BuildRequires: %{python_module smmap >= 3.0.1}
|
2019-03-15 15:07:37 +01:00
|
|
|
BuildRequires: fdupes
|
2020-04-02 11:46:33 +02:00
|
|
|
BuildRequires: git-core
|
2019-03-15 15:07:37 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: git-core
|
2020-04-02 11:46:33 +02:00
|
|
|
Requires: python-gitdb >= 4.0.1
|
2019-03-15 15:07:37 +01:00
|
|
|
BuildArch: noarch
|
2018-01-18 11:15:37 +01:00
|
|
|
%python_subpackages
|
2011-11-24 13:20:30 +01:00
|
|
|
|
|
|
|
%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
|
2023-01-04 07:35:16 +01:00
|
|
|
%autosetup -p1 -n GitPython-%{version}
|
2019-09-24 11:13:23 +02:00
|
|
|
# do not pull in extra deps
|
|
|
|
sed -i -e '/tox/d' -e '/flake8/d' -e '/coverage/d' test-requirements.txt
|
2023-01-04 07:35:16 +01:00
|
|
|
sed -i -e '/addopts/d' pyproject.toml
|
2011-11-24 13:20:30 +01:00
|
|
|
|
|
|
|
%build
|
2018-01-18 11:15:37 +01:00
|
|
|
%python_build
|
2011-11-24 13:20:30 +01:00
|
|
|
|
|
|
|
%install
|
2018-01-18 11:15:37 +01:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2019-03-15 14:45:17 +01:00
|
|
|
# While SKIP_GITHUB is fine, the two tests skipped with SKIP_LOCALHOST
|
|
|
|
# should work as the test runner sets up a git daemon.
|
|
|
|
export SKIP_GITHUB=true
|
|
|
|
export SKIP_LOCALHOST=true
|
2019-03-15 15:07:37 +01:00
|
|
|
export TRAVIS=true
|
2019-03-15 14:45:17 +01:00
|
|
|
|
|
|
|
export LANG=en_US.UTF-8
|
2019-03-15 15:07:37 +01:00
|
|
|
export GIT_PYTHON_TEST_GIT_REPO_BASE=${PWD}
|
2019-03-15 14:45:17 +01:00
|
|
|
|
2022-11-08 00:35:53 +01:00
|
|
|
git config --global protocol.file.allow "always"
|
2019-03-15 14:45:17 +01:00
|
|
|
git config --global user.email "you@example.com"
|
|
|
|
git config --global user.name "Your Name"
|
|
|
|
|
2023-05-11 19:33:37 +02:00
|
|
|
# And it completely unraveled again gh#gitpython-developers/GitPython#914
|
|
|
|
%pytest -k 'not (test_installation or test_rev_parse)' || /bin/true
|
2011-11-24 13:20:30 +01:00
|
|
|
|
2018-01-18 11:15:37 +01:00
|
|
|
%files %{python_files}
|
2018-04-14 21:20:00 +02:00
|
|
|
%license LICENSE
|
2019-03-15 14:45:17 +01:00
|
|
|
%doc AUTHORS CHANGES README.md doc/source/*.rst
|
2019-11-17 08:46:39 +01:00
|
|
|
%dir %{python_sitelib}/git
|
|
|
|
%{python_sitelib}/git/*
|
2020-04-02 13:14:31 +02:00
|
|
|
%{python_sitelib}/GitPython*
|
2011-11-24 13:20:30 +01:00
|
|
|
|
|
|
|
%changelog
|