Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-distro for openSUSE:Factory checked in at 2023-12-28 22:54:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-distro (Old) and /work/SRC/openSUSE:Factory/.python-distro.new.28375 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-distro" Thu Dec 28 22:54:26 2023 rev:20 rq:1135231 version:1.9.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-distro/python-distro.changes 2023-09-22 21:47:25.380879734 +0200 +++ /work/SRC/openSUSE:Factory/.python-distro.new.28375/python-distro.changes 2023-12-28 22:54:29.879170525 +0100 @@ -1,0 +2,12 @@ +Wed Dec 27 09:21:33 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 1.9.0: + * Refactor distro.info() method to return an InfoDict [#360] + * Ignore the file '/etc/board-release' [#353] + * Ignore the file '/etc/ec2_version' [#359] + * Test on modern versions of CPython and PyPy and macOS [#362] + * Add support for ALT Linux Server 10.1 distribution [#354] + * Add Debian Testing to the tests [#356] + * Update archlinux resource for tests [#352] + +------------------------------------------------------------------- Old: ---- distro-1.8.0.tar.gz New: ---- distro-1.9.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-distro.spec ++++++ --- /var/tmp/diff_new_pack.H6hLxk/_old 2023-12-28 22:54:30.459191698 +0100 +++ /var/tmp/diff_new_pack.H6hLxk/_new 2023-12-28 22:54:30.459191698 +0100 @@ -20,7 +20,7 @@ %{!?license: %global license %doc} %bcond_without test Name: python-distro -Version: 1.8.0 +Version: 1.9.0 Release: 0 Summary: Linux Distribution - a Linux OS platform information API License: Apache-2.0 ++++++ distro-1.8.0.tar.gz -> distro-1.9.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/CHANGELOG.md new/distro-1.9.0/CHANGELOG.md --- old/distro-1.8.0/CHANGELOG.md 2022-10-10 17:29:59.000000000 +0200 +++ new/distro-1.9.0/CHANGELOG.md 2023-12-24 10:54:10.000000000 +0100 @@ -1,3 +1,19 @@ +## 1.9.0 (2023.12.19) + +ENHANCEMENTS: +* Refactor distro.info() method to return an InfoDict [[#360](https://github.com/python-distro/distro/pull/360)] +* Ignore the file '/etc/board-release' [[#353](https://github.com/python-distro/distro/pull/353)] +* Ignore the file '/etc/ec2_version' [[#359](https://github.com/python-distro/distro/pull/353)] + +RELEASE: +* Run Python 3.6 on Ubuntu 20.04 for CI and bump isort [[#355](https://github.com/python-distro/distro/pull/355)] + +TESTS: +* Test on modern versions of CPython and PyPy and macOS [[#362](https://github.com/python-distro/distro/pull/362)] +* Add support for ALT Linux Server 10.1 distribution [[#354](https://github.com/python-distro/distro/pull/354)] +* Add Debian Testing to the tests [[#356](https://github.com/python-distro/distro/pull/356)] +* Update archlinux resource for tests [[#352](https://github.com/python-distro/distro/pull/352)] + ## 1.8.0 (2022.10.10) BACKWARD COMPATIBILITY: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/CONTRIBUTORS.md new/distro-1.9.0/CONTRIBUTORS.md --- old/distro-1.8.0/CONTRIBUTORS.md 2022-10-10 17:29:59.000000000 +0200 +++ new/distro-1.9.0/CONTRIBUTORS.md 2023-12-24 10:54:10.000000000 +0100 @@ -1,14 +1,3 @@ -Thanks! +We thank anyone who has contributed to this project, and welcome anyone to contribute further. -* https://github.com/andy-maier -* https://github.com/SethMichaelLarson -* https://github.com/asottile -* https://github.com/MartijnBraam -* https://github.com/funkyfuture -* https://github.com/adamjstewart -* https://github.com/xavfernandez -* https://github.com/xsuchy -* https://github.com/marcoceppi -* https://github.com/tgamblin -* https://github.com/sebix -* https://github.com/jdufresne +For a list of contributors, please see https://github.com/python-distro/distro/graphs/contributors \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/Makefile new/distro-1.9.0/Makefile --- old/distro-1.8.0/Makefile 2022-10-10 17:29:59.000000000 +0200 +++ new/distro-1.9.0/Makefile 2023-12-24 10:54:10.000000000 +0100 @@ -1,4 +1,4 @@ -# Copyright 2015,2016 Nir Cohen +# Copyright 2015-2021 Nir Cohen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -43,7 +43,7 @@ .PHONY: test test: - pip install 'tox>=1.7.2' + pip install 'tox>=1.9.0' tox @echo "$@ done." diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/PKG-INFO new/distro-1.9.0/PKG-INFO --- old/distro-1.8.0/PKG-INFO 2022-10-10 17:30:16.597277400 +0200 +++ new/distro-1.9.0/PKG-INFO 2023-12-24 10:54:22.951275300 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: distro -Version: 1.8.0 +Version: 1.9.0 Summary: Distro - an OS platform information API Home-page: https://github.com/python-distro/distro Author: Nir Cohen @@ -23,6 +23,8 @@ Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 Classifier: Topic :: Software Development :: Libraries :: Python Modules Classifier: Topic :: System :: Operating System Requires-Python: >=3.6 @@ -38,7 +40,6 @@ [](https://codecov.io/github/python-distro/distro?branch=master) [](https://pypi.python.org/pypi/distro) [](http://distro.readthedocs.io/en/latest/) -[](https://gitter.im/python-distro/distro?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) `distro` provides information about the OS distribution it runs on, such as a reliable machine-readable ID, or diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/README.md new/distro-1.9.0/README.md --- old/distro-1.8.0/README.md 2022-10-10 17:29:59.000000000 +0200 +++ new/distro-1.9.0/README.md 2023-12-24 10:54:10.000000000 +0100 @@ -7,7 +7,6 @@ [](https://codecov.io/github/python-distro/distro?branch=master) [](https://pypi.python.org/pypi/distro) [](http://distro.readthedocs.io/en/latest/) -[](https://gitter.im/python-distro/distro?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) `distro` provides information about the OS distribution it runs on, such as a reliable machine-readable ID, or diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/dev-requirements.txt new/distro-1.9.0/dev-requirements.txt --- old/distro-1.8.0/dev-requirements.txt 2022-10-10 17:29:59.000000000 +0200 +++ new/distro-1.9.0/dev-requirements.txt 2023-12-24 10:54:10.000000000 +0100 @@ -4,3 +4,4 @@ pre-commit==2.13.0; python_version > '3.5' black; python_version > '3.5' and platform_python_implementation != 'PyPy' mypy; python_version > '3.5' and platform_python_implementation != 'PyPy' +build \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/setup.cfg new/distro-1.9.0/setup.cfg --- old/distro-1.8.0/setup.cfg 2022-10-10 17:30:16.601277400 +0200 +++ new/distro-1.9.0/setup.cfg 2023-12-24 10:54:22.951275300 +0100 @@ -26,6 +26,8 @@ Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 + Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Topic :: Software Development :: Libraries :: Python Modules Topic :: System :: Operating System diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/src/distro/distro.py new/distro-1.9.0/src/distro/distro.py --- old/distro-1.8.0/src/distro/distro.py 2022-10-10 17:29:59.000000000 +0200 +++ new/distro-1.9.0/src/distro/distro.py 2023-12-24 10:54:10.000000000 +0100 @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright 2015,2016,2017 Nir Cohen +# Copyright 2015-2021 Nir Cohen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -55,7 +55,7 @@ # Python 3.7 TypedDict = dict -__version__ = "1.8.0" +__version__ = "1.9.0" class VersionDict(TypedDict): @@ -125,6 +125,7 @@ # Base file names to be looked up for if _UNIXCONFDIR is not readable. _DISTRO_RELEASE_BASENAMES = [ "SuSE-release", + "altlinux-release", "arch-release", "base-release", "centos-release", @@ -151,6 +152,8 @@ "system-release", "plesk-release", "iredmail-release", + "board-release", + "ec2_version", ) @@ -243,6 +246,7 @@ "rocky" Rocky Linux "aix" AIX "guix" Guix System + "altlinux" ALT Linux ============== ========================================= If you have a need to get distros for reliable IDs added into this set, @@ -991,10 +995,10 @@ For details, see :func:`distro.info`. """ - return dict( + return InfoDict( id=self.id(), version=self.version(pretty, best), - version_parts=dict( + version_parts=VersionDict( major=self.major_version(best), minor=self.minor_version(best), build_number=self.build_number(best), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/src/distro.egg-info/PKG-INFO new/distro-1.9.0/src/distro.egg-info/PKG-INFO --- old/distro-1.8.0/src/distro.egg-info/PKG-INFO 2022-10-10 17:30:16.000000000 +0200 +++ new/distro-1.9.0/src/distro.egg-info/PKG-INFO 2023-12-24 10:54:22.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: distro -Version: 1.8.0 +Version: 1.9.0 Summary: Distro - an OS platform information API Home-page: https://github.com/python-distro/distro Author: Nir Cohen @@ -23,6 +23,8 @@ Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 Classifier: Topic :: Software Development :: Libraries :: Python Modules Classifier: Topic :: System :: Operating System Requires-Python: >=3.6 @@ -38,7 +40,6 @@ [](https://codecov.io/github/python-distro/distro?branch=master) [](https://pypi.python.org/pypi/distro) [](http://distro.readthedocs.io/en/latest/) -[](https://gitter.im/python-distro/distro?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) `distro` provides information about the OS distribution it runs on, such as a reliable machine-readable ID, or diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/src/distro.egg-info/SOURCES.txt new/distro-1.9.0/src/distro.egg-info/SOURCES.txt --- old/distro-1.8.0/src/distro.egg-info/SOURCES.txt 2022-10-10 17:30:16.000000000 +0200 +++ new/distro-1.9.0/src/distro.egg-info/SOURCES.txt 2023-12-24 10:54:22.000000000 +0100 @@ -29,12 +29,20 @@ tests/resources/distros/__shared__/bin/lsb_release tests/resources/distros/aix72/bin/oslevel tests/resources/distros/aix72/bin/uname +tests/resources/distros/altlinux10/etc/altlinux-release +tests/resources/distros/altlinux10/etc/fedora-release +tests/resources/distros/altlinux10/etc/os-release +tests/resources/distros/altlinux10/etc/redhat-release +tests/resources/distros/altlinux10/etc/system-release tests/resources/distros/amazon2014/etc/system-release tests/resources/distros/amazon2016/etc/os-release tests/resources/distros/amazon2016/etc/system-release tests/resources/distros/arch/etc/arch-release tests/resources/distros/arch/etc/os-release tests/resources/distros/arch/usr/lib/os-release +tests/resources/distros/bttcb1/etc/board-release +tests/resources/distros/bttcb1/etc/os-release +tests/resources/distros/bttcb1/usr/lib/os-release tests/resources/distros/buildroot/etc/os-release tests/resources/distros/centos5/etc/centos-release tests/resources/distros/centos5/etc/redhat-release @@ -55,6 +63,9 @@ tests/resources/distros/debian8/bin/lsb_release tests/resources/distros/debian8/etc/debian_version tests/resources/distros/debian8/etc/os-release +tests/resources/distros/debiantesting/bin/lsb_release +tests/resources/distros/debiantesting/etc/debian_version +tests/resources/distros/debiantesting/etc/os-release tests/resources/distros/exherbo/etc/os-release tests/resources/distros/fedora19/etc/fedora-release tests/resources/distros/fedora19/etc/issue diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/tests/resources/distros/altlinux10/etc/altlinux-release new/distro-1.9.0/tests/resources/distros/altlinux10/etc/altlinux-release --- old/distro-1.8.0/tests/resources/distros/altlinux10/etc/altlinux-release 1970-01-01 01:00:00.000000000 +0100 +++ new/distro-1.9.0/tests/resources/distros/altlinux10/etc/altlinux-release 2023-12-24 10:54:10.000000000 +0100 @@ -0,0 +1 @@ +ALT Server 10.1 (Mendelevium) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/tests/resources/distros/altlinux10/etc/fedora-release new/distro-1.9.0/tests/resources/distros/altlinux10/etc/fedora-release --- old/distro-1.8.0/tests/resources/distros/altlinux10/etc/fedora-release 1970-01-01 01:00:00.000000000 +0100 +++ new/distro-1.9.0/tests/resources/distros/altlinux10/etc/fedora-release 2023-12-24 10:54:10.000000000 +0100 @@ -0,0 +1 @@ +ALT Server 10.1 (Mendelevium) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/tests/resources/distros/altlinux10/etc/os-release new/distro-1.9.0/tests/resources/distros/altlinux10/etc/os-release --- old/distro-1.8.0/tests/resources/distros/altlinux10/etc/os-release 1970-01-01 01:00:00.000000000 +0100 +++ new/distro-1.9.0/tests/resources/distros/altlinux10/etc/os-release 2023-12-24 10:54:10.000000000 +0100 @@ -0,0 +1,10 @@ +NAME="ALT Server" +VERSION="10.1" +ID=altlinux +VERSION_ID=10.1 +PRETTY_NAME="ALT Server 10.1 (Mendelevium)" +ANSI_COLOR="1;33" +CPE_NAME="cpe:/o:alt:server:10.1" +BUILD_ID="ALT Server 10.1" +HOME_URL="https://basealt.ru/" +BUG_REPORT_URL="https://bugs.altlinux.org/" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/tests/resources/distros/altlinux10/etc/redhat-release new/distro-1.9.0/tests/resources/distros/altlinux10/etc/redhat-release --- old/distro-1.8.0/tests/resources/distros/altlinux10/etc/redhat-release 1970-01-01 01:00:00.000000000 +0100 +++ new/distro-1.9.0/tests/resources/distros/altlinux10/etc/redhat-release 2023-12-24 10:54:10.000000000 +0100 @@ -0,0 +1 @@ +ALT Server 10.1 (Mendelevium) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/tests/resources/distros/altlinux10/etc/system-release new/distro-1.9.0/tests/resources/distros/altlinux10/etc/system-release --- old/distro-1.8.0/tests/resources/distros/altlinux10/etc/system-release 1970-01-01 01:00:00.000000000 +0100 +++ new/distro-1.9.0/tests/resources/distros/altlinux10/etc/system-release 2023-12-24 10:54:10.000000000 +0100 @@ -0,0 +1 @@ +ALT Server 10.1 (Mendelevium) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/tests/resources/distros/arch/etc/os-release new/distro-1.9.0/tests/resources/distros/arch/etc/os-release --- old/distro-1.8.0/tests/resources/distros/arch/etc/os-release 2022-10-10 17:29:59.000000000 +0200 +++ new/distro-1.9.0/tests/resources/distros/arch/etc/os-release 2023-12-24 10:54:10.000000000 +0100 @@ -1,7 +1,11 @@ NAME="Arch Linux" -ID=arch PRETTY_NAME="Arch Linux" -ANSI_COLOR="0;36" -HOME_URL="https://www.archlinux.org/" +ID=arch +BUILD_ID=rolling +ANSI_COLOR="38;2;23;147;209" +HOME_URL="https://archlinux.org/" +DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://bugs.archlinux.org/" +PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" +LOGO=archlinux-logo diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/tests/resources/distros/arch/usr/lib/os-release new/distro-1.9.0/tests/resources/distros/arch/usr/lib/os-release --- old/distro-1.8.0/tests/resources/distros/arch/usr/lib/os-release 2022-10-10 17:29:59.000000000 +0200 +++ new/distro-1.9.0/tests/resources/distros/arch/usr/lib/os-release 2023-12-24 10:54:10.000000000 +0100 @@ -1,7 +1,11 @@ NAME="Arch Linux" -ID=arch PRETTY_NAME="Arch Linux" -ANSI_COLOR="0;36" -HOME_URL="https://www.archlinux.org/" +ID=arch +BUILD_ID=rolling +ANSI_COLOR="38;2;23;147;209" +HOME_URL="https://archlinux.org/" +DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://bugs.archlinux.org/" +PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" +LOGO=archlinux-logo diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/tests/resources/distros/bttcb1/etc/board-release new/distro-1.9.0/tests/resources/distros/bttcb1/etc/board-release --- old/distro-1.8.0/tests/resources/distros/bttcb1/etc/board-release 1970-01-01 01:00:00.000000000 +0100 +++ new/distro-1.9.0/tests/resources/distros/bttcb1/etc/board-release 2023-12-24 10:54:10.000000000 +0100 @@ -0,0 +1,9 @@ +# PLEASE DO NOT EDIT THIS FILE +BOARD=h616 +BOARD_NAME="BTT-CB1" +DISTRIBUTION_CODENAME=bullseye +VERSION=2.3.1 +LINUXFAMILY=sun50iw9 +ARCH=arm64 +INITRD_ARCH=arm64 +BRANCH=current \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/tests/resources/distros/bttcb1/etc/os-release new/distro-1.9.0/tests/resources/distros/bttcb1/etc/os-release --- old/distro-1.8.0/tests/resources/distros/bttcb1/etc/os-release 1970-01-01 01:00:00.000000000 +0100 +++ new/distro-1.9.0/tests/resources/distros/bttcb1/etc/os-release 2023-12-24 10:54:10.000000000 +0100 @@ -0,0 +1,9 @@ +PRETTY_NAME="BTT-CB1 2.3.1 Bullseye" +NAME="Debian GNU/Linux" +VERSION_ID="11" +VERSION="11 (bullseye)" +VERSION_CODENAME=bullseye +ID=debian +HOME_URL="https://www.debian.org/" +SUPPORT_URL="https://www.debian.org/support" +BUG_REPORT_URL="https://bugs.debian.org/" \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/tests/resources/distros/bttcb1/usr/lib/os-release new/distro-1.9.0/tests/resources/distros/bttcb1/usr/lib/os-release --- old/distro-1.8.0/tests/resources/distros/bttcb1/usr/lib/os-release 1970-01-01 01:00:00.000000000 +0100 +++ new/distro-1.9.0/tests/resources/distros/bttcb1/usr/lib/os-release 2023-12-24 10:54:10.000000000 +0100 @@ -0,0 +1,9 @@ +PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" +NAME="Debian GNU/Linux" +VERSION_ID="11" +VERSION="11 (bullseye)" +VERSION_CODENAME=bullseye +ID=debian +HOME_URL="https://www.debian.org/" +SUPPORT_URL="https://www.debian.org/support" +BUG_REPORT_URL="https://bugs.debian.org/" \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/tests/resources/distros/debiantesting/bin/lsb_release new/distro-1.9.0/tests/resources/distros/debiantesting/bin/lsb_release --- old/distro-1.8.0/tests/resources/distros/debiantesting/bin/lsb_release 1970-01-01 01:00:00.000000000 +0100 +++ new/distro-1.9.0/tests/resources/distros/debiantesting/bin/lsb_release 2023-12-24 10:54:10.000000000 +0100 @@ -0,0 +1,23 @@ +#!/bin/bash +# +# lsb_release command for testing the ld module. +# Only the -a option is supported. +# +# This version of the lsb_release command works without a corresponding +# etc/lsb-release file. +# + +if [[ "$@" != "-a" ]]; then + echo "Usage: lsb_release -a" + exit 2 +fi + +cat <<OUT +No LSB modules are available. +Distributor ID: Debian +Description: Debian GNU/Linux bookworm/sid +Release: n/a +Codename: bookworm +OUT + +exit 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/tests/resources/distros/debiantesting/etc/debian_version new/distro-1.9.0/tests/resources/distros/debiantesting/etc/debian_version --- old/distro-1.8.0/tests/resources/distros/debiantesting/etc/debian_version 1970-01-01 01:00:00.000000000 +0100 +++ new/distro-1.9.0/tests/resources/distros/debiantesting/etc/debian_version 2023-12-24 10:54:10.000000000 +0100 @@ -0,0 +1 @@ +bookworm/sid diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/tests/resources/distros/debiantesting/etc/os-release new/distro-1.9.0/tests/resources/distros/debiantesting/etc/os-release --- old/distro-1.8.0/tests/resources/distros/debiantesting/etc/os-release 1970-01-01 01:00:00.000000000 +0100 +++ new/distro-1.9.0/tests/resources/distros/debiantesting/etc/os-release 2023-12-24 10:54:10.000000000 +0100 @@ -0,0 +1,7 @@ +PRETTY_NAME="Debian GNU/Linux bookworm/sid" +NAME="Debian GNU/Linux" +VERSION_CODENAME=bookworm +ID=debian +HOME_URL="https://www.debian.org/" +SUPPORT_URL="https://www.debian.org/support" +BUG_REPORT_URL="https://bugs.debian.org/" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/distro-1.8.0/tests/test_distro.py new/distro-1.9.0/tests/test_distro.py --- old/distro-1.8.0/tests/test_distro.py 2022-10-10 17:29:59.000000000 +0200 +++ new/distro-1.9.0/tests/test_distro.py 2023-12-24 10:54:10.000000000 +0100 @@ -233,6 +233,18 @@ } self._test_outcome(desired_outcome) + def test_debiantesting_os_release(self) -> None: + desired_outcome = { + "id": "debian", + "name": "Debian GNU/Linux", + "pretty_name": "Debian GNU/Linux bookworm/sid", + "version": "bookworm/sid", + "pretty_version": "bookworm/sid (bookworm)", + "best_version": "bookworm/sid", + "codename": "bookworm", + } + self._test_outcome(desired_outcome) + def test_fedora19_os_release(self) -> None: desired_outcome = { "id": "fedora", @@ -509,6 +521,34 @@ } self._test_outcome(desired_outcome) + def test_altlinux10_os_release(self) -> None: + desired_outcome = { + "id": "altlinux", + "name": "ALT Server", + "pretty_name": "ALT Server 10.1 (Mendelevium)", + "version": "10.1", + "pretty_version": "10.1", + "best_version": "10.1", + "major_version": "10", + "minor_version": "1", + } + self._test_outcome(desired_outcome) + + def test_bttcb1_os_release(self) -> None: + desired_outcome = { + "id": "debian", + "codename": "bullseye", + "name": "Debian GNU/Linux", + "pretty_name": "BTT-CB1 2.3.1 Bullseye", + "like": "", + "version": "11", + "pretty_version": "11 (bullseye)", + "best_version": "11", + "major_version": "11", + "minor_version": "0", + } + self._test_outcome(desired_outcome) + class TestWithRootDir(TestOSRelease): """Test that a LinuxDistribution can be created using an arbitrary root_dir @@ -1080,6 +1120,20 @@ } self._test_outcome(desired_outcome, "cloudlinux", "7", "redhat") + def test_altlinux10_dist_release(self) -> None: + desired_outcome = { + "id": "altlinux", + "name": "ALT Server", + "codename": "Mendelevium", + "pretty_name": "ALT Server 10.1 (Mendelevium)", + "version": "10.1", + "pretty_version": "10.1 (Mendelevium)", + "best_version": "10.1", + "major_version": "10", + "minor_version": "1", + } + self._test_outcome(desired_outcome, "altlinux", "10") + @pytest.mark.skipif(not IS_LINUX, reason="Irrelevant on non-linux") class TestOverall(DistroTestCase): @@ -1255,6 +1309,20 @@ self._test_outcome(desired_outcome) self._test_non_existing_release_file() + def test_debiantesting_release(self) -> None: + desired_outcome = { + "id": "debian", + "name": "Debian GNU/Linux", + "pretty_name": "Debian GNU/Linux bookworm/sid", + "version": "bookworm/sid", + "pretty_version": "bookworm/sid (bookworm)", + "best_version": "bookworm/sid", + "codename": "bookworm", + "major_version": "", + } + self._test_outcome(desired_outcome) + self._test_non_existing_release_file() + def test_exherbo_release(self) -> None: desired_outcome = { "id": "exherbo", @@ -1829,6 +1897,28 @@ } self._test_outcome(desired_outcome) + def test_altlinux10_release(self) -> None: + desired_outcome = { + "id": "altlinux", + "name": "ALT Server", + "codename": "Mendelevium", + "pretty_name": "ALT Server 10.1 (Mendelevium)", + "version": "10.1", + "pretty_version": "10.1 (Mendelevium)", + "best_version": "10.1", + "major_version": "10", + "minor_version": "1", + } + self._test_outcome(desired_outcome) + + desired_info = { + "id": "altlinux", + "name": "ALT Server", + "version_id": "10.1", + "codename": "Mendelevium", + } + self._test_release_file_info("altlinux-release", desired_info) + def _bad_os_listdir(path: str = ".") -> NoReturn: """This function is used by TestOverallWithEtcNotReadable to simulate