From bcbc875a2614b898837c441ffcde4ee5cb0ec571a0b641c8c422405490fb2f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Fri, 4 Sep 2020 09:06:57 +0000 Subject: [PATCH] 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 --- _service | 2 +- _servicedata | 2 +- python-openqa_client-1.3.0.tar.xz | 3 --- python-openqa_client-4.1.1.tar.xz | 3 +++ python-openqa_client.changes | 42 +++++++++++++++++++++++++++++++ python-openqa_client.spec | 20 ++++++++++----- 6 files changed, 61 insertions(+), 11 deletions(-) delete mode 100644 python-openqa_client-1.3.0.tar.xz create mode 100644 python-openqa_client-4.1.1.tar.xz diff --git a/_service b/_service index e01d320..553063e 100644 --- a/_service +++ b/_service @@ -4,7 +4,7 @@ @PARENT_TAG@ git://github.com/os-autoinst/openQA-python-client.git git - 1.3.0 + 4.1.1 enable diff --git a/_servicedata b/_servicedata index f62dd72..5ec2274 100644 --- a/_servicedata +++ b/_servicedata @@ -1,4 +1,4 @@ git://github.com/os-autoinst/openQA-python-client.git - 184e6c8415ef3b0667caf8f8a440007d6b98ba93 \ No newline at end of file + f227d83dd42c787579d95a03322004b283c02154 \ No newline at end of file diff --git a/python-openqa_client-1.3.0.tar.xz b/python-openqa_client-1.3.0.tar.xz deleted file mode 100644 index 592faf9..0000000 --- a/python-openqa_client-1.3.0.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:51d95a9f6a3ab47578106c57549642c598687f86c551240c716671a85d1d247a -size 12772 diff --git a/python-openqa_client-4.1.1.tar.xz b/python-openqa_client-4.1.1.tar.xz new file mode 100644 index 0000000..fd1921c --- /dev/null +++ b/python-openqa_client-4.1.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a89520ce836dbd268356c9ba951a5aadebc8f6d9655aacd5fa53d9c10be0ef7a +size 17516 diff --git a/python-openqa_client.changes b/python-openqa_client.changes index 125bcd1..b1ab21b 100644 --- a/python-openqa_client.changes +++ b/python-openqa_client.changes @@ -1,3 +1,45 @@ +------------------------------------------------------------------- +Fri Sep 04 08:49:02 UTC 2020 - mimi.vx@gmail.com + +- 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 + * setup.py: no spaces for arg assignments + * setup.py: handle long_description as per pypa sample project + * Update release script to publish to PyPI + * Fix long description for pypi + * **API**: update constants to match upstream 4d89041 + * Remove waiting state + * Add incomplete result "timeout_exceeded" + * Update job state constants for recent upstream changes + ------------------------------------------------------------------- Sat Jul 08 15:38:41 UTC 2017 - mimi.vx@gmail.com diff --git a/python-openqa_client.spec b/python-openqa_client.spec index 87e4f4c..6e98f06 100644 --- a/python-openqa_client.spec +++ b/python-openqa_client.spec @@ -1,7 +1,7 @@ # # spec file for package python-openqa_client # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -12,24 +12,29 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# 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: 1.3.0 +Version: 4.1.1 Release: 0 Summary: Python openQA client library -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Development/Languages/Python -Url: https://github.com/os-autoinst/openQA-python-client +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 -Requires: python-six BuildArch: noarch %python_subpackages @@ -46,6 +51,9 @@ This is a client for the openQA API, based on requests. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest + %files %{python_files} %doc README.md %license COPYING