[oe] [meta-python][PATCH 2/2] python-asn1crypto: add new package

2017-10-06 Thread Armin Kuster
python-cryptography has a dependancy for this package as of version 1.8.
This was pointed out by: Satya Bodduluri.

Signed-off-by: Armin Kuster 
---
 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

diff --git a/meta-python/recipes-devtools/python/python-asn1crypto.inc 
b/meta-python/recipes-devtools/python/python-asn1crypto.inc
new file mode 100644
index 000..3bdb4b2
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-asn1crypto.inc
@@ -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
diff --git a/meta-python/recipes-devtools/python/python-asn1crypto_0.23.0.bb 
b/meta-python/recipes-devtools/python/python-asn1crypto_0.23.0.bb
new file mode 100644
index 000..6af60c2
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-asn1crypto_0.23.0.bb
@@ -0,0 +1,2 @@
+inherit setuptools
+require python-asn1crypto.inc
-- 
2.7.4

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-python][PATCH 1/2] python-pytest: fix egg version of package

2017-10-06 Thread Armin Kuster
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.

Signed-off-by: Armin Kuster 
---
 .../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

diff --git a/meta-python/recipes-devtools/python/python-pytest.inc 
b/meta-python/recipes-devtools/python/python-pytest.inc
index ae1d81d..6140250 100644
--- a/meta-python/recipes-devtools/python/python-pytest.inc
+++ b/meta-python/recipes-devtools/python/python-pytest.inc
@@ -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 \
diff --git 
a/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patch 
b/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patch
new file mode 100644
index 000..908f862
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-pytest/pytest_version_fix.patch
@@ -0,0 +1,51 @@
+Upstream-Status: Inappropriate (OE specific) 
+
+python-pytest: remove fetch during do_compile phase
+commit: c974fbf9ebf185552ab65301e07af44f36517abf 
+
+introduced an issue by making the version 0.0.0
+this fixes that
+
+Signed-off-by: Armin Kuster 
+
+Index: pytest-3.2.2/setup.py
+===
+--- pytest-3.2.2.orig/setup.py
 pytest-3.2.2/setup.py
+@@ -1,5 +1,6 @@
+ import os
+ import sys
++import re
+ import setuptools
+ import pkg_resources
+ from setuptools import setup, Command
+@@ -22,6 +23,18 @@ classifiers = [
+ with open('README.rst') as fd:
+ long_description = fd.read()
+ 
++def read(*names, **kwargs):
++with open(os.path.join( *names), 'r') as fp:
++return fp.read()
++
++def find_version(*file_paths):
++version_file = read(*file_paths)
++version_match = re.search(r"^version = ['\']([^'\"]*)['\']",
++  version_file, re.M)
++
++if version_match:
++return version_match.group(1)
++raise RuntimeError("Unable to find version string.")
+ 
+ def has_environment_marker_support():
+ """
+@@ -59,9 +72,7 @@ def main():
+ name='pytest',
+ description='pytest: simple powerful testing with Python',
+ long_description=long_description,
+-use_scm_version={
+-'write_to': '_pytest/_version.py',
+-},
++  version=find_version("_pytest", "_version.py"),
+ url='http://pytest.org',
+ license='MIT license',
+ platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],
-- 
2.7.4

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-oe][PATCH] rocksdb: add version 5.8

2017-10-06 Thread Khem Raj
On Fri, Oct 6, 2017 at 4:31 AM, Pascal Bach  wrote:
> Version 5.8 does no longer includes the facebook patent grant and is
> licensed under the Apache-2.0 license.
>

I see leveldb as well as GPL-2.0 licence file in repo. Are they not used

> Signed-off-by: Pascal Bach 
> ---
>  meta-oe/recipes-extended/rocksdb/rocksdb_git.bb | 26 
> +
>  1 file changed, 26 insertions(+)
>  create mode 100644 meta-oe/recipes-extended/rocksdb/rocksdb_git.bb
>
> diff --git a/meta-oe/recipes-extended/rocksdb/rocksdb_git.bb 
> b/meta-oe/recipes-extended/rocksdb/rocksdb_git.bb
> new file mode 100644
> index 000..a4fbf34
> --- /dev/null
> +++ b/meta-oe/recipes-extended/rocksdb/rocksdb_git.bb
> @@ -0,0 +1,26 @@
> +SUMMARY = "RocksDB an embeddable, persistent key-value store"
> +DESCRIPTION = "RocksDB is library that provides an embeddable, persistent 
> key-value store for fast storage."
> +HOMEPAGE = "http://rocksdb.org/;
> +LICENSE = "Apache-2.0"
> +LIC_FILES_CHKSUM = 
> "file://LICENSE.Apache;md5=3b83ef96387f14655fc854ddc3c6bd57"
> +
> +SRCREV = "266ac245affd69555643b735d19d3715c4eff91a"
> +PV = "5.8+git${SRCPV}"
> +
> +SRC_URI = "git://github.com/facebook/${BPN}.git"
> +
> +S = "${WORKDIR}/git"
> +
> +inherit cmake
> +
> +PACKAGECONFIG ??= "bzip2 zlib lz4"
> +PACKAGECONFIG[bzip2] = "-DWITH_BZ2=ON,-DWITH_BZ2=OFF,bzip2"
> +PACKAGECONFIG[lz4] = "-DWITH_LZ4=ON,-DWITH_LZ4=OFF,lz4"
> +PACKAGECONFIG[zlib] = "-DWITH_ZLIB=ON,-DWITH_ZLIB=OFF,zlib"
> +PACKAGECONFIG[lite] = "-DROCKSDB_LITE=ON,-DROCKSDB_LITE=OFF"
> +
> +EXTRA_OECMAKE = "\
> +-DPORTABLE=ON \
> +"
> +
> +FILES_${PN}-dev += "${libdir}/cmake"
> --
> 2.1.4
>
> --
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-oe][PATCH] rocksdb: add version 5.8

2017-10-06 Thread Pascal Bach
Version 5.8 does no longer includes the facebook patent grant and is
licensed under the Apache-2.0 license.

Signed-off-by: Pascal Bach 
---
 meta-oe/recipes-extended/rocksdb/rocksdb_git.bb | 26 +
 1 file changed, 26 insertions(+)
 create mode 100644 meta-oe/recipes-extended/rocksdb/rocksdb_git.bb

diff --git a/meta-oe/recipes-extended/rocksdb/rocksdb_git.bb 
b/meta-oe/recipes-extended/rocksdb/rocksdb_git.bb
new file mode 100644
index 000..a4fbf34
--- /dev/null
+++ b/meta-oe/recipes-extended/rocksdb/rocksdb_git.bb
@@ -0,0 +1,26 @@
+SUMMARY = "RocksDB an embeddable, persistent key-value store"
+DESCRIPTION = "RocksDB is library that provides an embeddable, persistent 
key-value store for fast storage."
+HOMEPAGE = "http://rocksdb.org/;
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE.Apache;md5=3b83ef96387f14655fc854ddc3c6bd57"
+
+SRCREV = "266ac245affd69555643b735d19d3715c4eff91a"
+PV = "5.8+git${SRCPV}"
+
+SRC_URI = "git://github.com/facebook/${BPN}.git"
+
+S = "${WORKDIR}/git"
+
+inherit cmake
+
+PACKAGECONFIG ??= "bzip2 zlib lz4"
+PACKAGECONFIG[bzip2] = "-DWITH_BZ2=ON,-DWITH_BZ2=OFF,bzip2"
+PACKAGECONFIG[lz4] = "-DWITH_LZ4=ON,-DWITH_LZ4=OFF,lz4"
+PACKAGECONFIG[zlib] = "-DWITH_ZLIB=ON,-DWITH_ZLIB=OFF,zlib"
+PACKAGECONFIG[lite] = "-DROCKSDB_LITE=ON,-DROCKSDB_LITE=OFF"
+
+EXTRA_OECMAKE = "\
+-DPORTABLE=ON \
+"
+
+FILES_${PN}-dev += "${libdir}/cmake"
-- 
2.1.4

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-python][PATCH] python-twisted: remove empty lore subpackage

2017-10-06 Thread Diego Rondini
Currently installing python-twisted fails because it cannot find a
python-twisted-lore package. lore package isn't created because as of twisted
15.3.x lore has been removed, thus no file belongs to it.
Removal reference:
"twisted.lore has now been removed, in preference to Sphinx. (#7892)"
https://github.com/twisted/twisted/blob/trunk/NEWS.rst#twisted-core-1530-2015-08-04

Signed-off-by: Diego Rondini 
---
 meta-python/recipes-devtools/python/python-twisted.inc | 10 --
 1 file changed, 10 deletions(-)

diff --git a/meta-python/recipes-devtools/python/python-twisted.inc 
b/meta-python/recipes-devtools/python/python-twisted.inc
index fed629c..4bd4788 100644
--- a/meta-python/recipes-devtools/python/python-twisted.inc
+++ b/meta-python/recipes-devtools/python/python-twisted.inc
@@ -23,7 +23,6 @@ PACKAGES += "\
 ${PN}-test \
 ${PN}-protocols \
 ${PN}-conch \
-${PN}-lore \
 ${PN}-mail \
 ${PN}-names \
 ${PN}-news \
@@ -43,7 +42,6 @@ PACKAGES =+ "\
 RDEPENDS_${PN} = "\
 ${PN}-bin \
 ${PN}-conch \
-${PN}-lore \
 ${PN}-mail \
 ${PN}-names \
 ${PN}-news \
@@ -55,7 +53,6 @@ RDEPENDS_${PN} = "\
 RDEPENDS_${PN}-core = "python-core python-zopeinterface python-contextlib"
 RDEPENDS_${PN}-test = "${PN}"
 RDEPENDS_${PN}-conch = "${PN}-core ${PN}-protocols"
-RDEPENDS_${PN}-lore = "${PN}-core"
 RDEPENDS_${PN}-mail = "${PN}-core ${PN}-protocols"
 RDEPENDS_${PN}-names = "${PN}-core"
 RDEPENDS_${PN}-news = "${PN}-core ${PN}-protocols"
@@ -187,13 +184,6 @@ ${libdir}/${PYTHON_DIR}/site-packages/twisted/_threads/ \
 ${libdir}/${PYTHON_DIR}/site-packages/twisted/positioning/ \
 "
 
-FILES_${PN}-lore = " \
-${bindir}/bookify \
-${bindir}/lore \
-${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_lore.py* \
-${libdir}/${PYTHON_DIR}/site-packages/twisted/lore \
-"
-
 FILES_${PN}-mail = " \
 ${bindir}/mailmail \
 ${libdir}/${PYTHON_DIR}/site-packages/twisted/plugins/twisted_mail.py* \
-- 
1.9.1

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel