- BACKWARD COMPATIBILITY: - Dropped support for EOL Pythons 2.7, 3.4 and 3.5 - Dropped support for LSB and uname back-ends when --root-dir is specified - Moved distro.py to src/distro/distro.py - ENHANCEMENTS: - Documented that distro.version() can return an empty string on - rolling releases - Documented support for Python 3.10 - Added official support for Rocky Linux distribution - Added a shebang to distro.py to allow standalone execution - Added support for AIX platforms - Added compliance for PEP-561 - BUG FIXES: - Fixed include_uname parameter oversight - Fixed crash when uname -rs output is empty - Fixed Amazon Linux identifier in distro.id() documentation - Fixed OpenSuse >= 15 support - Fixed encoding issues when opening distro release files - Fixed linux_distribution regression Signed-off-by: Javier Marcet <javier@marcet.info>
34 lines
888 B
Makefile
34 lines
888 B
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=python-distro
|
|
PKG_VERSION:=1.7.0
|
|
PKG_RELEASE:=1
|
|
|
|
PYPI_NAME:=distro
|
|
PKG_HASH:=151aeccf60c216402932b52e40ee477a939f8d58898927378a02abbe852c1c39
|
|
|
|
PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
|
|
PKG_LICENSE:=Apache-2.0
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
include ../pypi.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../python3-package.mk
|
|
|
|
define Package/python3-distro
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
SUBMENU:=Python
|
|
TITLE:=Distro - an OS platform information API
|
|
URL:=https://github.com/python-distro/distro
|
|
DEPENDS:=+python3-light +python3-logging
|
|
endef
|
|
|
|
define Package/python3-distro/description
|
|
A much more elaborate, renewed alternative implementation for Python's
|
|
platform.linux_distribution()
|
|
endef
|
|
|
|
$(eval $(call Py3Package,python3-distro))
|
|
$(eval $(call BuildPackage,python3-distro))
|
|
$(eval $(call BuildPackage,python3-distro-src))
|