14
0
Files
python-PyGithub/python-PyGithub.spec
Matej Cepl 95ac06c325 Accepting request 1031627 from home:yarunachalam:branches:devel:languages:python
- Update to 1.56 
   This is the last release that will support Python 3.6.
  *Bug Fixes & Improvements
   Create repo from template (#2090) (b50283a)
   Improve signature of Repository.create_repo (#2118) (001970d)
   Add support for 'visibility' attribute preview for Repositories (#1872) (8d1397a)
   Add Repository.rename_branch method (#2089) (6452ddf)
   Add function to delete pending reviews on a pull request (#1897) (c8a945b)
   Cover all code paths in search_commits (#2087) (f1faf94)
   Correctly deal when PaginatedList's data is a dict (#2084) (93b92cd)
   Add two_factor_authentication in AuthenticatedUser. (#1972) (4f00cbf)
   Add ProjectCard.edit() to the type stub (#2080) (d417e4c)
   Add method to delete Workflow runs (#2078) (b1c8eec)
   Implement organization.cancel_invitation() (#2072) (53fb498)
   Feat: Add html_url property in Team Class. (#1983) (6570892)
   Add support for Python 3.10 (#2073) (aa694f8)
   Add github actions secrets to org (#2006) (bc5e595)
   Correct replay for Organization.create_project() test (#2075) (fcc1236)
   Fix install command example (#2043) (99e00a2)
   Fix: #1671 Convert Python Bool to API Parameter for Authenticated User Notifications (#2001) (1da600a)
   Do not transform requestHeaders when logging (#1965) (1265747)
   Add type to OrderedDict (#1954) (ed7d0fe)
   Add Commit.get_pulls() to pyi (#1958) (b466470)
   Adding headers in GithubException is a breaking change (#1931) (d1644e3)

OBS-URL: https://build.opensuse.org/request/show/1031627
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyGithub?expand=0&rev=41
2022-10-28 20:12:13 +00:00

70 lines
2.1 KiB
RPMSpec

#
# spec file for package python-PyGithub
#
# Copyright (c) 2022 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-%{**}}
%define skip_python2 1
Name: python-PyGithub
Version: 1.56
Release: 0
Summary: Python library to use the GitHub API v3
License: LGPL-3.0-or-later
URL: https://github.com/PyGithub/PyGithub
Source: https://github.com/PyGithub/PyGithub/archive/v%{version}.tar.gz
BuildRequires: %{python_module Deprecated}
BuildRequires: %{python_module PyJWT}
BuildRequires: %{python_module PyNaCl >= 1.4.0}
BuildRequires: %{python_module httpretty >= 0.9.6}
BuildRequires: %{python_module pytest}
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-PyNaCl >= 1.4.0
Requires: python-requests >= 2.14.0
Recommends: python-cryptography
BuildArch: noarch
%python_subpackages
%description
PyGithub is a Python 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
%pytest
%files %{python_files}
%license COPYING COPYING.LESSER
%doc README.md
%{python_sitelib}/*
%changelog