14
0
Files
python-PyGithub/python-PyGithub.spec
Steve Kowalik dd92393409 - Update to 1.51
+ New features
    * PyGithub now supports type checking
    * Ability to retrieve public events
    * Add and handle the maintainer_can_modify attribute in PullRequest
    * List matching references
    * Add create_repository_dispatch
    * Add some Organization and Repository attributes.
    * Add create project method
  + Bug Fixes & Improvements
    * Drop use of shadow-cat for draft PRs
    * AuthenticatedUser.get_organization_membership() should be str
    * Drop documentation for len() of PaginatedList
    * Fix param name of projectcard's move function
    * Correct typos found with codespell
    * Export IncompletableObject in the github namespace
    * Add GitHub Action workflow for checks
    * Drop unneeded ignore rule for flake8
    * Use pytest to parametrize tests
    * Type stubs are now packaged with the build
    * Get the project column by id
- Drop parametrized and pytest-cov from BuildRequires.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyGithub?expand=0&rev=35
2020-05-04 04:42:21 +00:00

69 lines
2.0 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-%{**}}
%define skip_python2 1
Name: python-PyGithub
Version: 1.51
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
BuildRequires: %{python_module Deprecated}
BuildRequires: %{python_module PyJWT}
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-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