From 052652f6d7a2b6babd8af16a0a6c38411ad385f920332e5f609be68b3dd4d4b3 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 9 Sep 2024 08:30:08 +0000 Subject: [PATCH] Accepting request 1199491 from home:bnavigator:branches:devel:languages:python:numeric - Update to 2.4.0 ## New features * Allow custom authentication @kliem (#2987) ## Improvements * Add has_discussions to AuthenticatedUser and Repository classes @cwlls (#3020) * Update more SecurityAndAnalysis attributes @squatched (#3025) * Implement support for re-running only failed workflow jobs. @chrisgavin (#2983) * Add possibility to mark a thread/notification as done @m42e (#2985) * Add "pull_request_review_id" to PullRequestComment object @stroebs (#3000) * Add minimize and unminimize functions for IssueComment class @arash77 (#3005) * Support Organization/Repository custom properties @jackylamhk (#2968) * Add dict type to add_attribute script @jackylamhk (#2977) * Allow for deleting and restoring branch associated with PR @austinsasko (#1784) * Add "archived_at" to Organization object. @billnapier (#2974) * Adds Security & Analysis To Repository @squatched (#2960) * Add added_by and last_used attributes to RepositoryKey @ramiro (#2952) * Add make_latest to GitRelease.update_release @treee111 (#2888) * Make Commit.files return PaginatedList @iarspider (#2939) ## Bug Fixes * Fix GraphQL Queries with Variables @kgal-pan (#3002) - Many more new features improvements and bug fixes since 1.57 * Check https://github.com/PyGithub/PyGithub/releases OBS-URL: https://build.opensuse.org/request/show/1199491 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyGithub?expand=0&rev=47 --- pygithub-2.4.0.tar.gz | 3 +++ python-PyGithub.changes | 36 ++++++++++++++++++++++++++++++++ python-PyGithub.rpmlintrc | 2 ++ python-PyGithub.spec | 43 +++++++++++++++++++++++++-------------- v1.57.tar.gz | 3 --- 5 files changed, 69 insertions(+), 18 deletions(-) create mode 100644 pygithub-2.4.0.tar.gz create mode 100644 python-PyGithub.rpmlintrc delete mode 100644 v1.57.tar.gz diff --git a/pygithub-2.4.0.tar.gz b/pygithub-2.4.0.tar.gz new file mode 100644 index 0000000..8ed3f10 --- /dev/null +++ b/pygithub-2.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6601e22627e87bac192f1e2e39c6e6f69a43152cfb8f307cee575879320b3051 +size 3476673 diff --git a/python-PyGithub.changes b/python-PyGithub.changes index d313cec..74d7c5c 100644 --- a/python-PyGithub.changes +++ b/python-PyGithub.changes @@ -1,3 +1,39 @@ +------------------------------------------------------------------- +Sun Sep 8 12:25:40 UTC 2024 - Ben Greiner + +- Update to 2.4.0 + ## New features + * Allow custom authentication @kliem (#2987) + ## Improvements + * Add has_discussions to AuthenticatedUser and Repository classes + @cwlls (#3020) + * Update more SecurityAndAnalysis attributes @squatched (#3025) + * Implement support for re-running only failed workflow jobs. + @chrisgavin (#2983) + * Add possibility to mark a thread/notification as done @m42e + (#2985) + * Add "pull_request_review_id" to PullRequestComment object + @stroebs (#3000) + * Add minimize and unminimize functions for IssueComment class + @arash77 (#3005) + * Support Organization/Repository custom properties @jackylamhk + (#2968) + * Add dict type to add_attribute script @jackylamhk (#2977) + * Allow for deleting and restoring branch associated with PR + @austinsasko (#1784) + * Add "archived_at" to Organization object. @billnapier (#2974) + * Adds Security & Analysis To Repository @squatched (#2960) + * Add added_by and last_used attributes to RepositoryKey @ramiro + (#2952) + * Add make_latest to GitRelease.update_release @treee111 (#2888) + * Make Commit.files return PaginatedList @iarspider (#2939) + ## Bug Fixes + * Fix GraphQL Queries with Variables @kgal-pan (#3002) +- Many more new features improvements and bug fixes since 1.57 + * Check https://github.com/PyGithub/PyGithub/releases +- Modernize specfile +- Provide lowercase PyPI name + ------------------------------------------------------------------- Wed Mar 6 15:01:45 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-PyGithub.rpmlintrc b/python-PyGithub.rpmlintrc new file mode 100644 index 0000000..026fb98 --- /dev/null +++ b/python-PyGithub.rpmlintrc @@ -0,0 +1,2 @@ +# part of pyjwt[cryptography] requirement +addFilter("python-leftover-require python3.*-cryptography") diff --git a/python-PyGithub.spec b/python-PyGithub.spec index 4c813a3..f48fcb1 100644 --- a/python-PyGithub.spec +++ b/python-PyGithub.spec @@ -18,43 +18,55 @@ %{?sle15_python_module_pythons} Name: python-PyGithub -Version: 1.57 +Version: 2.4.0 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 +Source: https://files.pythonhosted.org/packages/source/p/pygithub/pygithub-%{version}.tar.gz +Source99: python-PyGithub.rpmlintrc BuildRequires: %{python_module Deprecated} -BuildRequires: %{python_module PyJWT} +BuildRequires: %{python_module PyJWT >= 2.4.0} BuildRequires: %{python_module PyNaCl >= 1.4.0} -BuildRequires: %{python_module httpretty >= 0.9.6} -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module cryptography >= 3.4} +BuildRequires: %{python_module pip} BuildRequires: %{python_module requests >= 2.14.0} +BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module typing-extensions >= 4.0.0} +BuildRequires: %{python_module urllib3 >= 1.26.0} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Deprecated -Requires: python-PyJWT +Requires: python-PyJWT >= 2.4.0 Requires: python-PyNaCl >= 1.4.0 +Requires: python-cryptography >= 3.4 Requires: python-requests >= 2.14.0 -Recommends: python-cryptography +Requires: python-typing-extensions >= 4.0.0 +Requires: python-urllib3 >= 1.26.0 +Provides: python-pygithub = %{version}-%{release} +# SECTION test requirements +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module httpretty} +# /SECTION 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. +PyGitHub is a Python library to access the GitHub REST API. +This library enables you to manage [GitHub] resources such as repositories, +user profiles, and organizations in your Python applications. %prep -%setup -q -n PyGithub-%{version} -%autopatch -p1 +%autosetup -p1 -n pygithub-%{version} +sed -i s/--color=yes// pyproject.toml %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -63,6 +75,7 @@ etc.) can be managed with this. %files %{python_files} %license COPYING COPYING.LESSER %doc README.md -%{python_sitelib}/* +%{python_sitelib}/github +%{python_sitelib}/PyGithub-%{version}.dist-info %changelog diff --git a/v1.57.tar.gz b/v1.57.tar.gz deleted file mode 100644 index bd4d804..0000000 --- a/v1.57.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:989f30d123eb86c27e69c23ce8f72c3a3391f1e66ecb54ee8cd033242d7aa064 -size 3159952