update to 2.1.0
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-extra-platforms?expand=0&rev=8
This commit is contained in:
commit
c9f4436144
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
extra_platforms-1.7.0.tar.gz
Normal file
3
extra_platforms-1.7.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1ceffea7b3721b937442a7961c83e0dfe1d0f43523696c4fa6c201552905e08e
|
||||
size 43683
|
3
extra_platforms-2.0.0.tar.gz
Normal file
3
extra_platforms-2.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f26d83800eaa71ef70ba61e338ef0065c34e817746f15cbd35912c1315821f52
|
||||
size 47029
|
3
extra_platforms-2.1.0.tar.gz
Normal file
3
extra_platforms-2.1.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6dda2f806a255c98702291220716becf08a00d3754c1422460f4ff9f724744a9
|
||||
size 47724
|
56
python-extra-platforms.changes
Normal file
56
python-extra-platforms.changes
Normal file
@ -0,0 +1,56 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 20 18:31:07 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||
|
||||
- update to 2.1.0:
|
||||
* Add new platforms_from_ids and groups_from_ids methods to
|
||||
retrieve platforms and groups from a collection of IDs.
|
||||
* Allow a platform to be fetched by its ID from a group with the
|
||||
group[platform_id] item getter syntax.
|
||||
* Add new ALL_PLATFORM_IDS, ALL_GROUP_IDS and ALL_IDS constants.
|
||||
* Removes ALL_OS_LABELS.
|
||||
* Add windows-2025 to the test matrix.
|
||||
* Mark Python 3.14 tests as stable.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 3 08:46:58 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||
|
||||
- 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_<id>/@unless_<id> decorators
|
||||
for each platform and group.
|
||||
* Change all group membership check utilities to be functions
|
||||
instead of variables. You now have to call is_<group_id>()
|
||||
instead of is_<group_id>.
|
||||
* Cache the result of is_<group_id>() 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 <opensuse_buildservice@ojkastl.de>
|
||||
|
||||
- update to 1.7.0:
|
||||
* Display the hierarchy of non-overlapping groups as a mindmap.
|
||||
* Add URL on all platforms.
|
||||
* Add support for openSUSE Tumbleweed detection. Closes #133.
|
||||
* Do not allow icons on platforms and groups to be empty.
|
||||
* Run tests in parallel to speed up CI.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 28 10:31:10 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||
|
||||
- enable builds for python3.13
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 20 13:47:55 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||
|
||||
- new package python-extra-platforms, required by
|
||||
python-click-extra
|
72
python-extra-platforms.spec
Normal file
72
python-extra-platforms.spec
Normal file
@ -0,0 +1,72 @@
|
||||
#
|
||||
# spec file for package python-extra-platforms
|
||||
#
|
||||
# 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
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-extra-platforms
|
||||
Version: 2.1.0
|
||||
Release: 0
|
||||
Summary: Detect platforms and group them by family
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://github.com/kdeldycke/extra-platforms
|
||||
Source: https://files.pythonhosted.org/packages/source/e/extra-platforms/extra_platforms-%{version}.tar.gz
|
||||
BuildRequires: %{python_module boltons >= 24.1.0}
|
||||
BuildRequires: %{python_module distro >= 1.9.0}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest >= 8.3.1}
|
||||
BuildRequires: %{python_module pytest-randomly >= 3.16.0}
|
||||
BuildRequires: %{python_module pytest-xdist >= 3.6.1}
|
||||
BuildRequires: %{python_module requests >= 2.32.3 with %python-requests < 2.33}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
Requires: python-boltons >= 25.0.0
|
||||
Requires: python-distro >= 1.9.0
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Detect platforms and group them by family
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n extra_platforms-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# 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
|
||||
|
||||
%files %{python_files}
|
||||
%{python_sitelib}/extra_platforms
|
||||
%{python_sitelib}/extra_platforms-%{version}.dist-info
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user