Message ID | 1477419935-86355-1-git-send-email-fabrice.fontaine@orange.com |
---|---|
State | Superseded |
Headers | show |
Hello, On Tue, 25 Oct 2016 20:25:34 +0200, Fabrice Fontaine wrote: > +PYTHON_JSONSCHEMA_VERSION = 2.5.1 > +PYTHON_JSONSCHEMA_SOURCE = jsonschema-$(PYTHON_JSONSCHEMA_VERSION).tar.gz > +PYTHON_JSONSCHEMA_SITE = \ > + https://pypi.python.org/packages/58/0d/c816f5ea5adaf1293a1d81d32e4cdfdaf8496973aa5049786d7fdb14e7e7 > +PYTHON_JSONSCHEMA_SETUP_TYPE = setuptools > +PYTHON_JSONSCHEMA_LICENSE = MIT > +PYTHON_JSONSCHEMA_LICENSE_FILES = COPYING > + > +$(eval $(python-package)) > +$(eval $(host-python-package)) Is there a motivation to add the target variant of this package? Your patch 2/2 seems to be using only the host variant of python-jsonschema. Am I missing something, or are you just adding the target variant just because it can also be useful to other people? Thanks, Thomas
Hello, You're right the soletta package does not need the target variant of this package. We could indeed keep it for other people or I can send a new version of my patch without the target variant of python-jsonschema. Best Regards, Fabrice 2016-10-29 16:02 GMT+02:00 Thomas Petazzoni < thomas.petazzoni@free-electrons.com>: > Hello, > > On Tue, 25 Oct 2016 20:25:34 +0200, Fabrice Fontaine wrote: > > > +PYTHON_JSONSCHEMA_VERSION = 2.5.1 > > +PYTHON_JSONSCHEMA_SOURCE = jsonschema-$(PYTHON_ > JSONSCHEMA_VERSION).tar.gz > > +PYTHON_JSONSCHEMA_SITE = \ > > + https://pypi.python.org/packages/58/0d/ > c816f5ea5adaf1293a1d81d32e4cdfdaf8496973aa5049786d7fdb14e7e7 > > +PYTHON_JSONSCHEMA_SETUP_TYPE = setuptools > > +PYTHON_JSONSCHEMA_LICENSE = MIT > > +PYTHON_JSONSCHEMA_LICENSE_FILES = COPYING > > + > > +$(eval $(python-package)) > > +$(eval $(host-python-package)) > > Is there a motivation to add the target variant of this package? Your > patch 2/2 seems to be using only the host variant of python-jsonschema. > Am I missing something, or are you just adding the target variant just > because it can also be useful to other people? > > Thanks, > > Thomas > -- > Thomas Petazzoni, CTO, Free Electrons > Embedded Linux and Kernel engineering > http://free-electrons.com >
Hello, On Tue, 25 Oct 2016 20:25:34 +0200, Fabrice Fontaine wrote: > An implementation of JSON Schema validation for Python. > > http://github.com/Julian/jsonschema > > Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com> This doesn't build (the host package) due to a missing dependency on host-python-vcversioner. This package doesn't exist yet, but it's easy enough to create with scanpypi. See below what I've added. Without this dependency, building jsonschema fails with: Couldn't find index page for 'vcversioner' (maybe misspelled?) Download error on https://pypi.python.org/simple/: unknown url type: https -- Some packages may not be found! No local packages or download links found for vcversioner Traceback (most recent call last): File "setup.py", line 44, in <module> vcversioner={"version_module_paths" : ["jsonschema/_version.py"]}, File "/home/test/buildroot/output/host/usr/lib/python3.5/distutils/core.py", line 108, in setup _setup_distribution = dist = klass(attrs) File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 268, in __init__ File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 313, in fetch_build_eggs File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 846, in resolve File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1091, in best_match File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1103, in obtain File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 380, in fetch_build_egg File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 633, in easy_install distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('vcversioner') make: *** [/home/test/buildroot/output/build/host-python-jsonschema-2.5.1/.stamp_built] Error 1 Here is python-vcversioner.mk: ################################################################################ # # python-vcversioner # ################################################################################ PYTHON_VCVERSIONER_VERSION = 2.16.0.0 PYTHON_VCVERSIONER_SOURCE = vcversioner-$(PYTHON_VCVERSIONER_VERSION).tar.gz PYTHON_VCVERSIONER_SITE = https://pypi.python.org/packages/c5/cc/33162c0a7b28a4d8c83da07bc2b12cee58c120b4a9e8bba31c41c8d35a16 PYTHON_VCVERSIONER_SETUP_TYPE = setuptools PYTHON_VCVERSIONER_LICENSE = ISC License (ISCL) $(eval $(host-python-package)) And python-vcversioner.hash: # md5 from https://pypi.python.org/pypi/vcversioner/json, sha256 locally computed md5 aab6ef5e0cf8614a1b1140ed5b7f107d vcversioner-2.16.0.0.tar.gz sha256 dae60c17a479781f44a4010701833f1829140b1eeccd258762a74974aa06e19b vcversioner-2.16.0.0.tar.gz Best regards, Thomas
diff --git a/package/Config.in b/package/Config.in index 9399f63..c10b577 100644 --- a/package/Config.in +++ b/package/Config.in @@ -698,6 +698,7 @@ menu "External python modules" source "package/python-ipython/Config.in" source "package/python-itsdangerous/Config.in" source "package/python-jinja2/Config.in" + source "package/python-jsonschema/Config.in" source "package/python-json-schema-validator/Config.in" source "package/python-keyring/Config.in" source "package/python-libconfig/Config.in" diff --git a/package/python-jsonschema/Config.in b/package/python-jsonschema/Config.in new file mode 100644 index 0000000..7002653 --- /dev/null +++ b/package/python-jsonschema/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_PYTHON_JSONSCHEMA + bool "python-jsonschema" + help + An implementation of JSON Schema validation for Python. + + http://github.com/Julian/jsonschema diff --git a/package/python-jsonschema/python-jsonschema.hash b/package/python-jsonschema/python-jsonschema.hash new file mode 100644 index 0000000..fc13630 --- /dev/null +++ b/package/python-jsonschema/python-jsonschema.hash @@ -0,0 +1,3 @@ +# md5 from https://pypi.python.org/pypi/jsonschema/json, sha256 locally computed +md5 374e848fdb69a3ce8b7e778b47c30640 jsonschema-2.5.1.tar.gz +sha256 36673ac378feed3daa5956276a829699056523d7961027911f064b52255ead41 jsonschema-2.5.1.tar.gz diff --git a/package/python-jsonschema/python-jsonschema.mk b/package/python-jsonschema/python-jsonschema.mk new file mode 100644 index 0000000..ec34a6e --- /dev/null +++ b/package/python-jsonschema/python-jsonschema.mk @@ -0,0 +1,16 @@ +################################################################################ +# +# python-jsonschema +# +################################################################################ + +PYTHON_JSONSCHEMA_VERSION = 2.5.1 +PYTHON_JSONSCHEMA_SOURCE = jsonschema-$(PYTHON_JSONSCHEMA_VERSION).tar.gz +PYTHON_JSONSCHEMA_SITE = \ + https://pypi.python.org/packages/58/0d/c816f5ea5adaf1293a1d81d32e4cdfdaf8496973aa5049786d7fdb14e7e7 +PYTHON_JSONSCHEMA_SETUP_TYPE = setuptools +PYTHON_JSONSCHEMA_LICENSE = MIT +PYTHON_JSONSCHEMA_LICENSE_FILES = COPYING + +$(eval $(python-package)) +$(eval $(host-python-package))
An implementation of JSON Schema validation for Python. http://github.com/Julian/jsonschema Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com> --- package/Config.in | 1 + package/python-jsonschema/Config.in | 6 ++++++ package/python-jsonschema/python-jsonschema.hash | 3 +++ package/python-jsonschema/python-jsonschema.mk | 16 ++++++++++++++++ 4 files changed, 26 insertions(+) create mode 100644 package/python-jsonschema/Config.in create mode 100644 package/python-jsonschema/python-jsonschema.hash create mode 100644 package/python-jsonschema/python-jsonschema.mk