import ports/sysutils/py-distro, ok kmos@
distro provides information about the OS distribution it runs on, such as a reliable machine-readable ID, or version information. It is the recommended replacement for Python's original platform.linux_distribution function (which will be removed in Python 3.8). It also provides much more functionality which isn't necessarily Python bound, like a command-line interface.
This commit is contained in:
parent
7080c89fe7
commit
a80a83905f
22
sysutils/py-distro/Makefile
Normal file
22
sysutils/py-distro/Makefile
Normal file
@ -0,0 +1,22 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2019/09/11 21:03:51 sthen Exp $
|
||||
|
||||
COMMENT= provide information about the OS platform
|
||||
|
||||
MODPY_EGG_VERSION= 1.4.0
|
||||
DISTNAME= distro-${MODPY_EGG_VERSION}
|
||||
PKGNAME= py-${DISTNAME}
|
||||
|
||||
CATEGORIES= sysutils
|
||||
|
||||
# Apache 2.0
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
MODULES= lang/python
|
||||
MODPY_PI= Yes
|
||||
MODPY_SETUPTOOLS= Yes
|
||||
MODPY_VERSION= ${MODPY_DEFAULT_VERSION_3}
|
||||
MODPY_PYTEST= Yes
|
||||
|
||||
TEST_DEPENDS= devel/py-test-cov${MODPY_FLAVOR}
|
||||
|
||||
.include <bsd.port.mk>
|
2
sysutils/py-distro/distinfo
Normal file
2
sysutils/py-distro/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (distro-1.4.0.tar.gz) = Ni3eZdhG0juu5LXAWMhYbyGbWlS+HPX8b/VcRXg5L1c=
|
||||
SIZE (distro-1.4.0.tar.gz) = 53719
|
7
sysutils/py-distro/pkg/DESCR
Normal file
7
sysutils/py-distro/pkg/DESCR
Normal file
@ -0,0 +1,7 @@
|
||||
distro provides information about the OS distribution it runs on, such
|
||||
as a reliable machine-readable ID, or version information.
|
||||
|
||||
It is the recommended replacement for Python's original
|
||||
platform.linux_distribution function (which will be removed in Python
|
||||
3.8). It also provides much more functionality which isn't necessarily
|
||||
Python bound, like a command-line interface.
|
10
sysutils/py-distro/pkg/PLIST
Normal file
10
sysutils/py-distro/pkg/PLIST
Normal file
@ -0,0 +1,10 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2019/09/11 21:03:51 sthen Exp $
|
||||
bin/distro
|
||||
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}distro.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/distro-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
|
||||
lib/python${MODPY_VERSION}/site-packages/distro-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
|
||||
lib/python${MODPY_VERSION}/site-packages/distro-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/distro-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/distro-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/distro-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/distro.py
|
Loading…
x
Reference in New Issue
Block a user