Skip to content

Commit

Permalink
Update python-distro to version 1.7.0 / rev 16 via SR 955104
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/955104
by user sebix + dimstar_suse
- remove shebang from distro.py
- update to version 1.7.0:
 - BACKWARD COMPATIBILITY:
 - Dropped support for EOL Pythons 2.7, 3.4 and 3.5 [[#281](python-distro/distro#281)]
 - Dropped support for LSB and `uname` back-ends when `--root-dir` is specified [[#311](python-distro/distro#311)]
 - Moved `distro.py` to `src/distro/distro.py` [[#315](python-distro/distro#315)]
 - ENHANCEMENTS:
 - Documented that `distro.version()` can return an empty string on rolling releases [[#312](python-distro/distro#312)]
 - Documented support for Python 3.10 [[#316](python-distro/distro#316)]
 - Added official support for Rocky Linux distribution [[#318](https://github.com/python-distro/distr
  • Loading branch information
sebix authored and bmwiedemann committed Feb 17, 2022
1 parent cff4cfa commit 4655422
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 3 deletions.
Binary file modified packages/p/python-distro/.files
Binary file not shown.
28 changes: 28 additions & 0 deletions packages/p/python-distro/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,32 @@
<comment>Automatic submission by obs-autosubmit</comment>
<requestid>933995</requestid>
</revision>
<revision rev="16" vrev="1">
<srcmd5>518db672e89e814b031bc29064ab3125</srcmd5>
<version>1.7.0</version>
<time>1645054216</time>
<user>dimstar_suse</user>
<comment>- remove shebang from distro.py
- update to version 1.7.0:
- BACKWARD COMPATIBILITY:
- Dropped support for EOL Pythons 2.7, 3.4 and 3.5 [[#281](https://github.com/python-distro/distro/pull/281)]
- Dropped support for LSB and `uname` back-ends when `--root-dir` is specified [[#311](https://github.com/python-distro/distro/pull/311)]
- Moved `distro.py` to `src/distro/distro.py` [[#315](https://github.com/python-distro/distro/pull/315)]
- ENHANCEMENTS:
- Documented that `distro.version()` can return an empty string on rolling releases [[#312](https://github.com/python-distro/distro/pull/312)]
- Documented support for Python 3.10 [[#316](https://github.com/python-distro/distro/pull/316)]
- Added official support for Rocky Linux distribution [[#318](https://github.com/python-distro/distro/pull/318)]
- Added a shebang to `distro.py` to allow standalone execution [[#313](https://github.com/python-distro/distro/pull/313)]
- Added support for AIX platforms [[#311](https://github.com/python-distro/distro/pull/311)]
- Added compliance for PEP-561 [[#315](https://github.com/python-distro/distro/pull/315)]
- BUG FIXES:
- Fixed `include_uname` parameter oversight [[#305](https://github.com/python-distro/distro/pull/305)]
- Fixed crash when `uname -rs` output is empty [[#304](https://github.com/python-distro/distro/pull/304)]
- Fixed Amazon Linux identifier in `distro.id()` documentation [[#318](https://github.com/python-distro/distro/pull/318)]
- Fixed OpenSuse &gt;= 15 support [[#319](https://github.com/python-distro/distro/pull/319)]
- Fixed encoding issues when opening distro release files [[#324](https://github.com/python-distro/distro/pull/324)]
- Fixed `linux_distribution` regression introduced in [[#230](https://github.com/python-distro/distro/pull/230)] [[#325](https://github.com/python-distro/distro/pull/325)]
</comment>
<requestid>955104</requestid>
</revision>
</revisionlist>
1 change: 0 additions & 1 deletion packages/p/python-distro/distro-1.6.0.tar.gz

This file was deleted.

1 change: 1 addition & 0 deletions packages/p/python-distro/distro-1.7.0.tar.gz
24 changes: 24 additions & 0 deletions packages/p/python-distro/python-distro.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
-------------------------------------------------------------------
Tue Feb 15 19:13:51 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>

- remove shebang from distro.py
- update to version 1.7.0:
- BACKWARD COMPATIBILITY:
- Dropped support for EOL Pythons 2.7, 3.4 and 3.5 [[#281](https://github.com/python-distro/distro/pull/281)]
- Dropped support for LSB and `uname` back-ends when `--root-dir` is specified [[#311](https://github.com/python-distro/distro/pull/311)]
- Moved `distro.py` to `src/distro/distro.py` [[#315](https://github.com/python-distro/distro/pull/315)]
- ENHANCEMENTS:
- Documented that `distro.version()` can return an empty string on rolling releases [[#312](https://github.com/python-distro/distro/pull/312)]
- Documented support for Python 3.10 [[#316](https://github.com/python-distro/distro/pull/316)]
- Added official support for Rocky Linux distribution [[#318](https://github.com/python-distro/distro/pull/318)]
- Added a shebang to `distro.py` to allow standalone execution [[#313](https://github.com/python-distro/distro/pull/313)]
- Added support for AIX platforms [[#311](https://github.com/python-distro/distro/pull/311)]
- Added compliance for PEP-561 [[#315](https://github.com/python-distro/distro/pull/315)]
- BUG FIXES:
- Fixed `include_uname` parameter oversight [[#305](https://github.com/python-distro/distro/pull/305)]
- Fixed crash when `uname -rs` output is empty [[#304](https://github.com/python-distro/distro/pull/304)]
- Fixed Amazon Linux identifier in `distro.id()` documentation [[#318](https://github.com/python-distro/distro/pull/318)]
- Fixed OpenSuse >= 15 support [[#319](https://github.com/python-distro/distro/pull/319)]
- Fixed encoding issues when opening distro release files [[#324](https://github.com/python-distro/distro/pull/324)]
- Fixed `linux_distribution` regression introduced in [[#230](https://github.com/python-distro/distro/pull/230)] [[#325](https://github.com/python-distro/distro/pull/325)]

-------------------------------------------------------------------
Fri Nov 19 05:31:21 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>

Expand Down
6 changes: 4 additions & 2 deletions packages/p/python-distro/python-distro.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# spec file for package python-distro
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
Expand All @@ -20,7 +20,7 @@
%{!?license: %global license %doc}
%bcond_without test
Name: python-distro
Version: 1.6.0
Version: 1.7.0
Release: 0
Summary: Linux Distribution - a Linux OS platform information API
License: Apache-2.0
Expand All @@ -47,6 +47,8 @@ It is a renewed alternative implementation for Python's original platform.linux_

%prep
%setup -q -n distro-%{version}
# remove shebang. Has been added by upstream intentionally: https://github.com/python-distro/distro/commit/8032f16a1082ff72471c13ff665f3ad9c929f3b0
sed -i '1{/\/usr\/bin\/env python/d;}' src/distro/distro.py
%patch0 -p1

%build
Expand Down

0 comments on commit 4655422

Please # to comment.