diff --git a/conf/distro/kineintercom.conf b/conf/distro/kineintercom.conf index a105dda..2b1aafa 100644 --- a/conf/distro/kineintercom.conf +++ b/conf/distro/kineintercom.conf @@ -24,7 +24,7 @@ dtoverlay=i2c-rtc,ds3231 \n \ ' # Use systemd -DISTRO_FEATURES += " systemd usbhost ipv4 pam" +DISTRO_FEATURES += " systemd usbhost ipv4 pam format" VIRTUAL-RUNTIME_init_manager = "systemd" VIRTUAL_RUNTIME_login_manager = "shadow-base" VIRTUAL_RUNTIME_syslog = "rsyslog" @@ -46,7 +46,7 @@ PREFERRED_VERSION_rust-source = "1.64.0" PREFERRED_VERSION_rust-snapshot = "1.64.0" INHERIT += "rm_work" -RM_WORK_EXCLUDE += "configurateur-frontend" +RM_WORK_EXCLUDE += "configurateur-frontend python3-jsonschema" # Use extrausers INHERIT += "extrausers" diff --git a/recipes-devtools/python/python3-jsonschema/setup.cfg b/recipes-devtools/python/python3-jsonschema/setup.cfg new file mode 100644 index 0000000..1b48ef4 --- /dev/null +++ b/recipes-devtools/python/python3-jsonschema/setup.cfg @@ -0,0 +1,95 @@ +[metadata] +name = jsonschema +url = https://github.com/python-jsonschema/jsonschema +project_urls = + Funding = https://github.com/sponsors/Julian + Tidelift = https://tidelift.com/subscription/pkg/pypi-jsonschema?utm_source=pypi-jsonschema&utm_medium=referral&utm_campaign=pypi-link + Documentation = https://python-jsonschema.readthedocs.io/en/latest/ + Source = https://github.com/python-jsonschema/jsonschema + Issues = https://github.com/python-jsonschema/jsonschema/issues/ +description = An implementation of JSON Schema validation for Python +long_description = file: README.rst +long_description_content_type = text/x-rst +author = Julian Berman +author_email = Julian@GrayVines.com +license = MIT +classifiers = + Development Status :: 5 - Production/Stable + Intended Audience :: Developers + License :: OSI Approved :: MIT License + Operating System :: OS Independent + Programming Language :: Python + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 + Programming Language :: Python :: 3.11 + Programming Language :: Python :: Implementation :: CPython + Programming Language :: Python :: Implementation :: PyPy + +[options] +packages = find: +python_requires = >=3.7 +install_requires = + attrs>=17.4.0 + importlib_metadata;python_version<'3.8' + importlib_resources>=1.4.0;python_version<'3.9' + pyrsistent>=0.14.0,!=0.17.0,!=0.17.1,!=0.17.2 + typing_extensions;python_version<'3.8' + +[options.extras_require] +format = + fqdn + idna + isoduration + jsonpointer>1.13 + rfc3339-validator + rfc3987 + uri_template + webcolors>=1.11 +format_nongpl = + fqdn + idna + isoduration + jsonpointer>1.13 + rfc3339-validator + rfc3986-validator>0.1.0 + uri_template + webcolors>=1.11 + +[options.entry_points] +console_scripts = + jsonschema = jsonschema.cli:main + +[options.package_data] +jsonschema = schemas/*.json, schemas/*/*.json + +[flake8] +ban-relative-imports = true +inline-quotes = " +exclude = + jsonschema/__init__.py + jsonschema/_reflect.py +ignore = + B008, # Barring function calls in default args. Ha, no. + B306, # See https://github.com/PyCQA/flake8-bugbear/issues/131 + W503, # (flake8 default) old PEP8 boolean operator line breaks + +[mypy] +ignore_missing_imports = true + +[pydocstyle] +match = (?!(test_|_|compat|cli)).*\.py # see PyCQA/pydocstyle#323 +add-select = + D410, # Trailing whitespace plz +add-ignore = + D107, # Hah, no + D200, # 1-line docstrings don't need to be on one line + D202, # One line is fine. + D412, # Trailing whitespace plz + D413, # No trailing whitespace plz + +[egg_info] +tag_build = +tag_date = 0 + diff --git a/recipes-devtools/python/python3-jsonschema_4.17.0.bb b/recipes-devtools/python/python3-jsonschema_4.17.0.bb index 48d36f7..9cc3343 100644 --- a/recipes-devtools/python/python3-jsonschema_4.17.0.bb +++ b/recipes-devtools/python/python3-jsonschema_4.17.0.bb @@ -1,32 +1,41 @@ # Copyright (C) 2022 Vincent BENOIT # Release under the MIT license (see COPYING.MIT for the terms) +SECTION = "devel/python" SUMMARY = "An implementation of JSON Schema validation for Python" HOMEPAGE = "https://github.com/Julian/jsonschema" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=7a60a81c146ec25599a3e1dabb8610a8 \ file://json/LICENSE;md5=9d4de43111d33570c8fe49b4cb0e01af" +PYPI_PACKAGE = "jsonschema" SRC_URI[sha256sum] = "5bfcf2bca16a087ade17e02b282d34af7ccd749ef76241e7f9bd7c0cb8a9424d" +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" +SRC_URI += "file://setup.cfg" + inherit pypi python_setuptools_build_meta DEPENDS += "${PYTHON_PN}-vcversioner-native ${PYTHON_PN}-setuptools-scm-native" -#PACKAGECONFIG ??= "format" -#PACKAGECONFIG[format] = ",,,\ -# ${PYTHON_PN}-idna \ -# ${PYTHON_PN}-jsonpointer \ -# ${PYTHON_PN}-webcolors \ -# ${PYTHON_PN}-rfc3987 \ -# ${PYTHON_PN}-strict-rfc3339 \ -#" -#PACKAGECONFIG[nongpl] = ",,,\ -# ${PYTHON_PN}-idna \ -# ${PYTHON_PN}-jsonpointer \ -# ${PYTHON_PN}-webcolors \ -# ${PYTHON_PN}-rfc3986-validator \ -# ${PYTHON_PN}-rfc3339-validator \ -#" +do_configure:append() { + install -m 0644 ${WORKDIR}/setup.cfg ${WORKDIR}/jsonschema-${PV}/setup.cfg +} + +PACKAGECONFIG ??= "format" +PACKAGECONFIG[format] = ",,,\ + ${PYTHON_PN}-idna \ + ${PYTHON_PN}-jsonpointer \ + ${PYTHON_PN}-webcolors \ + ${PYTHON_PN}-rfc3987 \ + ${PYTHON_PN}-strict-rfc3339 \ +" +PACKAGECONFIG[nongpl] = ",,,\ + ${PYTHON_PN}-idna \ + ${PYTHON_PN}-jsonpointer \ + ${PYTHON_PN}-webcolors \ + ${PYTHON_PN}-rfc3986-validator \ + ${PYTHON_PN}-rfc3339-validator \ +" RDEPENDS:${PN} += " \ ${PYTHON_PN}-attrs \ @@ -47,4 +56,4 @@ RDEPENDS:${PN} += " \ ${PYTHON_PN}-zipp \ " -#BBCLASSEXTEND = "native nativesdk" +BBCLASSEXTEND = "native nativesdk"