14
0
Files
python-PyGithub/python-PyGithub.spec
Tomáš Chvátal 6425938274 - Update to 1.43.8:
* Add two factor attributes on organizations (#1132) (a073168)
  * Add Repository methods for pending invitations (#1159) (57af1e0)
  * Adds get_issue_events to PullRequest object (#1154) (acd515a)
  * Add invitee and inviter to Invitation (#1156) (0f2beac)
  * Adding support for pending team invitations (#993) (edab176)
  * Add support for custom base_url in GithubIntegration class (#1093) (6cd0d64)
  * GithubIntegration: enable getting installation (#1135) (1818704)
  * Add sorting capability to Organization.get_repos() (#1139) (ef6f009)
  * Add new Organization.get_team_by_slug method (#1144) (4349bca)
  * Add description field when creating a new team (#1125) (4a37860)
  * Handle a path of / in Repository.get_contents() (#1070) (102c820)
  * Add issue lock/unlock (#1107) (ec7bbcf)
  * Fix bug in recursive repository contents example (#1166) (8b6b450)
  * Allow name to be specified for upload_asset (#1151) (8d2a6b5)
  * Fixes #1106 for GitHub Enterprise API (#1110) (5406579)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyGithub?expand=0&rev=23
2019-09-24 09:37:58 +00:00

71 lines
2.3 KiB
RPMSpec

#
# spec file for package python-PyGithub
#
# 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
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-PyGithub
Version: 1.43.8
Release: 0
Summary: Python library to use the GitHub API v3
License: LGPL-3.0-or-later
Group: Development/Languages/Python
URL: https://github.com/PyGithub/PyGithub
Source: https://github.com/PyGithub/PyGithub/archive/v%{version}.tar.gz
# PATCH-FIX-OPENSUSE sebix+novell.com@sebix.at -- Remove test that needs network access
Patch0: PyGithub-drop-network-tests.patch
Patch1: fix-httpretty-dep.patch
BuildRequires: %{python_module Deprecated}
BuildRequires: %{python_module PyJWT}
BuildRequires: %{python_module httpretty >= 0.9.6}
BuildRequires: %{python_module requests >= 2.14.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Deprecated
Requires: python-PyJWT
Requires: python-requests >= 2.14.0
Recommends: python-cryptography
BuildArch: noarch
%python_subpackages
%description
PyGithub is a Python (2 and 3) library to use the Github API v3.
Github resources (repositories, user profiles, organizations,
etc.) can be managed with this.
%prep
%setup -q -n PyGithub-%{version}
%autopatch -p1
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# When python3 support was added, none of the tests were made python3-compliant
python setup.py test
%files %{python_files}
%license COPYING COPYING.LESSER
%doc README.md
%{python_sitelib}/*
%changelog