Thu Aug 5 10:09:48 2021 UTC ()
py-distro: updated to 1.6.0

1.6.0 (2021.7.30)

BACKWARDS COMPATIBILITY:
* Deprecated the `distro.linux_distribution()` function. Use
  `distro.id()`, `distro.version()` and `distro.name()` instead
* Deprecated Python 2.7, 3.4 and 3.5 support. Further releases
  will only support Python 3.6+

ENHANCEMENTS:
* Added type hints to `distro` module
* Added `__version__` for checking `distro` version
* Added support for arbitrary rootfs via the `root_dir` parameter
* Added the `--root-dir` option to CLI
* Added fallback to `/usr/lib/os-release` when `/etc/os-release` isn't available

BUG FIXES:
* Fixed `subprocess.CalledProcessError` when running `lsb_release`
* Ignore `/etc/iredmail-release` file while parsing distribution
* Use a binary file for `/dev/null` to avoid `TextIOWrapper` overhead

RELEASE:
* Moved repository from `nir0s/distro` to
  [`python-distro/distro`](https://github.com/python-distro/distro) on GitHub.


(adam)
diff -r1.4 -r1.5 pkgsrc/devel/py-distro/Makefile
diff -r1.2 -r1.3 pkgsrc/devel/py-distro/distinfo

cvs diff -r1.4 -r1.5 pkgsrc/devel/py-distro/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/py-distro/Makefile 2020/05/16 09:10:42 1.4
+++ pkgsrc/devel/py-distro/Makefile 2021/08/05 10:09:48 1.5
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.4 2020/05/16 09:10:42 adam Exp $ 1# $NetBSD: Makefile,v 1.5 2021/08/05 10:09:48 adam Exp $
2 2
3DISTNAME= distro-1.5.0 3DISTNAME= distro-1.6.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= devel python 5CATEGORIES= devel python
6MASTER_SITES= ${MASTER_SITE_PYPI:=d/distro/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=d/distro/}
7 7
8MAINTAINER= root@zta.lk 8MAINTAINER= root@zta.lk
9HOMEPAGE= https://github.com/nir0s/distro 9HOMEPAGE= https://github.com/nir0s/distro
10COMMENT= OS platform information API 10COMMENT= OS platform information API
11LICENSE= apache-2.0 11LICENSE= apache-2.0
12 12
13PYTHON_VERSIONED_DEPENDENCIES= test:test 13PYTHON_VERSIONED_DEPENDENCIES= test:test
14 14
15USE_LANGUAGES= # none 15USE_LANGUAGES= # none
16 16

cvs diff -r1.2 -r1.3 pkgsrc/devel/py-distro/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/py-distro/distinfo 2020/04/06 09:14:03 1.2
+++ pkgsrc/devel/py-distro/distinfo 2021/08/05 10:09:48 1.3
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.2 2020/04/06 09:14:03 wiz Exp $ 1$NetBSD: distinfo,v 1.3 2021/08/05 10:09:48 adam Exp $
2 2
3SHA1 (distro-1.5.0.tar.gz) = cb0e7d550a3c66c960a1914718e4f4dfe1228a19 3SHA1 (distro-1.6.0.tar.gz) = b00ad020bb53a097b7625eaa3a01e3ba65c41242
4RMD160 (distro-1.5.0.tar.gz) = 34bf3cb1216eda586f428ea71a43629119d9f27d 4RMD160 (distro-1.6.0.tar.gz) = 735d8872fcda1f3f28d8d4bda4d71fbe02d49ca5
5SHA512 (distro-1.5.0.tar.gz) = 14831fe1355e9ef4f58f273ce4a548a3fe438e95466b4b4f596b8110da51305d66ed77c2e40c3dbfbcbd1a66c74e23a4d4244c8bfdebc4b49b3e7ddcbff55b8f 5SHA512 (distro-1.6.0.tar.gz) = d30334ed1137c54ddc70e041b75be905b7e13398483d0d92117eca0407d2a7b60424d96fd7af885a2e3ea3676b1aef620e91598a53309ae0da12a360d57ac013
6Size (distro-1.5.0.tar.gz) = 54340 bytes 6Size (distro-1.6.0.tar.gz) = 53518 bytes