Skip to content

Commit

Permalink
python3-validators: upgrade 0.22.0 > 0.24.0 and enable ptest
Browse files Browse the repository at this point in the history
License-Update: Rename LICENSE to LICENSE.txt and update copyright year

* Ptest and library example tested on qemux86-64 and qemuarm64

* Add ptest into PTESTS_FAST_META_PYTHON

qemux86-64:

Testsuite summary
TOTAL: 599
PASS: 599
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 19
END: /usr/lib/python3-validators/ptest
2024-03-30T05:07
STOP: ptest-runner
TOTAL: 1 FAIL: 0

qemuarm64:

Testsuite summary
TOTAL: 599
PASS: 599
SKIP: 0
XFAIL: 0
FAIL: 0
XPASS: 0
ERROR: 0
DURATION: 18
END: /usr/lib/python3-validators/ptest
2024-03-30T05:10
STOP: ptest-runner
TOTAL: 1 FAIL: 0

Changelog:

0.24.0
===========
Features

    feat: conditionally raises ValidationError; bump version by @yozachar in openembedded#343

Maintenance

    patch: domain & url modules by @yozachar in openembedded#339
    fix: domain name not confirming to rfc_2782 by @yozachar in openembedded#341
    maint: update dev dependencies; adds favicon to docs by @yozachar in openembedded#342

0.23.2
===========
Maintenance

    maint: rectifies changelog by @yozachar in openembedded#336
    fix: packaging as well as rST & md document generation by @yozachar in openembedded#337

0.23.1
===========
Maintenance

    maint: fix between & length validators by @yozachar in openembedded#334
    fix: manual nav reference for mkdocs; bumps version by @yozachar in openembedded#335

0.23.0
===========
Features

    feat: add french i18n validation by @imperosol in openembedded#308

Maintenance

    fix: Valid URLs failing validation - query and fragment parts by @danherbriley in openembedded#297
    fix: bug in between module by @yozachar in openembedded#301
    chore: update dependencies, improve packaging by @yozachar in openembedded#304
    Fix fragment check by @darkdragon-001 in openembedded#305
    build(deps): bump urllib3 from 2.0.6 to 2.0.7 in /package by @dependabot in openembedded#310
    fix: allow pct-encoded entities in fragments by @conitrade-as in openembedded#317
    chore: update dev dependencies by @yozachar in openembedded#318
    build(deps): bump gitpython from 3.1.37 to 3.1.41 in /package by @dependabot in openembedded#321
    build(deps): bump jinja2 from 3.1.2 to 3.1.3 in /package by @dependabot in openembedded#322
    chore: monthly updates for Jan'24 by @yozachar in openembedded#324
    maint: adds versiond docs; update copyright year by @yozachar in openembedded#329
    chore: update dev dependencies by @yozachar in openembedded#330
    build(deps): bump gitpython from 3.1.37 to 3.1.41 in /package by @dependabot in openembedded#331
    build(deps): bump jinja2 from 3.1.2 to 3.1.3 in /package by @dependabot in openembedded#332
    build(deps): bump urllib3 from 2.0.6 to 2.0.7 in /package by @dependabot in openembedded#319

Signed-off-by: alperak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
  • Loading branch information
alperak authored and kraj committed Mar 30, 2024
1 parent 1f28cb0 commit df763fc
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ PTESTS_FAST_META_PYTHON = "\
python3-u-msgpack-python \
python3-unidiff \
python3-uritemplate \
python3-validators \
python3-wrapt \
python3-wsproto \
python3-xlrd \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

pytest --automake
10 changes: 0 additions & 10 deletions meta-python/recipes-devtools/python/python3-validators_0.22.0.bb

This file was deleted.

30 changes: 30 additions & 0 deletions meta-python/recipes-devtools/python/python3-validators_0.24.0.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
SUMMARY = "Python Data Validation for Humans"
HOMEPAGE = "https://python-validators.github.io/validators"
LICENSE = "MIT"

LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b3fb4b9e6db86c69a33d5e3ee013ab59"
SRC_URI[sha256sum] = "cd23defb36de42d14e7559cf0757f761bb46b10d9de2998e6ef805f769d859e3"

inherit pypi python_setuptools_build_meta ptest

SRC_URI += " \
file://run-ptest \
"

RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-unittest-automake-output \
"

do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}

RDEPENDS:${PN} += " \
python3-crypt \
python3-datetime \
python3-netclient \
"

BBCLASSEXTEND = "native nativesdk"

0 comments on commit df763fc

Please sign in to comment.