packages/lang/python/python-distro/Makefile
Javier Marcet 0d4744f214 python3-distro: update to version 1.6.0
- 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 on
 GitHub.

Signed-off-by: Javier Marcet <javier@marcet.info>
2021-08-03 16:17:35 +02:00

34 lines
888 B
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=python-distro
PKG_VERSION:=1.6.0
PKG_RELEASE:=1
PYPI_NAME:=distro
PKG_HASH:=83f5e5a09f9c5f68f60173de572930effbcc0287bb84fdc4426cb4168c088424
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))