diff options
| author | Tim Orling <tim.orling@konsulko.com> | 2026-02-03 11:13:51 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-02-06 10:06:18 -0800 |
| commit | 64139e703be26855614ae0781b93b431b35343b3 (patch) | |
| tree | 4fd8f3f1b5475dd000ebc80a6086ca5b3c2a1275 /meta-python | |
| parent | 5ccbf5d55250c5ff9d4c87719373b627311c16d8 (diff) | |
| download | meta-openembedded-64139e703be26855614ae0781b93b431b35343b3.tar.gz | |
python3-faker: add v40.1.2
Faker is a Python package that generates fake data for you. Whether you
need to bootstrap your database, create good-looking XML documents,
fill-in your persistence to stress test it, or anonymize data
taken from a production service, Faker is for you.
* Skip tests/pytest as this causes the 'pytests --automake' parser to fail
for some reason [1] and the handful of tests are of questionable extra value.
Testsuite summary
TOTAL: 2151
PASS: 2146
SKIP: 5
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 39
Dependency for python3-orjson ptest.
[1] https://gitlab.com/rossburton/python-unittest-automake-output/-/issues/9
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
3 files changed, 52 insertions, 0 deletions
diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc index 15172e7f22..a84718b704 100644 --- a/meta-python/conf/include/ptest-packagelists-meta-python.inc +++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc | |||
| @@ -130,6 +130,7 @@ PTESTS_SLOW_META_PYTHON = "\ | |||
| 130 | python3-arrow \ | 130 | python3-arrow \ |
| 131 | python3-django \ | 131 | python3-django \ |
| 132 | python3-ecdsa \ | 132 | python3-ecdsa \ |
| 133 | python3-faker \ | ||
| 133 | python3-fastapi \ | 134 | python3-fastapi \ |
| 134 | python3-google-auth \ | 135 | python3-google-auth \ |
| 135 | python3-lz4 \ | 136 | python3-lz4 \ |
diff --git a/meta-python/recipes-devtools/python/python3-faker/pytest.ini b/meta-python/recipes-devtools/python/python3-faker/pytest.ini new file mode 100644 index 0000000000..26f64467ce --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-faker/pytest.ini | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | [pytest] | ||
| 2 | addopts = | ||
| 3 | --ignore=tests/pytest | ||
diff --git a/meta-python/recipes-devtools/python/python3-faker_40.1.2.bb b/meta-python/recipes-devtools/python/python3-faker_40.1.2.bb new file mode 100644 index 0000000000..2a9970a91c --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-faker_40.1.2.bb | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | SUMMARY = "Faker is a Python package that generates fake data for you." | ||
| 2 | DESCRIPTION = "Faker is a Python package that generates fake data for you. \ | ||
| 3 | Whether you need to bootstrap your database, create good-looking XML documents, \ | ||
| 4 | fill-in your persistence to stress test it, or anonymize data taken from a \ | ||
| 5 | production service, Faker is for you." | ||
| 6 | HOMEPAGE = "https://github.com/joke2k/faker" | ||
| 7 | LICENSE = "MIT" | ||
| 8 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=53360c4126f7d03b63cb79b0dab9e9e1" | ||
| 9 | |||
| 10 | SRC_URI[sha256sum] = "b76a68163aa5f171d260fc24827a8349bc1db672f6a665359e8d0095e8135d30" | ||
| 11 | |||
| 12 | inherit pypi setuptools3 ptest-python-pytest | ||
| 13 | |||
| 14 | SRC_URI += "file://pytest.ini" | ||
| 15 | |||
| 16 | PACKAGECONFIG ?= "tzdata" | ||
| 17 | PACKAGECONFIG[tzdata] = ",,,python3-tzdata" | ||
| 18 | |||
| 19 | RDEPENDS:${PN} += "\ | ||
| 20 | python3-compression \ | ||
| 21 | python3-core \ | ||
| 22 | python3-crypt \ | ||
| 23 | python3-datetime \ | ||
| 24 | python3-image \ | ||
| 25 | python3-json \ | ||
| 26 | python3-logging \ | ||
| 27 | python3-math \ | ||
| 28 | python3-netclient \ | ||
| 29 | python3-numbers \ | ||
| 30 | python3-pickle \ | ||
| 31 | python3-pytest \ | ||
| 32 | python3-stringold \ | ||
| 33 | python3-unittest \ | ||
| 34 | python3-xml \ | ||
| 35 | python3-zoneinfo \ | ||
| 36 | " | ||
| 37 | |||
| 38 | RDEPENDS:${PN}-ptest += "\ | ||
| 39 | python3-freezegun \ | ||
| 40 | python3-validators \ | ||
| 41 | " | ||
| 42 | |||
| 43 | do_install_ptest:append() { | ||
| 44 | install ${UNPACKDIR}/pytest.ini ${D}${PTEST_PATH}/ | ||
| 45 | install -d ${D}${PTEST_PATH}/tests | ||
| 46 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 47 | } | ||
| 48 | |||
