15
0

- Update to 4.0.1:

* github3.repos.comparison.Comparison.commits was renamed to
    original_commits.
  * Add tests for Python 3.11
  * Add function for getting repos for github app
  * Cancel and failed invitation
  * Allow to set GitHub API version
  * Remove support to EOL Python 3.6
  * Missing set permission for collaborators
  * Modernize the build: switch to hatchling
- Stop using greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-github3.py?expand=0&rev=21
This commit is contained in:
2023-06-28 08:31:00 +00:00
committed by Git OBS Bridge
parent bfca417edb
commit b7f0af6d2d
4 changed files with 28 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-github3.py
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,18 +16,17 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-github3.py
Version: 3.2.0
Version: 4.0.1
Release: 0
Summary: Python wrapper for the GitHub API
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/sigmavirus24/github3.py
Source0: https://files.pythonhosted.org/packages/source/g/github3.py/github3.py-%{version}.tar.gz
Source20: https://raw.githubusercontent.com/sigmavirus24/github3.py/%{version}/tests/id_rsa.pub
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyJWT >= 2.3.0
@@ -59,18 +58,19 @@ Github3.py is wrapper for v3 of the GitHub API written in python.
cp %{SOURCE20} tests/
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest -c /dev/null
%pytest -c /dev/null -k 'not (test_patch or test_diff)'
%files %{python_files}
%doc AUTHORS.rst README.rst
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/github3
%{python_sitelib}/github3.py-%{version}.dist-info
%changelog