forked from pool/python-pygerrit2
- version update to 2.0.15 2.0.15 ------ * Sort the trailing README link keys alphabetically * Replace setup dash with underscore to fix warnings * Sort listed Pipfile {dev-}packages alphabetically * Bump importlib-metadata from 4.2.0 to 4.4.0 * Format livetests.py with base black version 21.5b2 * Bump black from 21.5b1 to 21.5b2 * Add 'six' to Pipfile dev-packages to fix livetests * Remove earlier live-tested versions to reduce pull * Bump importlib-metadata from 4.0.1 to 4.2.0 * Format travis and Pip files using typical IntelliJ * Add the newly released v3.4.0 to livetests images * Upgrade all maintained image versions in livetests * Align black and importlib\_metadata python\_version * Bump black from 21.5b0 to 21.5b1 * Bump black from 21.4b2 to 21.5b0 * Bump pytest from 6.2.3 to 6.2.4 * Bump black from 21.4b0 to 21.4b2 * Upgrade to GitHub-native Dependabot * Bump pbr from 5.5.1 to 5.6.0 * Bump black from 20.8b1 to 21.4b0 * Bump importlib-metadata from 4.0.0 to 4.0.1 * Bump importlib-metadata from 3.10.1 to 4.0.0 * Bump importlib-metadata from 3.10.0 to 3.10.1 * Bump pytest from 6.2.2 to 6.2.3 * Update all maintained image versions in livetests * Bump testcontainers from 3.3.0 to 3.4.0 * Bump importlib-metadata from 3.9.0 to 3.10.0 OBS-URL: https://build.opensuse.org/request/show/967455 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygerrit2?expand=0&rev=9
70 lines
2.1 KiB
RPMSpec
70 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-pygerrit2
|
|
#
|
|
# Copyright (c) 2022 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-%{**}}
|
|
Name: python-pygerrit2
|
|
Version: 2.0.15
|
|
Release: 0
|
|
Summary: Client library for interacting with Gerrit code review
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/dpursehouse/pygerrit2
|
|
Source: https://files.pythonhosted.org/packages/source/p/pygerrit2/pygerrit2-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-pbr >= 0.8.0
|
|
Requires: python-requests >= 2.20.0
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module pbr >= 0.8.0}
|
|
BuildRequires: %{python_module requests >= 2.20.0}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Client library for interacting with Gerrit code review rest api
|
|
|
|
Pygerrit2 provides a simple interface for clients to interact with
|
|
Gerrit code review via its rest api.
|
|
|
|
See also: https://gerritcodereview.com/
|
|
|
|
%prep
|
|
%setup -q -n pygerrit2-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# https://github.com/dpursehouse/pygerrit2/issues/247
|
|
sed -i 's:from mock:from unittest.mock:' unittests.py
|
|
%python_exec unittests.py
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc AUTHORS ChangeLog README.md
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|