14
0
forked from pool/python-ogr
Files
python-ogr/python-ogr.spec
Steve Kowalik fbe1b0e3f0 - 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
2023-07-19 02:17:27 +00:00

77 lines
2.2 KiB
RPMSpec

#
# spec file for package python-ogr
#
# 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
# 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/
#
Name: python-ogr
Version: 0.45.0
Release: 0
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 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
Requires: python-GitPython
Requires: python-PyGithub
Requires: python-PyYAML
Requires: python-cryptography
Requires: python-python-gitlab
Requires: python-requests
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Deprecated}
BuildRequires: %{python_module GitPython}
BuildRequires: %{python_module PyGithub}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module flexmock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-gitlab}
BuildRequires: %{python_module requre}
# /SECTION
%python_subpackages
%description
One API for multiple git forges.
%prep
%setup -q -n ogr-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc CHANGELOG.md README.md
%license LICENSE
%{python_sitelib}/ogr
%{python_sitelib}/ogr-%{version}.dist-info
%changelog