mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-09-21 10:40:24 +00:00
python3-jdatetime: upgrade 6.0.1 -> 6.1.0
Changelog: ============ - fix: define datetime resolution attribute - Adapt to Ruff v0.16 defaults - fix: preserve instance locale in datetime.astimezone() - fix(datetime.dst): pass Gregorian to tzinfo.dst() - typing: use int for fold - Fix %I/%-I strftime directives to use the 12-hour clock - Fix Windows Persian locale test - Add pyright type checking to CI workflow - Fix Windows test failure for %-I strftime - migrate tests to pytest - Add date.strptime and match stdlib subclass behavior Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
DESCRIPTION = "Jalali implementation of Python's datetime module"
|
||||
HOMEPAGE = "https://github.com/slashmili/python-jalali"
|
||||
LICENSE = "Python-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=c80be45b33471b4a23cf53d06a8172be"
|
||||
|
||||
# The PyPI package omits some files for testing like tests/__init__.py
|
||||
# so use the GitHub source instead.
|
||||
SRCREV = "480b637d024555e1523b4652bd2b6c5b5fac33d4"
|
||||
SRC_URI = " \
|
||||
git://github.com/slashmili/jdatetime;branch=main;protocol=https;tag=v${PV} \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
inherit python_setuptools_build_meta ptest
|
||||
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
python3-modules \
|
||||
python3-jalali-core \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-ptest += " \
|
||||
python3-pytest \
|
||||
python3-core \
|
||||
python3-pickle \
|
||||
python3-unittest \
|
||||
python3-zoneinfo \
|
||||
python3-unittest-automake-output \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||
}
|
||||
Reference in New Issue
Block a user