Initial commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
DESCRIPTION = "Pamela: yet another Python wrapper for PAM"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://PKG-INFO;md5=6b706db92112b8384848de3e5c6adaa3"
|
||||
|
||||
SRC_URI[sha256sum] = "d4b139fe600e192e176a2a368059207a6bffa0e7879879b13f4fcba0163481be"
|
||||
|
||||
PYPI_PACKAGE = "pamela"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} = "libpam"
|
||||
|
||||
inherit features_check
|
||||
REQUIRED_DISTRO_FEATURES = "pam"
|
||||
@@ -0,0 +1,36 @@
|
||||
SUMMARY = "Python interface for Remember The Milk API"
|
||||
AUTHOR = "Sridhar Ratnakumar / srid"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=a53cbc7cb75660694e138ba973c148df"
|
||||
|
||||
PYPI_PACKAGE_EXT = "tar.bz2"
|
||||
|
||||
SRC_URI[md5sum] = "7c87da94656b620dfe532ca63d642eb8"
|
||||
SRC_URI[sha256sum] = "b2d701b25ad3f9a1542057f3eb492c5c1d7dbe2b8d1e8f763043dcc14ee1d933"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
PACKAGES =+ "${PN}-tests ${PN}-samples"
|
||||
|
||||
FILES:${PN}-samples += " \
|
||||
${PYTHON_SITEPACKAGES_DIR}/rtm/samples \
|
||||
"
|
||||
|
||||
FILES:${PN}-tests += " \
|
||||
${PYTHON_SITEPACKAGES_DIR}/rtm/tests \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
${PYTHON_PN}-json \
|
||||
${PYTHON_PN}-logging \
|
||||
${PYTHON_PN}-netclient \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-samples += " \
|
||||
${PN} \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-tests += " \
|
||||
${PN} \
|
||||
${PYTHON_PN}-unittest \
|
||||
"
|
||||
@@ -0,0 +1,17 @@
|
||||
SUMMARY = "Migrations for Django"
|
||||
DESCRIPTION = "South is an intelligent database migrations library for the Django web framework. It is database-independent and DVCS-friendly, as well as a whole host of other features."
|
||||
HOMEPAGE = "http://south.aeracode.org/"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=17;endline=18;md5=2155d8ae21e7c23101d5febac696b27e"
|
||||
|
||||
SRC_URI[md5sum] = "c76a9758b2011bc3b6c39f881bba2f66"
|
||||
SRC_URI[sha256sum] = "d360bd31898f9df59f6faa786551065bba45b35e7ee3c39b381b4fbfef7392f4"
|
||||
|
||||
PYPI_PACKAGE = "South"
|
||||
inherit pypi
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
${PYTHON_PN}-django \
|
||||
"
|
||||
@@ -0,0 +1,34 @@
|
||||
SUMMARY = "A high-level Python Web framework"
|
||||
HOMEPAGE = "http://www.djangoproject.com/"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=f09eb47206614a4954c51db8a94840fa"
|
||||
|
||||
PYPI_PACKAGE = "Django"
|
||||
inherit pypi
|
||||
|
||||
UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)/"
|
||||
|
||||
FILES:${PN} += "${datadir}/django"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
${PYTHON_PN}-compression \
|
||||
${PYTHON_PN}-ctypes \
|
||||
${PYTHON_PN}-datetime \
|
||||
${PYTHON_PN}-email \
|
||||
${PYTHON_PN}-html \
|
||||
${PYTHON_PN}-json \
|
||||
${PYTHON_PN}-logging \
|
||||
${PYTHON_PN}-multiprocessing \
|
||||
${PYTHON_PN}-netserver \
|
||||
${PYTHON_PN}-numbers \
|
||||
${PYTHON_PN}-pkgutil \
|
||||
${PYTHON_PN}-pytz \
|
||||
${PYTHON_PN}-threading \
|
||||
${PYTHON_PN}-unixadmin \
|
||||
${PYTHON_PN}-xml \
|
||||
${PYTHON_PN}-distutils \
|
||||
"
|
||||
|
||||
CVE_PRODUCT = "django"
|
||||
@@ -0,0 +1,14 @@
|
||||
DESCRIPTION = "An extension that includes Bootstrap in your project, without any boilerplate code."
|
||||
LICENSE = "Apache-2.0 & MIT & BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://PKG-INFO;md5=a03749709f06118a17349deb5a210619"
|
||||
|
||||
SRC_URI[md5sum] = "e40d50f5c5b6438c1c6200a6f2871f81"
|
||||
SRC_URI[sha256sum] = "cb08ed940183f6343a64e465e83b3a3f13c53e1baabb8d72b5da4545ef123ac8"
|
||||
|
||||
PYPI_PACKAGE = "Flask-Bootstrap"
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
${PYTHON_PN}-dominate \
|
||||
${PYTHON_PN}-flask \
|
||||
${PYTHON_PN}-visitor \
|
||||
"
|
||||
@@ -0,0 +1,12 @@
|
||||
DESCRIPTION = "An extension for the Flask microframework that adds Sijax support."
|
||||
HOMEPAGE = "https://github.com/spantaleev/flask-sijax"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=266adc7b911b7c84b837bf77196e1ba6"
|
||||
|
||||
PYPI_PACKAGE = "Flask-Sijax"
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-flask \
|
||||
python3-sijax \
|
||||
python3-werkzeug \
|
||||
"
|
||||
@@ -0,0 +1,16 @@
|
||||
DESCRIPTION = "XStatic support for flask"
|
||||
LICENSE = "BSD-2-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=659968f6ebd4b70b6c3190d20b4a924c"
|
||||
|
||||
SRC_URI[md5sum] = "2f56023e1444c8bd1fec41afe93de743"
|
||||
SRC_URI[sha256sum] = "226ea8e97065a9488b59bfe5c94af4c6e2ea70a25052e301fb231a1381490133"
|
||||
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/python-flask-xstatic:"
|
||||
SRC_URI += "file://remove-pip-requires.patch"
|
||||
|
||||
PYPI_PACKAGE = "Flask-XStatic"
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
${PYTHON_PN}-flask \
|
||||
${PYTHON_PN}-xstatic \
|
||||
"
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
Upstream-Status: Pending
|
||||
|
||||
--- Flask-XStatic-0.0.1/setup.py.orig 2015-01-30 08:01:56.000000000 -0800
|
||||
+++ Flask-XStatic-0.0.1/setup.py 2017-04-17 21:40:32.570181626 -0700
|
||||
@@ -1,4 +1,3 @@
|
||||
-from pip.req import parse_requirements
|
||||
import setuptools
|
||||
|
||||
with open('README.rst') as f:
|
||||
@@ -0,0 +1,15 @@
|
||||
SUMMARY = "Patch ssl.match_hostname for Unicode(idna) domains support"
|
||||
HOMEPAGE = "https://github.com/aio-libs/idna-ssl"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=a61b9c5aec8796b64a6bf15d42605073"
|
||||
|
||||
SRC_URI[md5sum] = "dd44ec53bac36e68446766fd8d3835bd"
|
||||
SRC_URI[sha256sum] = "a933e3bb13da54383f9e8f35dc4f9cb9eb9b3b78c6b36f311254d6d0d92c6c7c"
|
||||
|
||||
PYPI_PACKAGE = "idna-ssl"
|
||||
inherit pypi
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-idna \
|
||||
python3-io \
|
||||
"
|
||||
@@ -0,0 +1,13 @@
|
||||
SUMMARY = "Abseil Python Common Libraries"
|
||||
HOMEPAGE = "https://github.com/abseil/abseil-py"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||
|
||||
SRC_URI[sha256sum] = "d2c244d01048ba476e7c080bd2c6df5e141d211de80223460d5b3b8a2a58433d"
|
||||
|
||||
PYPI_PACKAGE = "absl-py"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
@@ -0,0 +1,14 @@
|
||||
SUMMARY = "Advanced Enumerations library"
|
||||
HOMEPAGE = "https://pypi.org/project/aenum/"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://aenum/LICENSE;md5=c6a85477543f8b8591b9c1f82abebbe9"
|
||||
|
||||
SRC_URI[sha256sum] = "8cbd76cd18c4f870ff39b24284d3ea028fbe8731a58df3aa581e434c575b9559"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
${PYTHON_PN}-pprint \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,17 @@
|
||||
SUMMARY = "Simple DNS resolver for asyncio"
|
||||
DESCRIPTION = "aiodns provides a simple way for doing asynchronous DNS resolutions using pycares."
|
||||
HOMEPAGE = "https://github.com/saghul/aiodns"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=a565d8b5d06b9620968a135a2657b093"
|
||||
|
||||
SRC_URI[md5sum] = "181e11935c78965de2b2b7b0e5efba8d"
|
||||
SRC_URI[sha256sum] = "946bdfabe743fceeeb093c8a010f5d1645f708a241be849e17edfb0e49e08cd6"
|
||||
|
||||
PYPI_PACKAGE = "aiodns"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
${PYTHON_PN}-asyncio \
|
||||
${PYTHON_PN}-pycares \
|
||||
"
|
||||
@@ -0,0 +1,15 @@
|
||||
SUMMARY = "File support for asyncio"
|
||||
DESCRIPTION = "Asynchronous local file IO library for asyncio and Python"
|
||||
HOMEPAGE = "https://github.com/aio-libs/aiohttp"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=d2794c0df5b907fdace235a619d80314"
|
||||
|
||||
SRC_URI[sha256sum] = "edd247df9a19e0db16534d4baaf536d6609a43e1de5401d7a4c1c148753a1635"
|
||||
|
||||
PYPI_PACKAGE = "aiofiles"
|
||||
|
||||
inherit pypi python_poetry_core
|
||||
|
||||
RDEPENDS:${PN} = "\
|
||||
${PYTHON_PN}-asyncio \
|
||||
"
|
||||
@@ -0,0 +1,15 @@
|
||||
SUMMARY = "jinja2 template renderer for aiohttp.web (http server for asyncio)"
|
||||
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=29dca541e03964615590ca7b50392d97"
|
||||
|
||||
SRC_URI[sha256sum] = "8d149b2a57d91f794b33a394ea5bc66b567f38c74a5a6a9477afc2450f105c01"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
${PYTHON_PN}-jinja2 \
|
||||
${PYTHON_PN}-aiohttp \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,27 @@
|
||||
SUMMARY = "Async http client/server framework"
|
||||
DESCRIPTION = "Asynchronous HTTP client/server framework for asyncio and Python"
|
||||
HOMEPAGE = "https://github.com/aio-libs/aiohttp"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=748073912af33aa59430d3702aa32d41"
|
||||
|
||||
SRC_URI[sha256sum] = "bf2e1a9162c1e441bf805a1fd166e249d574ca04e03b34f97e2928769e91ab5c"
|
||||
|
||||
PYPI_PACKAGE = "aiohttp"
|
||||
inherit python_setuptools_build_meta pypi
|
||||
|
||||
RDEPENDS:${PN} = "\
|
||||
${PYTHON_PN}-async-timeout \
|
||||
${PYTHON_PN}-attrs \
|
||||
${PYTHON_PN}-chardet \
|
||||
${PYTHON_PN}-html \
|
||||
${PYTHON_PN}-idna-ssl \
|
||||
${PYTHON_PN}-json \
|
||||
${PYTHON_PN}-misc \
|
||||
${PYTHON_PN}-multidict \
|
||||
${PYTHON_PN}-netserver \
|
||||
${PYTHON_PN}-typing-extensions \
|
||||
${PYTHON_PN}-yarl \
|
||||
${PYTHON_PN}-cchardet \
|
||||
${PYTHON_PN}-charset-normalizer \
|
||||
${PYTHON_PN}-aiosignal \
|
||||
"
|
||||
@@ -0,0 +1,16 @@
|
||||
DESCRIPTION = "Asynchronous library to control Philips Hue"
|
||||
HOMEPAGE = "https://pypi.org/project/aiohue/"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=dab31a1d28183826937f4b152143a33f"
|
||||
|
||||
SRC_URI[sha256sum] = "069af6bb0a7d34d566538af57cc10fb691ee04f844204e4f67d95a57f0b91a46"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
${PYTHON_PN}-aiohttp \
|
||||
${PYTHON_PN}-asyncio-throttle \
|
||||
${PYTHON_PN}-profile \
|
||||
${PYTHON_PN}-awesomeversion \
|
||||
"
|
||||
@@ -0,0 +1,16 @@
|
||||
SUMMARY = "The library is intended to provide simple and clear interface to Redis based on asyncio."
|
||||
HOMEPAGE = "https://github.com/aio-libs/aioredis-py"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=bf9085f32a671dfa86ee69fe0fff7b95"
|
||||
|
||||
SRC_URI[sha256sum] = "eaa51aaf993f2d71f54b70527c440437ba65340588afeb786cd87c55c89cd98e"
|
||||
|
||||
PYPI_PACKAGE = "aioredis"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-core (>=3.6) \
|
||||
python3-async-timeout \
|
||||
python3-typing-extensions \
|
||||
"
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
DESCRIPTION = "An asynchronous serial port library for Python"
|
||||
HOMEPAGE = "https://github.com/changyuheng/aioserial.py"
|
||||
SECTION = "devel/python"
|
||||
|
||||
LICENSE = "MPL-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=650b9179efef1ea560df5c08bc32b494"
|
||||
|
||||
PYPI_PACKAGE = "aioserial"
|
||||
|
||||
SRC_URI[sha256sum] = "702bf03b0eb84b8ef2d8dac5cb925e1e685dce98f77b125569bc6fd2b3b58228"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-asyncio \
|
||||
python3-pyserial \
|
||||
"
|
||||
@@ -0,0 +1,14 @@
|
||||
SUMMARY = "A list of registered asynchronous callbacks"
|
||||
HOMEPAGE = "https://github.com/aio-libs/aiosignal"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=cf056e8e7a0a5477451af18b7b5aa98c"
|
||||
|
||||
SRC_URI[sha256sum] = "54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
RDEPENDS:${PN} = "\
|
||||
${PYTHON_PN}-frozenlist \
|
||||
"
|
||||
@@ -0,0 +1,19 @@
|
||||
DESCRIPTION = "A database migration tool for SQLAlchemy"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=e3023b042cb6002cb398344b51c67093"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
SRC_URI[sha256sum] = "6a810a6b012c88b33458fceb869aef09ac75d6ace5291915ba7fae44de372c01"
|
||||
|
||||
PYPI_PACKAGE = "alembic"
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
${PYTHON_PN}-dateutil \
|
||||
${PYTHON_PN}-editor \
|
||||
${PYTHON_PN}-mako \
|
||||
${PYTHON_PN}-sqlalchemy \
|
||||
${PYTHON_PN}-misc \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,20 @@
|
||||
DESCRPTION = "ansi2html - Convert text with ANSI color codes to HTML or to LaTeX"
|
||||
HOMEPAGE = "https://github.com/ralphbean/ansi2html"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3000208d539ec061b899bce1d9ce9404"
|
||||
LICENSE = "GPL-3.0-only"
|
||||
|
||||
PYPI_PACKAGE = "ansi2html"
|
||||
|
||||
SRC_URI[sha256sum] = "38b82a298482a1fa2613f0f9c9beb3db72a8f832eeac58eb2e47bf32cd37f6d5"
|
||||
|
||||
inherit pypi python_setuptools_build_meta
|
||||
|
||||
DEPENDS += " \
|
||||
${PYTHON_PN}-setuptools-scm-native \
|
||||
${PYTHON_PN}-setuptools-scm-git-archive-native \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN} = " \
|
||||
${PYTHON_PN}-six \
|
||||
${PYTHON_PN}-compression \
|
||||
"
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pytest -o log_cli=true -o log_cli_level=INFO test.py| sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
|
||||
@@ -0,0 +1,24 @@
|
||||
DESCRIPTION = "Add ANSI colors and decorations to your strings"
|
||||
|
||||
LICENSE = "ISC"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=aef5566ac4fede9815eccf124c281317"
|
||||
|
||||
SRC_URI[sha256sum] = "99f94f5e3348a0bcd43c82e5fc4414013ccc19d70bd939ad71e0133ce9c372e0"
|
||||
|
||||
PYPI_PACKAGE_EXT = "zip"
|
||||
|
||||
inherit pypi setuptools3 ptest
|
||||
|
||||
SRC_URI += " \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
${PYTHON_PN}-pytest \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
cp -f ${S}/test/test.py ${D}${PTEST_PATH}/
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
SUMMARY = "ANTLR runtime for Python"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://PKG-INFO;md5=b38bac4871765ce562806c44d2f18cf1"
|
||||
|
||||
SRC_URI[sha256sum] = "0d5454928ae40c8a6b653caa35046cd8492c8743b5fbc22ff4009099d074c7ae"
|
||||
|
||||
PYPI_PACKAGE = "antlr4-python3-runtime"
|
||||
|
||||
inherit pypi python_setuptools_build_meta
|
||||
|
||||
BBCLASSEXTEND = "nativesdk native"
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pytest | sed -e 's/\[100%\]//g' | sed -e 's/\.\.F/: FAIL/g' | sed -e 's/\.\.\./: PASS/g'
|
||||
@@ -0,0 +1,23 @@
|
||||
SUMMARY = "A small Python module for determining appropriate + platform-specific dirs, e.g. a user data dir."
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=31625363c45eb0c67c630a2f73e438e4"
|
||||
|
||||
SRC_URI += " \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "d6bca12613174185dd9abc8a29f4f012"
|
||||
SRC_URI[sha256sum] = "7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41"
|
||||
|
||||
inherit pypi setuptools3 ptest
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
${PYTHON_PN}-pytest \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/test
|
||||
cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,14 @@
|
||||
SUMMARY = "Apply values to optional params"
|
||||
HOMEPAGE = "https://github.com/bcb/apply_defaults"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=c89120516900f96f4c60d35fdc4c3f15"
|
||||
|
||||
PYPI_PACKAGE = "apply_defaults"
|
||||
|
||||
SRC_URI[sha256sum] = "3773de3491b94c0fe44310f1a85888389cdc71e1544b343bce0d2bd6991acea5"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += "python3-core"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,18 @@
|
||||
SUMMARY = "Argcomplete provides easy, extensible command line tab completion of arguments for your Python script."
|
||||
HOMEPAGE = "https://github.com/kislyuk/argcomplete"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=2ee41112a44fe7014dce33e26468ba93"
|
||||
|
||||
SRC_URI[sha256sum] = "6c4c563f14f01440aaffa3eae13441c5db2357b5eec639abe7c0b15334627dff"
|
||||
|
||||
PYPI_PACKAGE = "argcomplete"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
${PYTHON_PN}-core \
|
||||
${PYTHON_PN}-io \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
SUMMARY = "Expose your Python functions to the command line with one easy step!"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=ea70b07c354e36056bd35e17c9c3face"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
SRC_URI[md5sum] = "448635948823309312ea9f70b30b6c2d"
|
||||
SRC_URI[sha256sum] = "61f9ae9322e38ae64996848421afbdb018239a99c4e796fe064f172d6c98c3bf"
|
||||
|
||||
DEPENDS += "python3-setuptools-scm-native"
|
||||
RDEPENDS:${PN} += "\
|
||||
python3-dynamic-dispatch \
|
||||
python3-typeguard \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,26 @@
|
||||
SUMMARY = "An unobtrusive argparse wrapper with natural syntax"
|
||||
DESCRIPTION = "Building a command-line interface? Found yourself uttering \
|
||||
'argh!' while struggling with the API of argparse? Don't like the complexity \
|
||||
but need the power? \
|
||||
\
|
||||
Everything should be made as simple as possible, but no simpler. \
|
||||
\
|
||||
—Albert Einstein (probably) \
|
||||
\
|
||||
Argh is a smart wrapper for argparse. Argparse is a very powerful \
|
||||
tool; Argh just makes it easy to use."
|
||||
|
||||
LICENSE = "LGPL-3.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=3000208d539ec061b899bce1d9ce9404 \
|
||||
file://README.rst;beginline=261;endline=275;md5=a8bf3475df7e0d575a53d04c83d5e090"
|
||||
|
||||
SRC_URI[sha256sum] = "b2093086f0e809a3ecc24b64a2145309ee8f56d034936cd59e57c558a357329d"
|
||||
|
||||
inherit pypi python_flit_core
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-argcomplete \
|
||||
python3-logging \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,17 @@
|
||||
SUMMARY = "Arpeggio is a recursive descent parser with memoization based on PEG grammars (aka Packrat parser)"
|
||||
HOMEPAGE = "https://pypi.org/project/Arpeggio/"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=33b8d1ba459a2fa4d801acfd1d1b7ceb"
|
||||
|
||||
SRC_URI[sha256sum] = "c790b2b06e226d2dd468e4fbfb5b7f506cec66416031fde1441cf1de2a0ba700"
|
||||
|
||||
PYPI_PACKAGE = "Arpeggio"
|
||||
inherit pypi setuptools3
|
||||
|
||||
# setup.py of Arpeggio needs this.
|
||||
DEPENDS += "\
|
||||
${PYTHON_PN}-pytest-runner-native \
|
||||
${PYTHON_PN}-wheel-native \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,9 @@
|
||||
SUMMARY = "Draws ASCII trees."
|
||||
HOMEPAGE = "http://github.com/mbr/asciitree"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=a985ccb0df374f2a8cab75010bf8db73"
|
||||
|
||||
SRC_URI[md5sum] = "2570b31e563b69da1aff54509db8ac6a"
|
||||
SRC_URI[sha256sum] = "4aa4b9b649f85e3fcb343363d97564aa1fb62e249677f2e18a96765145cc0f6e"
|
||||
|
||||
inherit pypi setuptools3
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
|
||||
@@ -0,0 +1,29 @@
|
||||
DESCRIPTION = "ASGI is a standard for Python asynchronous web apps and servers to communicate with each other, and positioned as an asynchronous successor to WSGI."
|
||||
HOMEPAGE = "https://pypi.org/project/asgiref/"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=f09eb47206614a4954c51db8a94840fa"
|
||||
|
||||
SRC_URI += "file://run-ptest \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "9e0ce3aa93a819ba5b45120216b23878cf6e8525eb3848653452b4192b92afed"
|
||||
|
||||
export BUILD_SYS
|
||||
export HOST_SYS
|
||||
|
||||
inherit pypi ptest setuptools3
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
${PYTHON_PN}-pytest \
|
||||
${PYTHON_PN}-asyncio \
|
||||
${PYTHON_PN}-io \
|
||||
${PYTHON_PN}-multiprocessing \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pytest --automake
|
||||
@@ -0,0 +1,35 @@
|
||||
# Copyright (C) 2021 Khem Raj <raj.khem@gmail.com>
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
|
||||
SUMMARY = "An aspect-oriented programming, monkey-patch and decorators library."
|
||||
DESCRIPTION = " It is useful when changing behavior in existing code is desired. \
|
||||
It includes tools for debugging and testing: simple mock/record and a complete capture/replay framework."
|
||||
HOMEPAGE = "https://github.com/ionelmc/python-aspectlib"
|
||||
LICENSE = "BSD-2-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=80721ace117fd1f814049ecb81c6be76"
|
||||
|
||||
SRC_URI[sha256sum] = "a4b461b9da0b531aebcb93efcde3de808a72c60226dd8d902c467d13faf7ce92"
|
||||
|
||||
inherit ptest pypi setuptools3
|
||||
|
||||
SRC_URI += "file://run-ptest \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||
}
|
||||
|
||||
RDEPENDS:${PN}-ptest += "\
|
||||
python3-process-tests \
|
||||
python3-pytest \
|
||||
python3-tornado \
|
||||
python3-unittest-automake-output \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-fields \
|
||||
python3-logging \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
From 1a477968593a14ee9c8597c1ed4e8b61a7731e15 Mon Sep 17 00:00:00 2001
|
||||
From: Mingli Yu <mingli.yu@windriver.com>
|
||||
Date: Wed, 23 Dec 2020 02:23:13 +0000
|
||||
Subject: [PATCH] rtrip.py: convert to python3
|
||||
|
||||
As Python 2 reached end of life (EOL), so convert rtrip.py to python3.
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/berkerpeksag/astor/pull/192]
|
||||
|
||||
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
|
||||
---
|
||||
astor/rtrip.py | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/astor/rtrip.py b/astor/rtrip.py
|
||||
index 8b108e7..e2e30a6 100755
|
||||
--- a/astor/rtrip.py
|
||||
+++ b/astor/rtrip.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#! /usr/bin/env python
|
||||
+#! /usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Part of the astor library for Python AST manipulation.
|
||||
@@ -160,7 +160,7 @@ def usage(msg):
|
||||
|
||||
Usage:
|
||||
|
||||
- python -m astor.rtrip [readonly] [<source>]
|
||||
+ python3 -m astor.rtrip [readonly] [<source>]
|
||||
|
||||
|
||||
This utility tests round-tripping of Python source to AST
|
||||
--
|
||||
2.26.2
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
SUMMARY = "Easy manipulation of Python source via the AST."
|
||||
HOMEPAGE = "https://github.com/berkerpeksag/astor"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=561205fdabc3ec52cae2d30815b8ade7"
|
||||
|
||||
SRC_URI = "git://github.com/berkerpeksag/astor.git;branch=master;protocol=https \
|
||||
file://0001-rtrip.py-convert-to-python3.patch \
|
||||
"
|
||||
SRCREV ?= "c7553c79f9222e20783fe9bd8a553f932e918072"
|
||||
|
||||
inherit setuptools3
|
||||
PIP_INSTALL_PACKAGE = "astor"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
@@ -0,0 +1,35 @@
|
||||
SUMMARY = "An abstract syntax tree for Python with inference support."
|
||||
HOMEPAGE = "https://pypi.python.org/pypi/astroid"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "LGPL-2.1-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=a70cf540abf41acb644ac3b621b2fad1"
|
||||
|
||||
SRC_URI[sha256sum] = "903f024859b7c7687d7a7f3a3f73b17301f8e42dfd9cc9df9d4418172d3e2dbd"
|
||||
|
||||
inherit pypi python_setuptools_build_meta
|
||||
|
||||
DEPENDS += "\
|
||||
${PYTHON_PN}-pytest-runner-native \
|
||||
${PYTHON_PN}-wheel-native \
|
||||
"
|
||||
|
||||
PACKAGES =+ "${PN}-tests"
|
||||
|
||||
FILES:${PN}-tests += " \
|
||||
${PYTHON_SITEPACKAGES_DIR}/astroid/test* \
|
||||
${PYTHON_SITEPACKAGES_DIR}/astroid/__pycache__/test* \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}:class-target += "\
|
||||
${PYTHON_PN}-distutils \
|
||||
${PYTHON_PN}-lazy-object-proxy \
|
||||
${PYTHON_PN}-logging \
|
||||
${PYTHON_PN}-six \
|
||||
${PYTHON_PN}-wrapt \
|
||||
${PYTHON_PN}-setuptools \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-tests:class-target += "\
|
||||
${PYTHON_PN}-unittest \
|
||||
${PYTHON_PN}-xml \
|
||||
"
|
||||
@@ -0,0 +1,18 @@
|
||||
SUMMARY = "The asttokens module annotates Python abstract syntax trees (ASTs)"
|
||||
HOMEPAGE = "https://github.com/gristlabs/asttokens"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
|
||||
|
||||
PYPI_PACKAGE = "asttokens"
|
||||
|
||||
inherit pypi python_setuptools_build_meta
|
||||
|
||||
SRC_URI[sha256sum] = "4622110b2a6f30b77e1473affaa97e711bc2f07d3f10848420ff1898edbe94f3"
|
||||
|
||||
DEPENDS += "python3-setuptools-scm-native"
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
${PYTHON_PN}-six \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
@@ -0,0 +1,18 @@
|
||||
SUMMARY = "asyncio-compatible timeout context manager"
|
||||
DESCRIPTION = "\
|
||||
The context manager is useful in cases when you want to apply \
|
||||
timeout logic around block of code or in cases when asyncio.wait_for() \
|
||||
is not suitable. Also it's much faster than asyncio.wait_for() because \
|
||||
timeout doesn't create a new task."
|
||||
HOMEPAGE = "https://github.com/aio-libs/async-timeout"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=4fa41f15bb5f23b6d3560c5845eb8d57"
|
||||
|
||||
SRC_URI[sha256sum] = "7d87a4e8adba8ededb52e579ce6bc8276985888913620c935094c2276fd83382"
|
||||
|
||||
PYPI_PACKAGE = "async-timeout"
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} = "\
|
||||
${PYTHON_PN}-asyncio \
|
||||
"
|
||||
@@ -0,0 +1,18 @@
|
||||
SUMMARY = "asyncio-compatible timeout context manager"
|
||||
DESCRIPTION = "\
|
||||
The context manager is useful in cases when you want to apply \
|
||||
timeout logic around block of code or in cases when asyncio.wait_for() \
|
||||
is not suitable. Also it's much faster than asyncio.wait_for() because \
|
||||
timeout doesn't create a new task."
|
||||
HOMEPAGE = "https://github.com/aio-libs/async-timeout"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=4fa41f15bb5f23b6d3560c5845eb8d57"
|
||||
|
||||
SRC_URI[sha256sum] = "2163e1640ddb52b7a8c80d0a67a08587e5d245cc9c553a74a847056bc2976b15"
|
||||
|
||||
PYPI_PACKAGE = "async-timeout"
|
||||
inherit pypi python_setuptools_build_meta
|
||||
|
||||
RDEPENDS:${PN} = "\
|
||||
${PYTHON_PN}-asyncio \
|
||||
"
|
||||
@@ -0,0 +1,15 @@
|
||||
SUMMARY = "A simple optionally-async python inotify library, focused on simplicity of use and operation, and leveraging modern Python features"
|
||||
HOMEPAGE = "https://gitlab.com/Taywee/asyncinotify"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=6ec941a1cd6616454970d03cb9c9e8f8"
|
||||
|
||||
SRC_URI[sha256sum] = "bcac19425b1b418bbbc4d31193ea3c39e24343cd7ddff2074ae7b599f1a04829"
|
||||
|
||||
inherit pypi python_setuptools_build_meta
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-asyncio \
|
||||
python3-core \
|
||||
python3-ctypes \
|
||||
python3-io \
|
||||
"
|
||||
@@ -0,0 +1,13 @@
|
||||
SUMMARY = "An implementation of the Python 3 asyncio event loop on top of GLib"
|
||||
AUTHOR = "James Henstridge"
|
||||
LICENSE = "LGPL-2.1-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c"
|
||||
|
||||
inherit setuptools3 pypi features_check
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
|
||||
|
||||
SRC_URI[md5sum] = "60153055e76ceaacdfbaeafb03d61dd9"
|
||||
SRC_URI[sha256sum] = "fe3ceb2ba5f541330c07ca1bd7ae792468d625bad1acf5354a3a7a0b9fd87521"
|
||||
|
||||
RDEPENDS:${PN} += "python3-asyncio python3-pygobject"
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
DESCRIPTION = "Simple, easy-to-use throttler for asyncio."
|
||||
HOMEPAGE = "https://github.com/hallazzang/asyncio-throttle"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=c7906e56b70808e1ade6ca05e0bb48d5"
|
||||
|
||||
SRC_URI[sha256sum] = "2675282e99d9129ecc446f917e174bc205c65e36c602aa18603b4948567fcbd4"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += "python3-asyncio"
|
||||
@@ -0,0 +1,8 @@
|
||||
DESCRIPTION = "Simple decorator to set attributes of target function or class in a DRY way"
|
||||
HOMEPAGE = "https://github.com/denis-ryzhkov/attr"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=02c113fb406eab0537c0cf4334f57c07"
|
||||
|
||||
SRC_URI[sha256sum] = "1ceebca768181cdcce9827611b1d728e592be5d293911539ea3d0b0bfa1146f4"
|
||||
|
||||
inherit pypi setuptools3
|
||||
@@ -0,0 +1,23 @@
|
||||
DESCRIPTION = "WebSocket client & server library, WAMP real-time framework"
|
||||
HOMEPAGE = "http://crossbar.io/autobahn"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3e2c2c2cc2915edc5321b0e6b1d3f5f8"
|
||||
|
||||
SRC_URI[sha256sum] = "ec9421c52a2103364d1ef0468036e6019ee84f71721e86b36fe19ad6966c1181"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
${PYTHON_PN}-twisted \
|
||||
${PYTHON_PN}-zopeinterface \
|
||||
${PYTHON_PN}-py-ubjson \
|
||||
${PYTHON_PN}-cbor2 \
|
||||
${PYTHON_PN}-u-msgpack-python \
|
||||
${PYTHON_PN}-lz4 \
|
||||
${PYTHON_PN}-snappy \
|
||||
${PYTHON_PN}-pyopenssl \
|
||||
${PYTHON_PN}-txaio \
|
||||
${PYTHON_PN}-six \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,16 @@
|
||||
DESCRIPTION = "Self-service finite-state machines for the programmer on the go"
|
||||
HOMEPAGE = "https://github.com/glyph/Automat"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=4ad213bcca81688e94593e5f60c87477"
|
||||
|
||||
SRC_URI[sha256sum] = "e56beb84edad19dcc11d30e8d9b895f75deeb5ef5e96b84a467066b3b84bb04e"
|
||||
|
||||
DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
|
||||
|
||||
PYPI_PACKAGE = "Automat"
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
${PYTHON_PN}-attrs \
|
||||
${PYTHON_PN}-six \
|
||||
"
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
DESCRIPTION = "One version package to rule them all, One version package to find them, One version package to bring them all, and in the darkness bind them."
|
||||
HOMEPAGE = "https://pypi.org/project/awesomeversion/"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENCE.md;md5=92622b5a8e216099be741d78328bae5d"
|
||||
|
||||
SRC_URI[sha256sum] = "2f4190d333e81e10b2a4e156150ddb3596f5f11da67e9d51ba39057aa7a17f7e"
|
||||
|
||||
RDEPENDS:${PN} += "python3-profile python3-logging"
|
||||
|
||||
inherit pypi setuptools3
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
From 36f8106535150b970c75e8b8456ebc5a7d1dbdb3 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 2 Mar 2022 11:11:01 -0800
|
||||
Subject: [PATCH] setup.py: Use setuptools instead of distutils
|
||||
|
||||
distutils is deprecated and will be gone in 3.12+
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/aws/aws-iot-device-sdk-python/pull/305]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
setup.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 3846bae..d0c2b8d 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -3,7 +3,7 @@ sys.path.insert(0, 'AWSIoTPythonSDK')
|
||||
import AWSIoTPythonSDK
|
||||
currentVersion = AWSIoTPythonSDK.__version__
|
||||
|
||||
-from distutils.core import setup
|
||||
+from setuptools import setup
|
||||
setup(
|
||||
name = 'AWSIoTPythonSDK',
|
||||
packages=['AWSIoTPythonSDK', 'AWSIoTPythonSDK.core',
|
||||
--
|
||||
2.35.1
|
||||
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
DESCRIPTION = "SDK for connecting to AWS IoT using Python."
|
||||
HOMEPAGE = "https://github.com/aws/aws-iot-device-sdk-python"
|
||||
LICENSE = "Apache-2.0 & (EPL-1.0 | EDL-1.0)"
|
||||
LICENSE:${PN}-examples = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "\
|
||||
file://LICENSE.txt;md5=9ac49901b833e769c7d6f21e8dbd7b30 \
|
||||
file://AWSIoTPythonSDK/core/protocol/paho/client.py;endline=14;md5=5a3c8a1a4bb71bd934f450ecff972ad9 \
|
||||
"
|
||||
SRCREV = "0ea1a2d013529839fc1e7448d19dadff25d581b4"
|
||||
SRC_URI = "git://github.com/aws/aws-iot-device-sdk-python;branch=master;protocol=https \
|
||||
file://0001-setup.py-Use-setuptools-instead-of-distutils.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit setuptools3
|
||||
|
||||
PYPI_PACKAGE = "AWSIoTPythonSDK"
|
||||
|
||||
do_install:append() {
|
||||
install -d -m0755 ${D}${datadir}/${BPN}/examples
|
||||
cp --preserve=mode,timestamps -R ${S}/samples/* ${D}${datadir}/${BPN}/examples
|
||||
# this requires the full blown AWS Python SDK
|
||||
rm -r ${D}${datadir}/${BPN}/examples/basicPubSub
|
||||
}
|
||||
|
||||
PACKAGES =+ "${PN}-examples"
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
${PYTHON_PN}-crypt \
|
||||
${PYTHON_PN}-datetime \
|
||||
${PYTHON_PN}-io \
|
||||
${PYTHON_PN}-json \
|
||||
${PYTHON_PN}-logging \
|
||||
${PYTHON_PN}-math \
|
||||
${PYTHON_PN}-netclient \
|
||||
${PYTHON_PN}-numbers \
|
||||
${PYTHON_PN}-threading \
|
||||
"
|
||||
RDEPENDS:${PN}-examples += "${PN}"
|
||||
|
||||
FILES:${PN}-examples = "${datadir}/${BPN}/examples"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,12 @@
|
||||
SUMMARY = "Specifications for callback functions passed in to an API"
|
||||
HOMEPAGE = "https://github.com/takluyver/backcall"
|
||||
AUTHOR = "Thomas Kluyver <thomas@kluyver.me.uk>"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=40e56b724d016484a7f790ec826d3ffc"
|
||||
|
||||
PYPI_PACKAGE = "backcall"
|
||||
|
||||
SRC_URI[md5sum] = "1f4c9a370c78743406296f48e56e8821"
|
||||
SRC_URI[sha256sum] = "5cbdbf27be5e7cfadb448baf0aa95508f91f2bbc6c6437cd9cd06e2a4c215e1e"
|
||||
|
||||
inherit pypi python_flit_core
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
|
||||
@@ -0,0 +1,21 @@
|
||||
SUMMARY = "Security oriented static analyser for python code."
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=34400b68072d710fecd0a2940a0d1658"
|
||||
|
||||
SRC_URI[sha256sum] = "bdfc739baa03b880c2d15d0431b31c658ffc348e907fe197e54e0389dd59e11e"
|
||||
|
||||
DEPENDS = "python3-pbr-native python3-git python3-pbr python3-pyyaml python3-six python3-stevedore"
|
||||
|
||||
inherit setuptools3 pypi
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
python3-git \
|
||||
python3-modules \
|
||||
python3-pbr \
|
||||
python3-pyyaml \
|
||||
python3-rich \
|
||||
python3-six \
|
||||
python3-stevedore \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
SUMMARY = "Screen-scraping library"
|
||||
HOMEPAGE = " https://www.crummy.com/software/BeautifulSoup/bs4"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=15a76c7c51ecfc5c094d04f3ccd41a09"
|
||||
|
||||
SRC_URI[sha256sum] = "ad9aa55b65ef2808eb405f46cf74df7fcb7044d5cbc26487f96eb2ef2e436693"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} = "\
|
||||
${PYTHON_PN}-html5lib \
|
||||
${PYTHON_PN}-lxml \
|
||||
${PYTHON_PN}-soupsieve \
|
||||
${PYTHON_PN}-html \
|
||||
${PYTHON_PN}-logging \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,18 @@
|
||||
SUMMARY = "A behavior-driven development framework, Python style"
|
||||
HOMEPAGE = "https://github.com/behave/behave"
|
||||
LICENSE = "BSD-2-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=d950439e8ea6ed233e4288f5e1a49c06"
|
||||
|
||||
PV .= "+git${SRCREV}"
|
||||
SRCREV = "9520119376046aeff73804b5f1ea05d87a63f370"
|
||||
SRC_URI += "git://github.com/behave/behave;branch=master;protocol=https"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit setuptools3
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
${PYTHON_PN}-parse-type \
|
||||
${PYTHON_PN}-setuptools \
|
||||
${PYTHON_PN}-six \
|
||||
"
|
||||
+333
@@ -0,0 +1,333 @@
|
||||
From 0e0b63ae80df5d7849b2e1c5ab9a668e8378b5e8 Mon Sep 17 00:00:00 2001
|
||||
From: Zhixiong Chi <zhixiong.chi@windriver.com>
|
||||
Date: Tue, 28 Mar 2023 06:05:45 +0000
|
||||
Subject: [PATCH] Drop ptests fixtures and recorde_modes
|
||||
|
||||
The usage of fixture in test_fixtures has been deprecated.
|
||||
See https://docs.pytest.org/en/stable/explanation/fixtures.html and
|
||||
https://docs.pytest.org/en/stable/deprecations.html#calling-fixtures-directly
|
||||
for more information about fixtures.
|
||||
Meanwhile the test_record_modes relies on httpbin.org which has been sold and
|
||||
re-sold several times, and it adds X-Amzn-Trace-Id header that can possibly
|
||||
diff for each request.
|
||||
It leads to ptest failure, so drop it now until we find the solution.
|
||||
|
||||
Upstream-Status: Inappropriate [oe specific]
|
||||
|
||||
Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
|
||||
---
|
||||
tests/integration/test_fixtures.py | 60 -----------
|
||||
tests/integration/test_record_modes.py | 132 -------------------------
|
||||
tests/unit/test_fixtures.py | 94 ------------------
|
||||
3 files changed, 286 deletions(-)
|
||||
delete mode 100644 tests/integration/test_fixtures.py
|
||||
delete mode 100644 tests/integration/test_record_modes.py
|
||||
delete mode 100644 tests/unit/test_fixtures.py
|
||||
|
||||
diff --git a/tests/integration/test_fixtures.py b/tests/integration/test_fixtures.py
|
||||
deleted file mode 100644
|
||||
index fc3d1e7..0000000
|
||||
--- a/tests/integration/test_fixtures.py
|
||||
+++ /dev/null
|
||||
@@ -1,60 +0,0 @@
|
||||
-import os.path
|
||||
-
|
||||
-import pytest
|
||||
-
|
||||
-
|
||||
-@pytest.mark.usefixtures('betamax_session')
|
||||
-class TestPyTestFixtures:
|
||||
- @pytest.fixture(autouse=True)
|
||||
- def setup(self, request):
|
||||
- """After test hook to assert everything."""
|
||||
- def finalizer():
|
||||
- test_dir = os.path.abspath('.')
|
||||
- cassette_name = ('tests.integration.test_fixtures.' # Module name
|
||||
- 'TestPyTestFixtures.' # Class name
|
||||
- 'test_pytest_fixture' # Test function name
|
||||
- '.json')
|
||||
- file_name = os.path.join(test_dir, 'tests', 'cassettes',
|
||||
- cassette_name)
|
||||
- assert os.path.exists(file_name) is True
|
||||
-
|
||||
- request.addfinalizer(finalizer)
|
||||
-
|
||||
- def test_pytest_fixture(self, betamax_session):
|
||||
- """Exercise the fixture itself."""
|
||||
- resp = betamax_session.get('https://httpbin.org/get')
|
||||
- assert resp.ok
|
||||
-
|
||||
-
|
||||
-@pytest.mark.usefixtures('betamax_parametrized_session')
|
||||
-class TestPyTestParametrizedFixtures:
|
||||
- @pytest.fixture(autouse=True)
|
||||
- def setup(self, request):
|
||||
- """After test hook to assert everything."""
|
||||
- def finalizer():
|
||||
- test_dir = os.path.abspath('.')
|
||||
- cassette_name = ('tests.integration.test_fixtures.' # Module name
|
||||
- 'TestPyTestParametrizedFixtures.' # Class name
|
||||
- 'test_pytest_fixture' # Test function name
|
||||
- '[https---httpbin.org-get]' # Parameter
|
||||
- '.json')
|
||||
- file_name = os.path.join(test_dir, 'tests', 'cassettes',
|
||||
- cassette_name)
|
||||
- assert os.path.exists(file_name) is True
|
||||
-
|
||||
- request.addfinalizer(finalizer)
|
||||
-
|
||||
- @pytest.mark.parametrize('url', ('https://httpbin.org/get',))
|
||||
- def test_pytest_fixture(self, betamax_parametrized_session, url):
|
||||
- """Exercise the fixture itself."""
|
||||
- resp = betamax_parametrized_session.get(url)
|
||||
- assert resp.ok
|
||||
-
|
||||
-
|
||||
-@pytest.mark.parametrize('problematic_arg', [r'aaa\bbb', 'ccc:ddd', 'eee*fff'])
|
||||
-def test_pytest_parametrize_with_filesystem_problematic_chars(
|
||||
- betamax_parametrized_session, problematic_arg):
|
||||
- """
|
||||
- Exercice parametrized args containing characters which might cause
|
||||
- problems when getting translated into file names. """
|
||||
- assert True
|
||||
diff --git a/tests/integration/test_record_modes.py b/tests/integration/test_record_modes.py
|
||||
deleted file mode 100644
|
||||
index 58c8846..0000000
|
||||
--- a/tests/integration/test_record_modes.py
|
||||
+++ /dev/null
|
||||
@@ -1,132 +0,0 @@
|
||||
-from betamax import Betamax, BetamaxError
|
||||
-
|
||||
-from tests.integration.helper import IntegrationHelper
|
||||
-
|
||||
-
|
||||
-class TestRecordOnce(IntegrationHelper):
|
||||
- def test_records_new_interaction(self):
|
||||
- s = self.session
|
||||
- with Betamax(s).use_cassette('test_record_once') as betamax:
|
||||
- self.cassette_path = betamax.current_cassette.cassette_path
|
||||
- assert betamax.current_cassette.is_empty() is True
|
||||
- r = s.get('http://httpbin.org/get')
|
||||
- assert r.status_code == 200
|
||||
- assert betamax.current_cassette.is_empty() is True
|
||||
- assert betamax.current_cassette.interactions != []
|
||||
-
|
||||
- def test_replays_response_from_cassette(self):
|
||||
- s = self.session
|
||||
- with Betamax(s).use_cassette('test_replays_response') as betamax:
|
||||
- self.cassette_path = betamax.current_cassette.cassette_path
|
||||
- assert betamax.current_cassette.is_empty() is True
|
||||
- r0 = s.get('http://httpbin.org/get')
|
||||
- assert r0.status_code == 200
|
||||
- assert betamax.current_cassette.interactions != []
|
||||
- assert len(betamax.current_cassette.interactions) == 1
|
||||
- r1 = s.get('http://httpbin.org/get')
|
||||
- assert len(betamax.current_cassette.interactions) == 2
|
||||
- assert r1.status_code == 200
|
||||
- r0_headers = r0.headers.copy()
|
||||
- r0_headers.pop('Date')
|
||||
- r0_headers.pop('Age', None)
|
||||
- r0_headers.pop('X-Processed-Time', None)
|
||||
- r1_headers = r1.headers.copy()
|
||||
- r1_headers.pop('Date')
|
||||
- r1_headers.pop('Age', None)
|
||||
- r1_headers.pop('X-Processed-Time', None)
|
||||
- # NOTE(sigmavirus24): This fails if the second request is
|
||||
- # technically a second later. Ignoring the Date headers allows
|
||||
- # this test to succeed.
|
||||
- # NOTE(hroncok): httpbin.org added X-Processed-Time header that
|
||||
- # can possibly differ (and often does)
|
||||
- assert r0_headers == r1_headers
|
||||
- assert r0.content == r1.content
|
||||
-
|
||||
-
|
||||
-class TestRecordNone(IntegrationHelper):
|
||||
- def test_raises_exception_when_no_interactions_present(self):
|
||||
- s = self.session
|
||||
- with Betamax(s) as betamax:
|
||||
- betamax.use_cassette('test', record='none')
|
||||
- self.cassette_created = False
|
||||
- assert betamax.current_cassette is not None
|
||||
- self.assertRaises(BetamaxError, s.get, 'http://httpbin.org/get')
|
||||
-
|
||||
- def test_record_none_does_not_create_cassettes(self):
|
||||
- s = self.session
|
||||
- with Betamax(s) as betamax:
|
||||
- self.assertRaises(ValueError, betamax.use_cassette,
|
||||
- 'test_record_none', record='none')
|
||||
- self.cassette_created = False
|
||||
-
|
||||
-
|
||||
-class TestRecordNewEpisodes(IntegrationHelper):
|
||||
- def setUp(self):
|
||||
- super(TestRecordNewEpisodes, self).setUp()
|
||||
- with Betamax(self.session).use_cassette('test_record_new'):
|
||||
- self.session.get('http://httpbin.org/get')
|
||||
- self.session.get('http://httpbin.org/redirect/2')
|
||||
-
|
||||
- def test_records_new_events_with_existing_cassette(self):
|
||||
- s = self.session
|
||||
- opts = {'record': 'new_episodes'}
|
||||
- with Betamax(s).use_cassette('test_record_new', **opts) as betamax:
|
||||
- cassette = betamax.current_cassette
|
||||
- self.cassette_path = cassette.cassette_path
|
||||
- assert cassette.interactions != []
|
||||
- assert len(cassette.interactions) == 4
|
||||
- assert cassette.is_empty() is False
|
||||
- s.get('https://httpbin.org/get')
|
||||
- assert len(cassette.interactions) == 5
|
||||
-
|
||||
- with Betamax(s).use_cassette('test_record_new') as betamax:
|
||||
- cassette = betamax.current_cassette
|
||||
- assert len(cassette.interactions) == 5
|
||||
- r = s.get('https://httpbin.org/get')
|
||||
- assert r.status_code == 200
|
||||
-
|
||||
-
|
||||
-class TestRecordNewEpisodesCreatesCassettes(IntegrationHelper):
|
||||
- def test_creates_new_cassettes(self):
|
||||
- recorder = Betamax(self.session)
|
||||
- opts = {'record': 'new_episodes'}
|
||||
- cassette_name = 'test_record_new_makes_new_cassettes'
|
||||
- with recorder.use_cassette(cassette_name, **opts) as betamax:
|
||||
- self.cassette_path = betamax.current_cassette.cassette_path
|
||||
- self.session.get('https://httpbin.org/get')
|
||||
-
|
||||
-
|
||||
-class TestRecordAll(IntegrationHelper):
|
||||
- def setUp(self):
|
||||
- super(TestRecordAll, self).setUp()
|
||||
- with Betamax(self.session).use_cassette('test_record_all'):
|
||||
- self.session.get('http://httpbin.org/get')
|
||||
- self.session.get('http://httpbin.org/redirect/2')
|
||||
- self.session.get('http://httpbin.org/get')
|
||||
-
|
||||
- def test_records_new_interactions(self):
|
||||
- s = self.session
|
||||
- opts = {'record': 'all'}
|
||||
- with Betamax(s).use_cassette('test_record_all', **opts) as betamax:
|
||||
- cassette = betamax.current_cassette
|
||||
- self.cassette_path = cassette.cassette_path
|
||||
- assert cassette.interactions != []
|
||||
- assert len(cassette.interactions) == 5
|
||||
- assert cassette.is_empty() is False
|
||||
- s.post('http://httpbin.org/post', data={'foo': 'bar'})
|
||||
- assert len(cassette.interactions) == 6
|
||||
-
|
||||
- with Betamax(s).use_cassette('test_record_all') as betamax:
|
||||
- assert len(betamax.current_cassette.interactions) == 6
|
||||
-
|
||||
- def test_replaces_old_interactions(self):
|
||||
- s = self.session
|
||||
- opts = {'record': 'all'}
|
||||
- with Betamax(s).use_cassette('test_record_all', **opts) as betamax:
|
||||
- cassette = betamax.current_cassette
|
||||
- self.cassette_path = cassette.cassette_path
|
||||
- assert cassette.interactions != []
|
||||
- assert len(cassette.interactions) == 5
|
||||
- assert cassette.is_empty() is False
|
||||
- s.get('http://httpbin.org/get')
|
||||
- assert len(cassette.interactions) == 5
|
||||
diff --git a/tests/unit/test_fixtures.py b/tests/unit/test_fixtures.py
|
||||
deleted file mode 100644
|
||||
index 387d9ce..0000000
|
||||
--- a/tests/unit/test_fixtures.py
|
||||
+++ /dev/null
|
||||
@@ -1,94 +0,0 @@
|
||||
-try:
|
||||
- import unittest.mock as mock
|
||||
-except ImportError:
|
||||
- import mock
|
||||
-
|
||||
-import pytest
|
||||
-import unittest
|
||||
-
|
||||
-import requests
|
||||
-
|
||||
-import betamax
|
||||
-from betamax.fixtures import pytest as pytest_fixture
|
||||
-from betamax.fixtures import unittest as unittest_fixture
|
||||
-
|
||||
-
|
||||
-class TestPyTestFixture(unittest.TestCase):
|
||||
- def setUp(self):
|
||||
- self.mocked_betamax = mock.MagicMock()
|
||||
- self.patched_betamax = mock.patch.object(
|
||||
- betamax.recorder, 'Betamax', return_value=self.mocked_betamax)
|
||||
- self.patched_betamax.start()
|
||||
-
|
||||
- def tearDown(self):
|
||||
- self.patched_betamax.stop()
|
||||
-
|
||||
- def test_adds_stop_as_a_finalizer(self):
|
||||
- # Mock a pytest request object
|
||||
- request = mock.MagicMock()
|
||||
- request.cls = request.module = None
|
||||
- request.function.__name__ = 'test'
|
||||
-
|
||||
- pytest_fixture.betamax_recorder(request)
|
||||
- assert request.addfinalizer.called is True
|
||||
- request.addfinalizer.assert_called_once_with(self.mocked_betamax.stop)
|
||||
-
|
||||
- def test_auto_starts_the_recorder(self):
|
||||
- # Mock a pytest request object
|
||||
- request = mock.MagicMock()
|
||||
- request.cls = request.module = None
|
||||
- request.function.__name__ = 'test'
|
||||
-
|
||||
- pytest_fixture.betamax_recorder(request)
|
||||
- self.mocked_betamax.start.assert_called_once_with()
|
||||
-
|
||||
-
|
||||
-class FakeBetamaxTestCase(unittest_fixture.BetamaxTestCase):
|
||||
- def test_fake(self):
|
||||
- pass
|
||||
-
|
||||
-
|
||||
-class TestUnittestFixture(unittest.TestCase):
|
||||
- def setUp(self):
|
||||
- self.mocked_betamax = mock.MagicMock()
|
||||
- self.patched_betamax = mock.patch.object(
|
||||
- betamax.recorder, 'Betamax', return_value=self.mocked_betamax)
|
||||
- self.betamax = self.patched_betamax.start()
|
||||
- self.fixture = FakeBetamaxTestCase(methodName='test_fake')
|
||||
-
|
||||
- def tearDown(self):
|
||||
- self.patched_betamax.stop()
|
||||
-
|
||||
- def test_setUp(self):
|
||||
- self.fixture.setUp()
|
||||
-
|
||||
- self.mocked_betamax.use_cassette.assert_called_once_with(
|
||||
- 'FakeBetamaxTestCase.test_fake'
|
||||
- )
|
||||
- self.mocked_betamax.start.assert_called_once_with()
|
||||
-
|
||||
- def test_setUp_rejects_arbitrary_session_classes(self):
|
||||
- self.fixture.SESSION_CLASS = object
|
||||
-
|
||||
- with pytest.raises(AssertionError):
|
||||
- self.fixture.setUp()
|
||||
-
|
||||
- def test_setUp_accepts_session_subclasses(self):
|
||||
- class TestSession(requests.Session):
|
||||
- pass
|
||||
-
|
||||
- self.fixture.SESSION_CLASS = TestSession
|
||||
-
|
||||
- self.fixture.setUp()
|
||||
-
|
||||
- assert self.betamax.called is True
|
||||
- call_kwargs = self.betamax.call_args[-1]
|
||||
- assert isinstance(call_kwargs['session'], TestSession)
|
||||
-
|
||||
- def test_tearDown_calls_stop(self):
|
||||
- recorder = mock.Mock()
|
||||
- self.fixture.recorder = recorder
|
||||
-
|
||||
- self.fixture.tearDown()
|
||||
-
|
||||
- recorder.stop.assert_called_once_with()
|
||||
--
|
||||
2.35.5
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
|
||||
@@ -0,0 +1,28 @@
|
||||
DESCRIPTION = "VCR imitation for python requests"
|
||||
HOMEPAGE = "https://github.com/betamaxpy/betamax"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=61c15f0c146c5fb1a8ce8ba2f310d73c"
|
||||
|
||||
SRC_URI += " \
|
||||
file://run-ptest \
|
||||
file://0001-Drop-ptests-fixtures-and-recorde_modes.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "b8182d43a200fc126a3bf7555626f964"
|
||||
SRC_URI[sha256sum] = "5bf004ceffccae881213fb722f34517166b84a34919b92ffc14d1dbd050b71c2"
|
||||
|
||||
inherit pypi setuptools3 ptest
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-requests \
|
||||
python3-unittest \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
${PYTHON_PN}-pytest \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
SUMMARY = "The bidirectional mapping library for Python."
|
||||
DESCRIPTION = "The bidirectional mapping library for Python."
|
||||
HOMEPAGE = "https://bidict.readthedocs.io/"
|
||||
LICENSE = "MPL-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=858e74278ef3830d46481172ae03c819"
|
||||
|
||||
SRC_URI[sha256sum] = "1e0f7f74e4860e6d0943a05d4134c63a2fad86f3d4732fb265bd79e4e856d81d"
|
||||
|
||||
inherit pypi python_setuptools_build_meta
|
||||
|
||||
DEPENDS += "python3-setuptools-scm-native"
|
||||
@@ -0,0 +1,23 @@
|
||||
SUMMARY = "Firmware analysis tool"
|
||||
DESCRIPTION = "This package contains Python Binwalk tool. Binwalk is a fast, \
|
||||
easy to use tool for analyzing, reverse engineering, and extracting firmware \
|
||||
images."
|
||||
HOMEPAGE = "https://github.com/ReFirmLabs/binwalk"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=65bbee055d3ea3bfc475f07aecf4de64"
|
||||
|
||||
SRC_URI = "git://github.com/ReFirmLabs/binwalk;protocol=https;branch=master"
|
||||
|
||||
SRCREV = "fa0c0bd59b8588814756942fe4cb5452e76c1dcd"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit setuptools3
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-compression \
|
||||
python3-logging \
|
||||
python3-netserver \
|
||||
python3-setuptools \
|
||||
python3-stringold \
|
||||
"
|
||||
@@ -0,0 +1,10 @@
|
||||
SUMMARY = "A high-level Python efficient arrays of booleans -- C extension"
|
||||
HOMEPAGE = "https://github.com/ilanschnell/bitarray"
|
||||
LICENSE = "PSF-2.0"
|
||||
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=2ad702cdcd49e8d2ac01d7e7d0810d2d"
|
||||
|
||||
SRC_URI[sha256sum] = "3807f9323c308bc3f9b58cbe5d04dc28f34ac32d852999334da96b42f64b5356"
|
||||
|
||||
inherit setuptools3 pypi
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,19 @@
|
||||
SUMMARY = "Simple construction, analysis and modification of binary data."
|
||||
HOMEPAGE = "https://github.com/scott-griffiths/bitstring"
|
||||
AUTHOR = "Scott Griffiths <dr.scottgriffiths@gmail.com>"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=f7f2fd3f1cd52b5ccd39d76fb3568d3f"
|
||||
|
||||
SRC_URI[sha256sum] = "a5848a3f63111785224dca8bb4c0a75b62ecdef56a042c8d6be74b16f7e860e7"
|
||||
|
||||
PYPI_PACKAGE = "bitstring"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} = "\
|
||||
${PYTHON_PN}-core \
|
||||
${PYTHON_PN}-numbers \
|
||||
${PYTHON_PN}-mmap \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,13 @@
|
||||
DESCRIPTION = "This module performs conversions between Python values and C bit field structs represented as Python byte strings."
|
||||
HOMEPAGE = "https://github.com/eerimoq/bitstruct"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=d9aa4ec07de78abae21c490c9ffe61bd"
|
||||
|
||||
SRC_URI[sha256sum] = "eb94b40e4218a23aa8f90406b836a9e6ed83e48b8d112ce3f96408463bd1b874"
|
||||
|
||||
PYPI_PACKAGE = "bitstruct"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
Upstream-Status: Pending
|
||||
|
||||
--- a/pyproject.toml 2023-04-19 19:04:47.159474100 -0300
|
||||
+++ b/pyproject.toml 2023-05-04 08:08:12.289941765 -0300
|
||||
@@ -31,15 +31,15 @@
|
||||
bleak-winrt = { version = "^1.2.0", markers = "platform_system=='Windows'" }
|
||||
dbus-fast = { version = "^1.83.0", markers = "platform_system == 'Linux'" }
|
||||
|
||||
-[tool.poetry.group.docs.dependencies]
|
||||
+#[tool.poetry.group.docs.dependencies]
|
||||
Sphinx = { version = "^5.1.1", python = ">=3.8" }
|
||||
sphinx-rtd-theme = "^1.0.0"
|
||||
|
||||
-[tool.poetry.group.lint.dependencies]
|
||||
+#[tool.poetry.group.lint.dependencies]
|
||||
black = "^22.1.0"
|
||||
flake8 = { version = "^5.0.0", python = ">=3.8" }
|
||||
|
||||
-[tool.poetry.group.test.dependencies]
|
||||
+#[tool.poetry.group.test.dependencies]
|
||||
asynctest = { version = "^0.13.0", python = "<3.8" }
|
||||
pytest = "^7.0.0"
|
||||
pytest-asyncio = "^0.19.0"
|
||||
@@ -0,0 +1,20 @@
|
||||
SUMMARY = "Bleak is a GATT client software, capable of connecting to BLE devices acting as GATT servers."
|
||||
HOMEPAGE = "https://github.com/hbldh/bleak"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=bcbc2069a86cba1b5e47253679f66ed7"
|
||||
|
||||
SRC_URI:append = " \
|
||||
file://0001-fix-poetry-version-compatibility.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "6c92a47abe34e6dea8ffc5cea9457cbff6e1be966854839dbc25cddb36b79ee4"
|
||||
|
||||
PYPI_PACKAGE = "bleak"
|
||||
|
||||
inherit pypi python_poetry_core
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-core (>=3.7) \
|
||||
python3-async-timeout \
|
||||
python3-dbus-fast \
|
||||
"
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
|
||||
@@ -0,0 +1,18 @@
|
||||
DESCRIPTION = "Fast, simple object-to-object and broadcast signaling."
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=42cd19c88fc13d1307a4efd64ee90e4e"
|
||||
|
||||
SRC_URI[sha256sum] = "923e5e2f69c155f2cc42dafbbd70e16e3fde24d2d4aa2ab72fbe386238892462"
|
||||
|
||||
inherit pypi setuptools3 ptest
|
||||
|
||||
SRC_URI += "file://run-ptest"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
${PYTHON_PN}-pytest \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
SUMMARY = "Define boolean algebras, create and parse boolean expressions and create custom boolean DSL"
|
||||
HOMEPAGE = "https://github.com/bastikr/boolean.py"
|
||||
|
||||
LICENSE = "BSD-2-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d118b5feceee598ebeca76e13395c2bd"
|
||||
|
||||
SRC_URI[sha256sum] = "17b9a181630e43dde1851d42bef546d616d5d9b4480357514597e78b203d06e4"
|
||||
|
||||
PYPI_PACKAGE = "boolean.py"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,18 @@
|
||||
SUMMARY = "Brotli compression format"
|
||||
HOMEPAGE = "https://pypi.org/project/Brotli/"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=941ee9cd1609382f946352712a319b4b"
|
||||
|
||||
PYPI_PACKAGE = "Brotli"
|
||||
PYPI_PACKAGE_EXT = "zip"
|
||||
|
||||
SRC_URI[sha256sum] = "4d1b810aa0ed773f81dceda2cc7b403d01057458730e309856356d4ef4188438"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} = "\
|
||||
${PYTHON_PN}-cffi \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,29 @@
|
||||
SUMMARY = "httplib2 caching for requests"
|
||||
HOMEPAGE = "https://pypi.org/project/CacheControl/"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=12;endline=12;md5=e2fd6ddcf506e08972d5ba4b93c0022e"
|
||||
|
||||
# On PyPi, this is "CacheControl", rather than "cachecontrol", so we need to
|
||||
# override PYPI_PACKAGE so fetch succeeds.
|
||||
PYPI_PACKAGE = "CacheControl"
|
||||
|
||||
SRC_URI[sha256sum] = "fd3fd2cb0ca66b9a6c1d56cc9709e7e49c63dbd19b1b1bcbd8d3f94cedfe8ce5"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
python3-crypt \
|
||||
python3-datetime \
|
||||
python3-email \
|
||||
python3-lockfile \
|
||||
python3-json \
|
||||
python3-logging \
|
||||
python3-msgpack \
|
||||
python3-netclient \
|
||||
python3-pickle \
|
||||
python3-requests \
|
||||
python3-urllib3 \
|
||||
python3-mmap \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
SUMMARY = "A decorator for caching properties in classes."
|
||||
DESCRIPTION = "Makes caching of time or computational expensive properties quick and easy."
|
||||
HOMEPAGE = "https://pypi.org/project/cached-property/"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=db7ff60c4e14f58534201242803d8abc"
|
||||
|
||||
SRC_URI[sha256sum] = "9fa5755838eecbb2d234c3aa390bd80fbd3ac6b6869109bfc1b499f7bd89a130"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
|
||||
@@ -0,0 +1,32 @@
|
||||
SUMMARY = "Extensible memoizing collections and decorators"
|
||||
HOMEPAGE = "https://github.com/tkem/cachetools"
|
||||
DESCRIPTION = "This module provides various memoizing \
|
||||
collections and decorators, including variants of the \
|
||||
Python 3 Standard Library @lru_cache function decorator."
|
||||
SECTION = "devel/python"
|
||||
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=1ec55353c80c662e4255f8889a0ca558"
|
||||
|
||||
inherit pypi python_setuptools_build_meta ptest
|
||||
|
||||
SRC_URI += " \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
${PYTHON_PN}-math \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
${PYTHON_PN}-pytest \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||
}
|
||||
|
||||
SRC_URI[sha256sum] = "dce83f2d9b4e1f732a8cd44af8e8fab2dbe46201467fc98b3ef8f269092bf62b"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,29 @@
|
||||
SUMMARY = "Controller Area Network (CAN) interface module for Python"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "LGPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e6a600fd5e1d9cbde2d983680233ad02"
|
||||
|
||||
SRC_URI[sha256sum] = "6ad50f4613289f3c4d276b6d2ac8901d776dcb929994cce93f55a69e858c595f"
|
||||
|
||||
PYPI_PACKAGE="python-can"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-aenum \
|
||||
python3-asyncio \
|
||||
python3-codecs \
|
||||
python3-compression \
|
||||
python3-ctypes \
|
||||
python3-fcntl \
|
||||
python3-json \
|
||||
python3-logging \
|
||||
python3-misc \
|
||||
python3-netserver \
|
||||
python3-pkg-resources \
|
||||
python3-sqlite3 \
|
||||
python3-typing-extensions \
|
||||
python3-wrapt \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,22 @@
|
||||
DESCRIPTION = "CAN BUS tools in Python 3."
|
||||
HOMEPAGE = "https://github.com/eerimoq/cantools"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=d9aa4ec07de78abae21c490c9ffe61bd"
|
||||
|
||||
SRC_URI[sha256sum] = "93bfe6f4bd652f369763ea9162b027a62f424a8400f2423d41137918ce68c68e"
|
||||
|
||||
PYPI_PACKAGE = "cantools"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
${PYTHON_PN}-can \
|
||||
${PYTHON_PN}-bitstruct \
|
||||
${PYTHON_PN}-core \
|
||||
${PYTHON_PN}-textparser \
|
||||
${PYTHON_PN}-typing-extensions \
|
||||
${PYTHON_PN}-diskcache \
|
||||
${PYTHON_PN}-asyncio \
|
||||
"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
SUMMARY = "DataStax Python Driver for Apache Cassandra"
|
||||
DESCRIPTION = "A modern, feature-rich and highly-tunable Python client \
|
||||
library for Apache Cassandra (1.2+) and DataStax Enterprise (3.1+) using \
|
||||
exclusively Cassandra's binary protocol and Cassandra Query Language v3."
|
||||
HOMEPAGE = "https://github.com/datastax/python-driver"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
|
||||
SRCNAME = "cassandra-driver"
|
||||
|
||||
SRC_URI[sha256sum] = "64ff130d19f994b80997c14343a8306be52a0e7ab92520a534eed944c88d70df"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
${PYTHON_PN}-cython \
|
||||
${PYTHON_PN}-geomet \
|
||||
${PYTHON_PN}-json \
|
||||
${PYTHON_PN}-misc \
|
||||
${PYTHON_PN}-multiprocessing \
|
||||
${PYTHON_PN}-numbers \
|
||||
${PYTHON_PN}-six \
|
||||
libevent \
|
||||
"
|
||||
|
||||
DEPENDS += "\
|
||||
${PYTHON_PN}-cython \
|
||||
"
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
|
||||
@@ -0,0 +1,31 @@
|
||||
DESCRIPTION = "An implementation of RFC 7049 - Concise Binary Object Representation (CBOR)."
|
||||
DEPENDS +="${PYTHON_PN}-setuptools-scm-native"
|
||||
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
|
||||
|
||||
SRC_URI[sha256sum] = "b893500db0fe033e570c3adc956af6eefc57e280026bd2d86fd53da9f1e594d7"
|
||||
|
||||
inherit pypi python_setuptools_build_meta ptest
|
||||
|
||||
DEPENDS += "python3-setuptools-scm-native"
|
||||
|
||||
SRC_URI += " \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
${PYTHON_PN}-pytest \
|
||||
${PYTHON_PN}-unixadmin \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||
}
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
${PYTHON_PN}-datetime \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,12 @@
|
||||
SUMMARY = "Universal character encoding detector"
|
||||
HOMEPAGE = "https://github.com/PyYoshi/cChardet"
|
||||
LICENSE = "MPL-1.1"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=6ecda54f6f525388d71d6b3cd92f7474"
|
||||
|
||||
SRC_URI[sha256sum] = "c428b6336545053c2589f6caf24ea32276c6664cb86db817e03a94c60afa0eaf"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
DEPENDS += "python3-cython-native"
|
||||
@@ -0,0 +1,13 @@
|
||||
SUMMARY = "Lightweight, extensible schema and data validation tool for Python dictionaries."
|
||||
HOMEPAGE = "http://docs.python-cerberus.org/"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "ISC"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=48f8e9432d0dac5e0e7a18211a0bacdb"
|
||||
|
||||
RDEPENDS:${PN} += "python3-setuptools"
|
||||
|
||||
# The PyPI package uses a capital letter so we have to specify this explicitly
|
||||
PYPI_PACKAGE = "Cerberus"
|
||||
inherit pypi setuptools3
|
||||
|
||||
SRC_URI[sha256sum] = "d1b21b3954b2498d9a79edf16b3170a3ac1021df88d197dc2ce5928ba519237c"
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
SUMMARY = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet."
|
||||
HOMEPAGE = "https://github.com/ousret/charset_normalizer"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=0974a390827087287db39928f7c524b5"
|
||||
|
||||
SRC_URI[sha256sum] = "34e0a2f9c370eb95597aae63bf85eb5e96826d81e3dcf88b8886012906f509b5"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
${PYTHON_PN}-core \
|
||||
${PYTHON_PN}-logging \
|
||||
${PYTHON_PN}-codecs \
|
||||
${PYTHON_PN}-json \
|
||||
"
|
||||
@@ -0,0 +1,14 @@
|
||||
SUMMARY = "Python template engine and code generation tool"
|
||||
HOMEPAGE = "https://cheetahtemplate.org/"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=15e13a4ed0e5880e3e55ec88b0921181"
|
||||
|
||||
PYPI_PACKAGE = "Cheetah3"
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} = "python3-pickle python3-pprint"
|
||||
RDEPENDS:${PN}:class-native = ""
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
SRC_URI[sha256sum] = "58b5d84e5fbff6cf8e117414b3ea49ef51654c02ee887d155113c5b91d761967"
|
||||
@@ -0,0 +1,10 @@
|
||||
SUMMARY = "Smart, pythonic, ad-hoc, typed polymorphism for Python."
|
||||
|
||||
LICENSE = "BSD-2-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=155fbcc756c8ae5265d252d23e20908f"
|
||||
|
||||
SRC_URI[sha256sum] = "4de4fdd6c5c38607bbd8ad76703d7cc4dbe007cfa78e8ef1f62fc6ac55303e23"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += "python3-typing-extensions"
|
||||
@@ -0,0 +1,10 @@
|
||||
SUMMARY = "REPL plugin for Click"
|
||||
HOMEPAGE = "https://github.com/untitaker/click-repl"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=580facc4832cac548fad94845542da44"
|
||||
|
||||
SRC_URI[sha256sum] = "17849c23dba3d667247dc4defe1757fff98694e90fe37474f3feebb69ced26a9"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} = "${PYTHON_PN}-click ${PYTHON_PN}-prompt-toolkit"
|
||||
@@ -0,0 +1,11 @@
|
||||
SUMMARY = "Spinner for Click"
|
||||
HOMEPAGE = "https://github.com/click-contrib/click-spinner"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=8227180126797a0148f94f483f3e1489"
|
||||
|
||||
SRC_URI[md5sum] = "ab68ed404401421819c81cc6c0677a87"
|
||||
SRC_URI[sha256sum] = "87eacf9d7298973a25d7615ef57d4782aebf913a532bba4b28a37e366e975daf"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += "python3-json"
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
From da83bd7ca0959027086115f23534957b0917aaa5 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 27 Apr 2023 22:21:24 -0700
|
||||
Subject: [PATCH] tests: Fix test_bytes_args
|
||||
|
||||
sys.stdin.encoding is readonly therefore use Mocking to wrap it.
|
||||
Sourced from - Alpine
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
tests/test_arguments.py | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test_arguments.py b/tests/test_arguments.py
|
||||
index 735df4b..3395c55 100644
|
||||
--- a/tests/test_arguments.py
|
||||
+++ b/tests/test_arguments.py
|
||||
@@ -1,4 +1,5 @@
|
||||
import sys
|
||||
+from unittest import mock
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -86,9 +87,12 @@ def test_bytes_args(runner, monkeypatch):
|
||||
), "UTF-8 encoded argument should be implicitly converted to Unicode"
|
||||
|
||||
# Simulate empty locale environment variables
|
||||
- monkeypatch.setattr(sys.stdin, "encoding", "utf-8")
|
||||
monkeypatch.setattr(sys, "getfilesystemencoding", lambda: "utf-8")
|
||||
monkeypatch.setattr(sys, "getdefaultencoding", lambda: "utf-8")
|
||||
+ # sys.stdin.encoding is readonly, needs some extra effort to patch.
|
||||
+ stdin = mock.Mock(wraps=sys.stdin)
|
||||
+ stdin.encoding = "utf-8"
|
||||
+ monkeypatch.setattr(sys, "stdin", stdin)
|
||||
|
||||
runner.invoke(
|
||||
from_bytes,
|
||||
--
|
||||
2.40.1
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
|
||||
@@ -0,0 +1,42 @@
|
||||
SUMMARY = "A simple wrapper around optparse for powerful command line utilities."
|
||||
DESCRIPTION = "\
|
||||
Click is a Python package for creating beautiful command line interfaces \
|
||||
in a composable way with as little code as necessary. It's the "Command \
|
||||
Line Interface Creation Kit". It's highly configurable but comes with \
|
||||
sensible defaults out of the box."
|
||||
HOMEPAGE = "http://click.pocoo.org/"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=1fa98232fd645608937a0fdc82e999b8"
|
||||
|
||||
SRC_URI[sha256sum] = "7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e"
|
||||
|
||||
inherit pypi setuptools3 ptest
|
||||
|
||||
SRC_URI += " \
|
||||
file://0001-tests-Fix-test_bytes_args.patch \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
${PYTHON_PN}-pytest \
|
||||
${PYTHON_PN}-terminal \
|
||||
${PYTHON_PN}-unixadmin \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||
cp -rf ${S}/setup.cfg ${D}${PTEST_PATH}/
|
||||
cp -rf ${S}/docs ${D}${PTEST_PATH}/
|
||||
}
|
||||
|
||||
UPSTREAM_CHECK_REGEX = "click/(?P<pver>\d+(\.\d+)+)/"
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
${PYTHON_PN}-io \
|
||||
${PYTHON_PN}-threading \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,11 @@
|
||||
cmake_minimum_required(VERSION 3.6)
|
||||
|
||||
#
|
||||
# For more details, see docs/building.rst
|
||||
#
|
||||
|
||||
project(CMakePythonDistributions NONE)
|
||||
|
||||
install(CODE "
|
||||
message(STATUS \"Install CMake project\")
|
||||
")
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
Upstream-Status: Pending
|
||||
|
||||
--- cmake-3.25.2/src/cmake/__init__.py.old 2023-03-10 09:40:43.582315753 +0100
|
||||
+++ cmake-3.25.2/src/cmake/__init__.py 2023-03-10 09:41:38.030874047 +0100
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
|
||||
def _program(name, args):
|
||||
- return subprocess.call([os.path.join(CMAKE_BIN_DIR, name)] + args, close_fds=False)
|
||||
+ return subprocess.call([name] + args, close_fds=False)
|
||||
|
||||
|
||||
def cmake():
|
||||
@@ -0,0 +1,37 @@
|
||||
SUMMARY = "CMake is an open-source, cross-platform family of tools designed to build, test and package software"
|
||||
LICENSE = "BSD-3-Clause & Apache-2.0"
|
||||
LIC_FILES_CHKSUM = " \
|
||||
file://LICENSE_BSD_3;md5=9134cb61aebbdd79dd826ccb9ae6afcd \
|
||||
file://LICENSE_Apache_20;md5=19cbd64715b51267a47bf3750cc6a8a5 \
|
||||
"
|
||||
|
||||
DEPENDS = "ninja-native cmake-native python3-scikit-build-native"
|
||||
|
||||
PYPI_PACKAGE = "cmake"
|
||||
PYPI_ARCHIVE_NAME_PREFIX = "pypi-"
|
||||
|
||||
inherit pypi python_setuptools_build_meta
|
||||
SRC_URI[sha256sum] = "d45b30b9ce7280829888c78650177ab525df2b6785e1a5b3d82b4c147d828c0e"
|
||||
|
||||
SRC_URI += " \
|
||||
file://CMakeLists.txt \
|
||||
file://run-cmake-from-path.patch \
|
||||
"
|
||||
|
||||
addtask do_patchbuild after do_patch before do_configure
|
||||
|
||||
do_patchbuild () {
|
||||
rm -f ${S}/CMakeLists.txt
|
||||
cp ${WORKDIR}/CMakeLists.txt ${S}/
|
||||
}
|
||||
|
||||
do_install:append () {
|
||||
rm -rf ${D}${bindir}
|
||||
}
|
||||
|
||||
RDEPENDS:${PN} = " \
|
||||
cmake \
|
||||
python3-scikit-build \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,23 @@
|
||||
SUMMARY = "Extra features for standard library's cmd module"
|
||||
HOMEPAGE = "https://github.com/python-cmd2/cmd2"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=fad7740aa21780c8b9a214f5b320b4ad"
|
||||
|
||||
DEPENDS += "${PYTHON_PN}-setuptools-scm-native"
|
||||
|
||||
SRC_URI[sha256sum] = "71873c11f72bd19e2b1db578214716f0d4f7c8fa250093c601265a9a717dee52"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
${PYTHON_PN}-attrs \
|
||||
${PYTHON_PN}-colorama \
|
||||
${PYTHON_PN}-pyperclip \
|
||||
${PYTHON_PN}-wcwidth \
|
||||
${PYTHON_PN}-compression \
|
||||
${PYTHON_PN}-pydoc \
|
||||
${PYTHON_PN}-json \
|
||||
${PYTHON_PN}-numbers \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,14 @@
|
||||
SUMMARY = "Cross-platform colored terminal text."
|
||||
HOMEPAGE = "https://github.com/tartley/colorama"
|
||||
LICENSE = "BSD-2-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b4936429a56a652b84c5c01280dcaa26"
|
||||
|
||||
inherit pypi python_setuptools_build_meta
|
||||
|
||||
SRC_URI[sha256sum] = "08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"
|
||||
|
||||
DEPENDS += " \
|
||||
${PYTHON_PN}-hatchling-native \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,19 @@
|
||||
DESCRIPTION = "Colored terminal output for Python's logging module"
|
||||
HOMEPAGE = "https://coloredlogs.readthedocs.io"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=764e737b117a38d773609885e8d04f0b"
|
||||
|
||||
SRC_URI[sha256sum] = "7c991aa71a4577af2f82600d8f8f3a89f936baeaf9b50a9c197da014e5bf16b0"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
do_install:append() {
|
||||
rm -rf ${D}${datadir}
|
||||
}
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
${PYTHON_PN}-humanfriendly \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,12 @@
|
||||
DESCRIPTION = "A colored formatter for the python logging module"
|
||||
HOMEPAGE = "https://github.com/borntyping/python-colorlog"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=5c3c6ebdec7792ae12df8d1c0a46b26a"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
PYPI_PACKAGE = "colorlog"
|
||||
|
||||
SRC_URI[sha256sum] = "bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5"
|
||||
|
||||
RDEPENDS:${PN} += "python3-logging"
|
||||
@@ -0,0 +1,19 @@
|
||||
SUMMARY = "colorzero is a color manipulation library for Python"
|
||||
DESCRIPTION = "colorzero is a color manipulation library for Python \
|
||||
(yes, another one) which aims to be reasonably simple to use and \
|
||||
"pythonic" in nature."
|
||||
HOMEPAGE = " https://github.com/waveform80/colorzero "
|
||||
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ae6c62710c0646f3c60d1ad812ea9bf9"
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-image \
|
||||
python3-numbers \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "e7d5a5c26cd0dc37b164ebefc609f388de24f8593b659191e12d85f8f9d5eb58"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
PYPI_PACKAGE = "colorzero"
|
||||
@@ -0,0 +1,21 @@
|
||||
SUMMARY = "A drop-in replacement for argparse that allows options to also be set via config files and/or environment variables."
|
||||
HOMEPAGE = "https://github.com/bw2/ConfigArgParse"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=da746463714cc35999ed9a42339f2943"
|
||||
|
||||
SRC_URI[sha256sum] = "363d80a6d35614bd446e2f2b1b216f3b33741d03ac6d0a92803306f40e555b58"
|
||||
|
||||
PYPI_PACKAGE = "ConfigArgParse"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
PACKAGECONFIG ?= "yaml"
|
||||
PACKAGECONFIG[yaml] = ",,,${PYTHON_PN}-pyyaml"
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
${PYTHON_PN}-core \
|
||||
${PYTHON_PN}-shell \
|
||||
${PYTHON_PN}-json \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,14 @@
|
||||
SUMMARY = "Config file reading, writing and validation."
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3d6f99b84d9a94610c62e48fa2e59e72"
|
||||
|
||||
PYPI_PACKAGE = "configobj"
|
||||
SRC_URI[sha256sum] = "6f704434a07dc4f4dc7c9a745172c1cad449feb548febd9f7fe362629c627a97"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-pprint \
|
||||
python3-six \
|
||||
"
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
SUMMARY = "A Python library for building configuration shells"
|
||||
DESCRIPTION = "configshell-fb is a Python library that provides a framework for \
|
||||
building simple but nice CLI-based applications. This runs with Python 2 and \
|
||||
2to3 is run by setup.py to run on Python 3."
|
||||
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=1dece7821bf3fd70fe1309eaa37d52a2"
|
||||
|
||||
SRC_URI = "git://github.com/open-iscsi/configshell-fb.git;protocol=https;branch=master"
|
||||
SRCREV = "d74a33b69f688ed9b8b28033835303604639d4eb"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit setuptools3
|
||||
PIP_INSTALL_PACKAGE = "configshell_fb"
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-fcntl \
|
||||
python3-modules \
|
||||
python3-pyparsing \
|
||||
python3-six \
|
||||
"
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user