Skip to contentSkip to conversation

python-pytest: fix egg version of package

PATCH New Armin Kuster 1 participant 2 messages Oct 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python-pytest: fix egg version of package

commit "python-pytest: remove fetch during do_compile phase"
removed the ability of the package to version it self correctly. The version ended up as 0.0.0 which causes runtime version checking.

This fixed that issues.

---
 .../recipes-devtools/python/python-pytest.inc      |  3 +-
 .../python/python-pytest/pytest_version_fix.patch  | 51 ++++++++++++++++++++++
 2 files changed, 53 insertions(+), 1 deletion(-)
 create mode 100644 meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patch
meta-python/recipes-devtools/python/python-pytest.inc +2 -1
index ae1d81d..6140250 100644
@@ -6,7 +6,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c39b24965f4aef64222cb35de9d47cc4"
 SRC_URI[md5sum] = "401c005bd57f71e63ba015ab086fe67d"
 SRC_URI[sha256sum] = "f46e49e0340a532764991c498244a60e3a37d7424a532b3ff1a6a7653f1a403a"
 
-SRC_URI_append = " file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch"
+SRC_URI_append = " file://0001-setup.py-remove-the-setup_requires-for-setuptools-scm.patch \
+                   file://pytest_version_fix.patch "
 
 RDEPENDS_${PN}_class-target += " \
     ${PYTHON_PN}-argparse \
meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patch new file +51 -0

51 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 python-asn1crypto: add new package

python-cryptography has a dependancy for this package as of version 1.8. This was pointed out by: Satya Bodduluri.

---
 meta-python/recipes-devtools/python/python-asn1crypto.inc    | 12 ++++++++++++
 .../recipes-devtools/python/python-asn1crypto_0.23.0.bb      |  2 ++
 2 files changed, 14 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-asn1crypto.inc
 create mode 100644 meta-python/recipes-devtools/python/python-asn1crypto_0.23.0.bb
meta-python/recipes-devtools/python/python-asn1crypto.inc new file +12 -0
new file mode 100644
index 0000000..3bdb4b2
@@ -0,0 +1,12 @@
+DESCRIPTION = "Python binding to the Networking and Cryptography (NaCl) library"
+HOMEPAGE = "https://github.com/pyca/pynacl"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=52010cd3c7d7bd965b55721ef4d93ec2"
+
+PYPI_PACKAGE = "asn1crypto"
+
+SRC_URI[md5sum] = "97d54665c397b72b165768398dfdd876"
+SRC_URI[sha256sum] = "0874981329cfebb366d6584c3d16e913f2a0eb026c9463efcc4aaf42a9d94d70"
+
+inherit pypi
meta-python/recipes-devtools/python/python-asn1crypto_0.23.0.bb new file +2 -0
new file mode 100644
index 0000000..6af60c2
@@ -0,0 +1,2 @@
+inherit setuptools
+require python-asn1crypto.inc
Signature · 1 line
2.7.4