14
0

- Update to version 2.1.11.1531661757.92a4819:

* Bump version to 2.1.11
  * fix whitespace violation
  * Update test_docs.py
  * Dedent code blocks in tutorial.
  * Allow pathlib.Path in Repo.__init__
  * Fix small typo
  * Fix exception on import in MacOS
  * Bump to 2.1.10
  * Add change in type support
  * Get correcly rename change_type.
- Simplify the service file and generating of the tarball
  and base everything on a tag

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-GitPython?expand=0&rev=21
This commit is contained in:
Tomáš Chvátal
2019-03-15 14:07:37 +00:00
committed by Git OBS Bridge
parent ad4dad059d
commit aa39aa09e0
6 changed files with 40 additions and 33 deletions

View File

@@ -18,30 +18,29 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-GitPython
Version: 2.1.11
Version: 2.1.11.1531661757.92a4819
Release: 0
Summary: Python Git Library
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/gitpython-developers/GitPython
Source: https://files.pythonhosted.org/packages/source/G/GitPython/GitPython-%{version}.tar.gz
Source1: test-data.tar.xz
Source: GitPython-%{version}.tar.xz
Patch0: test-skips.patch
# Subset and rebase of merged https://github.com/gitpython-developers/GitPython/pull/793
Patch1: merged_pr_793.patch
Patch2: test_blocking_lock_file-extra-time.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: git-core
Requires: python-gitdb2 >= 2.0.0
BuildArch: noarch
BuildRequires: %{python_module ddt >= 1.1.1}
BuildRequires: %{python_module gitdb2 >= 2.0.0}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module smmap2 >= 2.0.0}
BuildRequires: fdupes
BuildRequires: git
BuildRequires: python-rpm-macros
BuildRequires: python2-mock
Requires: git-core
Requires: python-gitdb2 >= 2.0.0
BuildArch: noarch
%python_subpackages
%description
@@ -57,13 +56,8 @@ are 'cgit' and pure python, which is the default.
%prep
%setup -q -n GitPython-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
tar -xf %{SOURCE1}
cd test-data
echo y | ./init-tests-after-clone.sh
%autopatch -p1
%build
%python_build
@@ -78,9 +72,10 @@ echo y | ./init-tests-after-clone.sh
# should work as the test runner sets up a git daemon.
export SKIP_GITHUB=true
export SKIP_LOCALHOST=true
export TRAVIS=true
export LANG=en_US.UTF-8
export GIT_PYTHON_TEST_GIT_REPO_BASE=${PWD}/test-data
export GIT_PYTHON_TEST_GIT_REPO_BASE=${PWD}
git config --global user.email "you@example.com"
git config --global user.name "Your Name"