forked from pool/python-ogr
- 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.
OBS-URL: https://build.opensuse.org/request/show/1095592
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ogr?expand=0&rev=9
76 lines
2.2 KiB
RPMSpec
76 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
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 setuptools_scm_git_archive}
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
BuildRequires: %{python_module setuptools}
|
|
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
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc CHANGELOG.md README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|