14
0
Files
python-PyGithub/python-PyGithub.spec
Tomáš Chvátal f5b1c9a76d Accepting request 702990 from home:gary_smith:branches:devel:languages:python
- Update to 1.43.7:
  * Exclude tests from PyPI distribution (#1031) (78d283b9)
  * Add codecov badge (#1090) (4c0b54c0)
- Update to 1.43.6:
  * New features
    o Add support for Python 3.7 (#1028) (6faa00ac)
    o Adding HTTP retry functionality via urllib3 (#1002) (5ae7af55)
    o Add new dismiss() method on PullRequestReview (#1053) (8ef71b1b)
    o Add since and before to get_notifications (#1074) (7ee6c417)
    o Add url parameter to include anonymous contributors in get_contributors (#1075) (293846be)
    o Provide option to extend expiration of jwt token (#1068) (86a9d8e9)
  * Bug Fixes & Improvements
    o Fix the default parameter for PullRequest.create_review (#1058) (118def30)
    o Fix get_access_token (#1042) (6a89eb64)
    o Fix Organization.add_to_members role passing (#1039) (480f91cf)
  * Deprecation
    o Remove Status API (6efd6318)

OBS-URL: https://build.opensuse.org/request/show/702990
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyGithub?expand=0&rev=20
2019-05-14 21:16:14 +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.7
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