From 2aabe0904ed6fcd662a6c5ea86b8620e27fb7bf5e7688d1912c2ed379d35ac63 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Fri, 3 Jan 2025 09:56:29 +0000 Subject: [PATCH] Accepting request 1234693 from home:ojkastl_buildservice:Branch_devel_languages_python update to 2.0.0 OBS-URL: https://build.opensuse.org/request/show/1234693 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-extra-platforms?expand=0&rev=6 --- extra_platforms-1.7.0.tar.gz | 3 --- extra_platforms-2.0.0.tar.gz | 3 +++ python-extra-platforms.changes | 23 +++++++++++++++++++++++ python-extra-platforms.spec | 6 ++++-- 4 files changed, 30 insertions(+), 5 deletions(-) delete mode 100644 extra_platforms-1.7.0.tar.gz create mode 100644 extra_platforms-2.0.0.tar.gz diff --git a/extra_platforms-1.7.0.tar.gz b/extra_platforms-1.7.0.tar.gz deleted file mode 100644 index 26bab21..0000000 --- a/extra_platforms-1.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1ceffea7b3721b937442a7961c83e0dfe1d0f43523696c4fa6c201552905e08e -size 43683 diff --git a/extra_platforms-2.0.0.tar.gz b/extra_platforms-2.0.0.tar.gz new file mode 100644 index 0000000..d81f4fe --- /dev/null +++ b/extra_platforms-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f26d83800eaa71ef70ba61e338ef0065c34e817746f15cbd35912c1315821f52 +size 47029 diff --git a/python-extra-platforms.changes b/python-extra-platforms.changes index c918805..1c7c482 100644 --- a/python-extra-platforms.changes +++ b/python-extra-platforms.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Fri Jan 3 08:46:58 UTC 2025 - Johannes Kastl + +- update to 2.0.0: + * Add support for Nobara detection. + * Fix current_os() to always return a single platform. Closes + #158. + * Add new current_platforms() method to return all platforms + matching the current environment. + * Generate a pair of Pytest @skip_/@unless_ decorators + for each platform and group. + * Change all group membership check utilities to be functions + instead of variables. You now have to call is_() + instead of is_. + * Cache the result of is_() group membership check + utilities. + * Do not call all detection heuristics on module import. Instead, + call them lazily when needed. + * Make URLs required on all platforms. + * Invite users in error messages and logs to contribute back + edge-cases to improve detection heuristics. + * Upload test results to coverage. + ------------------------------------------------------------------- Tue Dec 3 08:39:24 UTC 2024 - Johannes Kastl diff --git a/python-extra-platforms.spec b/python-extra-platforms.spec index 9ec42a3..29aad22 100644 --- a/python-extra-platforms.spec +++ b/python-extra-platforms.spec @@ -1,7 +1,7 @@ # # spec file for package python-extra-platforms # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-extra-platforms -Version: 1.7.0 +Version: 2.0.0 Release: 0 Summary: Detect platforms and group them by family License: GPL-2.0-or-later @@ -59,6 +59,8 @@ Detect platforms and group them by family # remove coverage configuration sed -i '/cov=/d' pyproject.toml sed -i '/cov-report=/d' pyproject.toml +sed -i '/--cov-branch/d' pyproject.toml +sed -i '/--cov-precision=2/d' pyproject.toml # do not run tests that try to connect to websites rm -f tests/test_platform_data.py %pytest