14
0

- Update to 1.43.5:

* Many actual changes to enumerate, mostly support of current
    github api see changes.rst file

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyGithub?expand=0&rev=17
This commit is contained in:
Tomáš Chvátal
2019-03-06 09:09:51 +00:00
committed by Git OBS Bridge
parent 2a4f71bea2
commit 2b7010eab0
4 changed files with 21 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-PyGithub
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@@ -17,29 +17,27 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{!?license: %global license %doc}
%bcond_without test
Name: python-PyGithub
Version: 1.35
Version: 1.43.5
Release: 0
Summary: Python library to use the GitHub API v3
License: LGPL-3.0-only
Group: Development/Languages/Python
Url: http://pygithub.github.io/PyGithub/v1/index.html
URL: https://github.com/PyGithub/PyGithub
Source: https://files.pythonhosted.org/packages/source/P/PyGithub/PyGithub-%{version}.tar.gz
# PATCH-FIX-OPENSUSE sebix+novell.com@sebix.at -- Remove test that needs network access
Patch0: PyGithub-drop-network-tests.patch
BuildRequires: %{python_module Deprecated}
BuildRequires: %{python_module PyJWT}
BuildRequires: %{python_module requests >= 2.14.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test
BuildRequires: %{python_module PyJWT}
# /SECTION
Requires: python-Deprecated
Requires: python-PyJWT
Requires: python-requests >= 2.14.0
Recommends: python-cryptography
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
@@ -56,11 +54,11 @@ etc.) can be managed with this.
%install
%python_install
%{python_expand rm -r %{buildroot}%{$python_sitelib}/github/tests/}
%{python_expand %fdupes %{buildroot}%{$python_sitelib}}
%python_expand rm -r %{buildroot}%{$python_sitelib}/github/tests/
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%{python_exec setup.py test}
%python_exec setup.py test
%files %{python_files}
%license COPYING COPYING.LESSER