14
0
Files
python-GitPython/python-GitPython.spec
Dirk Mueller 5b0381367d Accepting request 627918 from home:TheBlackCat:branches:devel:languages:python
- update to 2.1.11
  * Update test_docs.py
  * Dedent code blocks in tutorial.
  * Exception when constructing a Repo() from a pathlib.Path acknowledged help wanted
  * Allow pathlib.Path in Repo.__init__
  * Fix exception on import in MacOS
  * Failed import raises non-ImportError exception on MacOS
- update to 2.1.10
  * Fix rename change type & support 'change in type' acknowledged
  * Configurable chunk size
  * Avoid from_timestamp() function to raise an exception when the offset…
  * Adding files to repository that is located directly in the root acknowledged
  * git: index: base: use os.path.relpath

OBS-URL: https://build.opensuse.org/request/show/627918
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-GitPython?expand=0&rev=14
2018-08-07 20:46:52 +00:00

80 lines
2.6 KiB
RPMSpec

#
# spec file for package python-GitPython
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Requires test files missing from the pypi source archive
# See: https://github.com/gitpython-developers/GitPython/pull/788
%bcond_with test
Name: python-GitPython
Version: 2.1.11
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
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: git
Requires: python-gitdb2 >= 2.0.0
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module ddt}
BuildRequires: %{python_module gitdb2 >= 2.0.0}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module smmap2 >= 2.0.0}
BuildRequires: git
BuildRequires: python-mock
%endif
%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
%setup -q -n GitPython-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_exec setup.py test
%endif
%files %{python_files}
%license LICENSE
%doc AUTHORS CHANGES README.md
%{python_sitelib}/*
%changelog