14
0
Files
python-PyGithub/python-PyGithub.spec
Steve Kowalik b26f41ba9d - Update to 1.45:
+ Breaking Changes
    * Branch.edit_{user,team}_push_restrictions() have been removed
      The new API is:
         Branch.add_{user,team}_push_restrictions() to add new members
         Branch.replace_{user,team}_push_restrictions() to replace all members
         Branch.remove_{user,team}_push_restrictions() to remove members
    * The api_preview parameter to Github() has been removed.
  + Bug Fixes & Improvements
    * Allow sha=None for InputGitTreeElement
    * Support github timeline events.
    * Add support for update branch
    * Refactor Logging tests
    * Fix rtd build
    * Apply black to whole codebase
    * Fix class used returning pull request comments
    * Support for create_fork
    * Use Repository.get_contents() in tests
    * Allow GithubObject.update() to be passed headers
    * Correct URL for assignees on PRs
    * Use inclusive ordered comparison for 'parameterized' requirement
    * Deprecate Repository.get_dir_contents()
    * Apply some polish to manage.sh
- Refresh no-hardcoded-dep.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyGithub?expand=0&rev=29
2020-01-06 04:44:48 +00:00

70 lines
2.1 KiB
RPMSpec

#
# spec file for package python-PyGithub
#
# Copyright (c) 2020 SUSE LLC
#
# 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.45
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
Patch0: no-hardcoded-dep.patch
BuildRequires: %{python_module Deprecated}
BuildRequires: %{python_module PyJWT}
BuildRequires: %{python_module httpretty >= 0.9.6}
BuildRequires: %{python_module mock >= 3.0.5}
BuildRequires: %{python_module parameterized >= 0.7.0}
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
%python_exec setup.py test
%files %{python_files}
%license COPYING COPYING.LESSER
%doc README.md
%{python_sitelib}/*
%changelog