Sync from SUSE:ALP:Source:Standard:1.0 saltbundlepy-distro revision 69905831d019d596303e9fe12a6b44ec
This commit is contained in:
commit
4ed96286e8
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
|
7
assert_locale.patch
Normal file
7
assert_locale.patch
Normal file
@ -0,0 +1,7 @@
|
||||
--- /dev/null
|
||||
+++ b/tests/__init__.py
|
||||
@@ -0,0 +1,4 @@
|
||||
+import locale
|
||||
+enc = locale.getpreferredencoding()
|
||||
+assert enc is not None and enc.lower() != "ansi_x3.4-1968", \
|
||||
+ "Tests don't work with locale encoding set to {}".format(enc)
|
BIN
distro-1.5.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
distro-1.5.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
83
saltbundlepy-distro.changes
Normal file
83
saltbundlepy-distro.changes
Normal file
@ -0,0 +1,83 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 4 12:34:34 UTC 2022 - Victor Zhestkov <victor.zhestkov@suse.com>
|
||||
|
||||
- Strictly require Python 3.10 with saltbundlepy requrement
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 26 07:22:40 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 2 04:18:04 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 1.5.0:
|
||||
* Backward Compatibility:
|
||||
+ Keep output as native string so we can compatible with python2 interface
|
||||
* Bug Fixes:
|
||||
+ Fix detection of RHEL 6 ComputeNode [#255]
|
||||
+ Fix Oracle 4/5 lsb_release id and names [#250]
|
||||
+ Ignore /etc/plesk-release file while parsing distribution
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 10 13:29:22 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at>
|
||||
|
||||
- Update to version 1.4.0:
|
||||
* Backward Compatibility:
|
||||
* Prefer the VERSION_CODENAME field of os-release to parsing it from VERSION [[#230](https://github.com/nir0s/distro/pull/230)]
|
||||
* Bug Fixes:
|
||||
* Return _uname_info from the uname_info() method [[#233](https://github.com/nir0s/distro/pull/233)]
|
||||
* Fixed CloudLinux id discovery [[#234](https://github.com/nir0s/distro/pull/234)]
|
||||
* Update Oracle matching [[#224](https://github.com/nir0s/distro/pull/224)]
|
||||
* Docs:
|
||||
* Distro is the recommended replacement for platform.linux_distribution [[#220](https://github.com/nir0s/distro/pull/220)]
|
||||
* Release:
|
||||
* Use Markdown for long description in setup.py [[#219](https://github.com/nir0s/distro/pull/219)]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 6 17:33:38 UTC 2019 - Thomas Bechtold <tbechtold@suse.com>
|
||||
|
||||
- Drop useless BuildRequires of python-flake8 and python-pytest-cov
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 5 11:48:38 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Add assert_locale.patch to warn about wrong locale.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 13 16:52:25 UTC 2018 - mcepl@suse.com
|
||||
|
||||
- Enable tests properly (this is pytest, not unittest),
|
||||
it is necessary to explicitly set locale to an Unicode one
|
||||
(https://github.com/nir0s/distro/issues/223)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 10 09:42:51 UTC 2018 - sebix+novell.com@sebix.at
|
||||
|
||||
- update to version 1.3.0:
|
||||
* improvements for other operating systems
|
||||
* documentation:
|
||||
* Add Ansible reference implementation and fix arch-linux link (#213)
|
||||
* Add facter reference implementation (#213)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 8 19:05:22 UTC 2018 - rjschwei@suse.com
|
||||
|
||||
- Include in SLE 15 (FATE#324993, boo#997614))
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 24 19:11:15 UTC 2017 - sebix+novell.com@sebix.at
|
||||
|
||||
- update to version 1.2.0:
|
||||
* Explicitly set Python versions for flake8 tests.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 1 17:14:55 UTC 2017 - sebix+novell.com@sebix.at
|
||||
|
||||
- update to version 1.1.0 / 1.0.5:
|
||||
* Include resources needed for tests and docs in source tarballs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 22 10:23:42 UTC 2017 - sebix+novell.com@sebix.at
|
||||
|
||||
- initial package
|
88
saltbundlepy-distro.spec
Normal file
88
saltbundlepy-distro.spec
Normal file
@ -0,0 +1,88 @@
|
||||
#
|
||||
# spec file for package saltbundlepy-distro
|
||||
#
|
||||
# Copyright (c) 2021 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/
|
||||
#
|
||||
|
||||
|
||||
%{?!saltbundlepy_module:%define saltbundlepy_module() saltbundlepy-%{**}}
|
||||
%define pythons saltbundlepy
|
||||
|
||||
# Disable python bytecompile for all distros
|
||||
# It's called explicitly in the spec
|
||||
%global __brp_python_bytecompile %{nil}
|
||||
|
||||
%{!?license: %global license %doc}
|
||||
|
||||
%bcond_with test
|
||||
|
||||
Name: saltbundlepy-distro
|
||||
Version: 1.5.0
|
||||
Release: 0
|
||||
Summary: Linux Distribution - a Linux OS platform information API
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/nir0s/distro
|
||||
Source: https://files.pythonhosted.org/packages/source/d/distro/distro-%{version}.tar.gz
|
||||
Patch0: assert_locale.patch
|
||||
BuildRequires: %{saltbundlepy_module base >= 3.10}
|
||||
BuildRequires: %{saltbundlepy_module setuptools}
|
||||
BuildRequires: saltbundlepy-rpm-macros
|
||||
Requires: saltbundlepy-base
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
# SECTION test
|
||||
%if %{with test}
|
||||
BuildRequires: %{saltbundlepy_module pytest-runner}
|
||||
BuildRequires: %{saltbundlepy_module pytest}
|
||||
%endif
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
distro (for: Linux Distribution) provides information about the Linux distribution it runs on, such as a reliable machine-readable ID, or version information.
|
||||
|
||||
It is a renewed alternative implementation for Python's original platform.linux_distribution function, but it also provides much more functionality which isn't necessarily Python bound like a command-line interface.
|
||||
|
||||
%prep
|
||||
%setup -q -n distro-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/distro
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
# Explicit settings of locale is necessary gh#nir0s/distro#223
|
||||
LANG=en_US.utf8 %python_exec setup.py pytest
|
||||
%endif
|
||||
|
||||
%post
|
||||
%python_install_alternative distro
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative distro
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGELOG.md README.md
|
||||
%python_alternative %{_bindir}/distro
|
||||
%{python_sitelib}/*
|
||||
%%license LICENSE
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user