From fbe1b0e3f05240a055ba7b32f76e5208b3526e77a2d8a22552931bbdd0a2e364 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 19 Jul 2023 02:17:27 +0000 Subject: [PATCH] - Update to 0.45.0: * OGR now supports PyGithub >= 1.58. * OGR now understands a few community-hosted GitLab instances that could not be determined automatically from the hostname. * Fixes an issue with project->service mapping where the service with an url not containing the service type wasn't matched. * A bug in ogr resulting in returning only first page of pull requests for Pagure has been fixed. * ogr now raises `GitForgeInternalError` rather than `PagureAPIException` when getting 50x response from the Pagure API. * `CommitComment.comment` has been deprecated in favour of `CommitComment.body` to make the naming consistent across objects. * ogr now requires Python 3.9 or later. * Using the method `users_with_write_access` you can generate the set of users that have write access to the project and the method `has_write_access(user)` you can find out if the user has write access to the project. * We have implemented the closed_by property for the Pagure pull request for getting the login of the account that closed the pull request. - Switch to pyproject macros. - Stop using greedy globs in %files. - Drop BuildRequires on setuptools_scm_git_archive. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ogr?expand=0&rev=11 --- python-ogr.changes | 26 ++++++++++++++++++++++++++ python-ogr.spec | 13 +++++++------ 2 files changed, 33 insertions(+), 6 deletions(-) diff --git a/python-ogr.changes b/python-ogr.changes index d3afa6f..e256162 100644 --- a/python-ogr.changes +++ b/python-ogr.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Wed Jul 19 02:12:48 UTC 2023 - Steve Kowalik + +- Update to 0.45.0: + * OGR now supports PyGithub >= 1.58. + * OGR now understands a few community-hosted GitLab instances that could + not be determined automatically from the hostname. + * Fixes an issue with project->service mapping where the service with an + url not containing the service type wasn't matched. + * A bug in ogr resulting in returning only first page of pull requests + for Pagure has been fixed. + * ogr now raises `GitForgeInternalError` rather than `PagureAPIException` + when getting 50x response from the Pagure API. + * `CommitComment.comment` has been deprecated in favour of + `CommitComment.body` to make the naming consistent across objects. + * ogr now requires Python 3.9 or later. + * Using the method `users_with_write_access` you can generate the set of + users that have write access to the project and the method + `has_write_access(user)` you can find out if the user has write access + to the project. + * We have implemented the closed_by property for the Pagure pull request + for getting the login of the account that closed the pull request. +- Switch to pyproject macros. +- Stop using greedy globs in %files. +- Drop BuildRequires on setuptools_scm_git_archive. + ------------------------------------------------------------------- Tue Jun 27 11:25:57 UTC 2023 - Markéta Machová diff --git a/python-ogr.spec b/python-ogr.spec index 60f4276..43c1538 100644 --- a/python-ogr.spec +++ b/python-ogr.spec @@ -16,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-ogr Version: 0.45.0 Release: 0 @@ -25,9 +23,11 @@ Summary: One API for multiple git forges License: MIT URL: https://github.com/packit-service/ogr Source: https://files.pythonhosted.org/packages/source/o/ogr/ogr-%{version}.tar.gz -BuildRequires: %{python_module setuptools_scm_git_archive} +BuildRequires: %{python_module base >= 3.9} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Deprecated @@ -58,10 +58,10 @@ One API for multiple git forges. %setup -q -n ogr-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -70,6 +70,7 @@ One API for multiple git forges. %files %{python_files} %doc CHANGELOG.md README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/ogr +%{python_sitelib}/ogr-%{version}.dist-info %changelog