Skip to contentSkip to conversation

python-pbr: new package

PATCH New aduskett at gmail.com 2 participants 6 messages Nov 25, 2019 – Dec 25, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 python-pbr: new package

From: Adam Duskett <[email protected]>

PBR is a library that injects some useful and sensible default behaviors into a setuptools run.

---
 DEVELOPERS                         |  1 +
 package/python-pbr/python-pbr.hash |  6 ++++++
 package/python-pbr/python-pbr.mk   | 14 ++++++++++++++
 3 files changed, 21 insertions(+)
 create mode 100644 package/python-pbr/python-pbr.hash
 create mode 100644 package/python-pbr/python-pbr.mk
DEVELOPERS +1 -0
index 5837bbfab2..3149095d9e 100644
@@ -62,6 +62,7 @@ F:	package/python-daphne/
 F:	package/python-django-enumfields/
 F:	package/python-flask-sqlalchemy/
 F:	package/python-mutagen/
+F:	package/python-pbr/
 F:	package/python-pip/
 F:	package/python-psycopg2/
 F:	package/python-sqlalchemy/
package/python-pbr/python-pbr.hash new file +6 -0
new file mode 100644
index 0000000000..cca9de0178
@@ -0,0 +1,6 @@
+# md5, sha256 from https://pypi.org/pypi/pbr/json
+md5	477d2aa285ad97250a172b199f4060b7  pbr-5.4.3.tar.gz
+sha256	2c8e420cd4ed4cec4e7999ee47409e876af575d4c35a45840d59e8b5f3155ab8  pbr-5.4.3.tar.gz
+# Locally computed sha256 checksums
+sha256	5df2a0d87d6c562f0ea11c688ac52532aa28d744cabc7994ff0537f64b3b3320  LICENSE
+sha256	eb4a8c8791f6caab1cf36df26db2b6f4e2ddda52657b060ff7f02abc63910aef  pbr/tests/testpackage/LICENSE.txt
package/python-pbr/python-pbr.mk new file +14 -0
new file mode 100644
index 0000000000..70a79d1628
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-pbr
+#
+################################################################################
+
+PYTHON_PBR_VERSION = 5.4.3
+PYTHON_PBR_SOURCE = pbr-$(PYTHON_PBR_VERSION).tar.gz
+PYTHON_PBR_SITE = https://files.pythonhosted.org/packages/99/f1/7807d3409c79905a907f1c616d910c921b2a8e73c17b2969930318f44777
+PYTHON_PBR_SETUP_TYPE = setuptools
+PYTHON_PBR_LICENSE = BSD-3-Clause, Apache-2.0
+PYTHON_PBR_LICENSE_FILES = LICENSE pbr/tests/testpackage/LICENSE.txt
+
+$(eval $(host-python-package))
Signature · 1 line
2.23.0
#1 lore raw

PATCH 2/3 python-lockfile: new package

From: Adam Duskett <[email protected]>

The lockfile package exports a LockFile class which provides a simple API for locking files. Unlike the Windows msvcrt.locking function, the fcntl.lockf and flock functions, and the deprecated posixfile module, the API is identical across both Unix (including Linux and Mac) and Windows platforms.

The lock mechanism relies on the atomic nature of the link (on Unix) and mkdir (on Windows) system calls. An implementation based on SQLite is also provided, more as a demonstration of the possibilities it provides than as production-quality code.

---
 DEVELOPERS                                   |  1 +
 package/Config.in                            |  1 +
 package/python-lockfile/Config.in            | 17 +++++++++++++++++
 package/python-lockfile/python-lockfile.hash |  5 +++++
 package/python-lockfile/python-lockfile.mk   | 15 +++++++++++++++
 5 files changed, 39 insertions(+)
 create mode 100644 package/python-lockfile/Config.in
 create mode 100644 package/python-lockfile/python-lockfile.hash
 create mode 100644 package/python-lockfile/python-lockfile.mk
DEVELOPERS +1 -0
index 3149095d9e..a8363db998 100644
@@ -61,6 +61,7 @@ F:	package/python-channels-redis/
 F:	package/python-daphne/
 F:	package/python-django-enumfields/
 F:	package/python-flask-sqlalchemy/
+F:	package/python-lockfile/
 F:	package/python-mutagen/
 F:	package/python-pbr/
 F:	package/python-pip/
package/Config.in +1 -0
index c04626173d..1be1a3d71c 100644
@@ -962,6 +962,7 @@ menu "External python modules"
 	source "package/python-libconfig/Config.in"
 	source "package/python-libusb1/Config.in"
 	source "package/python-lmdb/Config.in"
+	source "package/python-lockfile/Config.in"
 	source "package/python-logbook/Config.in"
 	source "package/python-lxml/Config.in"
 	source "package/python-m2r/Config.in"
package/python-lockfile/Config.in new file +17 -0
new file mode 100644
index 0000000000..0e4a0fdd7d
@@ -0,0 +1,17 @@
+config BR2_PACKAGE_PYTHON_LOCKFILE
+	bool "python-lockfile"
+	help
+	  The lockfile package exports a LockFile class which provides a
+	  simple API for locking files. Unlike the Windows
+	  msvcrt.locking function, the fcntl.lockf and flock functions,
+	  and the deprecated posixfile module, the API is identical
+	  across both Unix (including Linux and Mac) and Windows
+	  platforms.
+
+	  The lock mechanism relies on the atomic nature of the link
+	  (on Unix) and mkdir (on Windows) system calls. An
+	  implementation based on SQLite is also provided, more as a
+	  demonstration of the possibilities it provides than as
+	  production-quality code.
+
+	  https://pypi.org/project/lockfile/
package/python-lockfile/python-lockfile.hash new file +5 -0
new file mode 100644
index 0000000000..ac1b7d2d4d
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/project/lockfile/#copy-hash-modal-3c1db9ec-dd6e-4d06-8543-91094f428ac0
+md5	a6a1a82957a23afdf44cfdd039b65ff9  lockfile-0.12.2.tar.gz
+sha256	6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799  lockfile-0.12.2.tar.gz
+# Locally computed sha256
+sha256 a26276d53dacb369641f31aa0fe37216028a0d93753f862ae206ce04f54b7b29 LICENSE
package/python-lockfile/python-lockfile.mk new file +15 -0
new file mode 100644
index 0000000000..212edcdcae
@@ -0,0 +1,15 @@
+################################################################################
+#
+# python-lockfile
+#
+################################################################################
+
+PYTHON_LOCKFILE_VERSION = 0.12.2
+PYTHON_LOCKFILE_SOURCE = lockfile-$(PYTHON_LOCKFILE_VERSION).tar.gz
+PYTHON_LOCKFILE_SITE = https://files.pythonhosted.org/packages/17/47/72cb04a58a35ec495f96984dddb48232b551aafb95bde614605b754fe6f7
+PYTHON_LOCKFILE_SETUP_TYPE = setuptools
+PYTHON_LOCKFILE_LICENSE = MIT
+PYTHON_LOCKFILE_LICENSE_FILES = LICENSE
+PYTHON_LOCKFILE_DEPENDENCIES = host-python-pbr
+
+$(eval $(python-package))
Signature · 1 line
2.23.0
#2 lore raw

PATCH 2/3 python-lockfile: new package

Quoted 16 lines · On Mon, 25 Nov 2019 11:38:49 -0800 aduskett at gmail.com wrote:

From: Adam Duskett <[email protected]>

The lockfile package exports a LockFile class which provides a simple API for locking files. Unlike the Windows msvcrt.locking function, the fcntl.lockf and flock functions, and the deprecated posixfile module, the API is identical across both Unix (including Linux and Mac) and Windows platforms.

The lock mechanism relies on the atomic nature of the link (on Unix) and mkdir (on Windows) system calls. An implementation based on SQLite is also provided, more as a demonstration of the possibilities it provides than as production-quality code.

Quoted 10 lines
---
 DEVELOPERS                                   |  1 +
 package/Config.in                            |  1 +
 package/python-lockfile/Config.in            | 17 +++++++++++++++++
 package/python-lockfile/python-lockfile.hash |  5 +++++
 package/python-lockfile/python-lockfile.mk   | 15 +++++++++++++++
 5 files changed, 39 insertions(+)
 create mode 100644 package/python-lockfile/Config.in
 create mode 100644 package/python-lockfile/python-lockfile.hash
 create mode 100644 package/python-lockfile/python-lockfile.mk

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

PATCH 3/3 package/python-daemon: select python-lockfile

In reply to aduskett at gmail.com

From: Adam Duskett <[email protected]>

python-lockfile is needed for runtime. Without it, importing python-daemon results in an import error.

---
 package/python-daemon/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/python-daemon/Config.in +1 -0
index 21f4407452..9944bb9e35 100644
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_PYTHON_DAEMON
 	bool "python-daemon"
 	select BR2_PACKAGE_PYTHON_DOCUTILS # runtime
+	select BR2_PACKAGE_PYTHON_LOCKFILE # runtime
 	help
 	  Library to implement a well-behaved Unix daemon process.
 
Signature · 1 line
2.23.0
#4 lore raw

PATCH 3/3 package/python-daemon: select python-lockfile

Quoted 9 lines · On Mon, 25 Nov 2019 11:38:50 -0800 aduskett at gmail.com wrote:

From: Adam Duskett <[email protected]>

python-lockfile is needed for runtime. Without it, importing python-daemon results in an import error.

---
 package/python-daemon/Config.in | 1 +
 1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#5 lore raw

PATCH 1/3 python-pbr: new package

In reply to aduskett at gmail.com
Quoted 6 lines · On Mon, 25 Nov 2019 11:38:48 -0800 aduskett at gmail.com wrote:

From: Adam Duskett <[email protected]>

PBR is a library that injects some useful and sensible default behaviors into a setuptools run.

Applied, with one minor change.

package/python-pbr/python-pbr.mk line 11

Quoted 5 lines
package/python-pbr/python-pbr.mk new file +5 -0
+PYTHON_PBR_VERSION = 5.4.3
+PYTHON_PBR_SOURCE = pbr-$(PYTHON_PBR_VERSION).tar.gz
+PYTHON_PBR_SITE = https://files.pythonhosted.org/packages/99/f1/7807d3409c79905a907f1c616d910c921b2a8e73c17b2969930318f44777
+PYTHON_PBR_SETUP_TYPE = setuptools
+PYTHON_PBR_LICENSE = BSD-3-Clause, Apache-2.0

Apache-2.0 is really the main license, BSD-3-Clause is only for the test stuff, if I understood correctly. So I changed to:

PYTHON_PBR_LICENSE = Apache-2.0 (module), BSD-3-Clause (test package)

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com