Skip to contentSkip to conversation

package/python-distro: new package

PATCH Applied Julien Olivain 2 participants 2 messages Jan 9, 2022 – Jan 10, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/python-distro: new package

python-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 (removed in Python 3.8). It also provides much more functionality which isn't necessarily Python bound, like a command-line interface.

https://github.com/nir0s/distro

---
 DEVELOPERS                               |  1 +
 package/Config.in                        |  1 +
 package/python-distro/Config.in          | 13 +++++++++++++
 package/python-distro/python-distro.hash |  3 +++
 package/python-distro/python-distro.mk   | 14 ++++++++++++++
 5 files changed, 32 insertions(+)
 create mode 100644 package/python-distro/Config.in
 create mode 100644 package/python-distro/python-distro.hash
 create mode 100644 package/python-distro/python-distro.mk
DEVELOPERS +1 -0
index 2ad76a80e4..a44f07be97 100644
@@ -1590,6 +1590,7 @@ F:	package/fluid-soundfont/
 F:	package/fluidsynth/
 F:	package/glslsandbox-player/
 F:	package/ptm2human/
+F:	package/python-distro/
 F:	package/python-pyalsa/
 
 N:	Julien Viard de Galbert <[email protected]>
package/Config.in +1 -0
index edae7e4f62..47087f52cb 100644
@@ -999,6 +999,7 @@ menu "External python modules"
 	source "package/python-dialog/Config.in"
 	source "package/python-dialog3/Config.in"
 	source "package/python-dicttoxml/Config.in"
+	source "package/python-distro/Config.in"
 	source "package/python-django/Config.in"
 	source "package/python-django-enumfields/Config.in"
 	source "package/python-dnspython/Config.in"
package/python-distro/Config.in new file +13 -0
new file mode 100644
index 0000000000..bb4151541e
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_PYTHON_DISTRO
+	bool "python distro"
+	help
+	  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 (removed in Python
+	  3.8). It also provides much more functionality which isn't
+	  necessarily Python bound, like a command-line interface.
+
+	  https://github.com/nir0s/distro
package/python-distro/python-distro.hash new file +3 -0
new file mode 100644
index 0000000000..e2b3c0a444
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  83f5e5a09f9c5f68f60173de572930effbcc0287bb84fdc4426cb4168c088424  distro-1.6.0.tar.gz
+sha256  cb5e8e7e5f4a3988e1063c142c60dc2df75605f4c46515e776e3aca6df976e14  LICENSE
package/python-distro/python-distro.mk new file +14 -0
new file mode 100644
index 0000000000..753e74d020
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-distro
+#
+################################################################################
+
+PYTHON_DISTRO_VERSION = 1.6.0
+PYTHON_DISTRO_SITE = https://files.pythonhosted.org/packages/a5/26/256fa167fe1bf8b97130b4609464be20331af8a3af190fb636a8a7efd7a2
+PYTHON_DISTRO_SOURCE = distro-$(PYTHON_DISTRO_VERSION).tar.gz
+PYTHON_DISTRO_LICENSE = Apache-2.0
+PYTHON_DISTRO_LICENSE_FILES = LICENSE
+PYTHON_DISTRO_SETUP_TYPE = setuptools
+
+$(eval $(python-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 11 lines · Julien Olivain

python-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 (removed in Python 3.8). It also provides much more functionality which isn't necessarily Python bound, like a command-line interface.

https://github.com/nir0s/distro

Applied to master, thanks.

Regards,
Arnout

Quoted 74 lines
---
  DEVELOPERS                               |  1 +
  package/Config.in                        |  1 +
  package/python-distro/Config.in          | 13 +++++++++++++
  package/python-distro/python-distro.hash |  3 +++
  package/python-distro/python-distro.mk   | 14 ++++++++++++++
  5 files changed, 32 insertions(+)

create mode 100644 package/python-distro/Config.in create mode 100644 package/python-distro/python-distro.hash create mode 100644 package/python-distro/python-distro.mk

DEVELOPERS +1 -0
index 2ad76a80e4..a44f07be97 100644
@@ -1590,6 +1590,7 @@ F:	package/fluid-soundfont/
  F:	package/fluidsynth/
  F:	package/glslsandbox-player/
  F:	package/ptm2human/
+F:	package/python-distro/
  F:	package/python-pyalsa/
 
  N:	Julien Viard de Galbert <[email protected]>
package/Config.in +1 -0
index edae7e4f62..47087f52cb 100644
@@ -999,6 +999,7 @@ menu "External python modules"
  	source "package/python-dialog/Config.in"
  	source "package/python-dialog3/Config.in"
  	source "package/python-dicttoxml/Config.in"
+	source "package/python-distro/Config.in"
  	source "package/python-django/Config.in"
  	source "package/python-django-enumfields/Config.in"
  	source "package/python-dnspython/Config.in"
package/python-distro/Config.in new file +13 -0
new file mode 100644
index 0000000000..bb4151541e
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_PYTHON_DISTRO
+	bool "python distro"
+	help
+	  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 (removed in Python
+	  3.8). It also provides much more functionality which isn't
+	  necessarily Python bound, like a command-line interface.
+
+	  https://github.com/nir0s/distro
package/python-distro/python-distro.hash new file +3 -0
new file mode 100644
index 0000000000..e2b3c0a444
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  83f5e5a09f9c5f68f60173de572930effbcc0287bb84fdc4426cb4168c088424  distro-1.6.0.tar.gz
+sha256  cb5e8e7e5f4a3988e1063c142c60dc2df75605f4c46515e776e3aca6df976e14  LICENSE
package/python-distro/python-distro.mk new file +4 -0
new file mode 100644
index 0000000000..753e74d020
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-distro
+#

package/python-distro/python-distro.mk line 14

Quoted 10 lines
package/python-distro/python-distro.mk new file +10 -0
+################################################################################
+
+PYTHON_DISTRO_VERSION = 1.6.0
+PYTHON_DISTRO_SITE = https://files.pythonhosted.org/packages/a5/26/256fa167fe1bf8b97130b4609464be20331af8a3af190fb636a8a7efd7a2
+PYTHON_DISTRO_SOURCE = distro-$(PYTHON_DISTRO_VERSION).tar.gz
+PYTHON_DISTRO_LICENSE = Apache-2.0
+PYTHON_DISTRO_LICENSE_FILES = LICENSE
+PYTHON_DISTRO_SETUP_TYPE = setuptools
+
+$(eval $(python-package))

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot