17
0
Files
python-openqa_client/python-openqa_client.spec
Ondřej Súkup bcbc875a26 Accepting request 832036 from home:mimi_vx:branches:devel:languages:python
- Update to version 4.1.1:
- enable tests
  * Fix use of 'latest' param when querying jobs
  * Drop a rogue word from `do_request` docstring, rewrap
  * Tweak release script to use 'pypi' repo
  * Handle YAML responses as well as JSON (#12)
  * Add a 'parse' argument for `do_request` to skip parsing
  * Add toml to CI requires (for coverage to read TOML config)
  * tox: run `coverage xml` explicitly
  * Improve the ugly sed hack fix for the coverage vs. tox venv issue
  * Update release.sh to use pep517
  * Add pyproject.toml to comply with PEP-517 / PEP-518
  * black-ify code and add black to CI config
  * Move source under src/ , fix tox config to run tests on package
  * Use f-strings for string formatting
  * Drop Python 2 support, and some Python 2-specific workarounds
  * Have MANIFEST.in exclude itself
  * Add a MANIFEST.in to exclude some stuff we don't want
  * Fix tests to run on ancient pytest (I hope)
  * Fix more brokenness in setup.py
  * Fix release.sh for no spaces in setup.py setup()
  * Drop duplicated description line in setup.py
  * Update release.sh to use Python 3
  * Drop WaitError exception
  * find_clones: don't edit list while iterating it
  * _add_auth_headers: don't modify the original request
  * setup.py: don't import os, we don't use it
  * setup.py: Remove runtime dependency on setuptools (@jayvdb) (#9)
  * setup.py: more cleanups based on sample project
  * setup.py: we don't use find_packages, don't import it

OBS-URL: https://build.opensuse.org/request/show/832036
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openqa_client?expand=0&rev=4
2020-09-04 09:06:57 +00:00

64 lines
1.8 KiB
RPMSpec

#
# spec file for package python-openqa_client
#
# Copyright (c) 2020 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-openqa_client
Version: 4.1.1
Release: 0
Summary: Python openQA client library
License: GPL-2.0-or-later
Group: Development/Languages/Python
URL: https://github.com/os-autoinst/openQA-python-client
Source: %{name}-%{version}.tar.xz
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module freezegun}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyYAML
Requires: python-requests
BuildArch: noarch
%python_subpackages
%description
This is a client for the openQA API, based on requests.
%prep
%setup -q
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.md
%license COPYING
%{python_sitelib}/*
%pycache_only %{python_sitelib}/*/__pycache__/*
%changelog