From 2717720cacade5757cb289d686faca5f57bbbd21 Mon Sep 17 00:00:00 2001 From: Chi Wai Chan Date: Mon, 6 Jan 2025 13:50:42 +0800 Subject: [PATCH] Pin croniter to 5.0.1 This is an workaround for fixing the unit test. Also note that coniter project may be discontinued soon [1], and we should find an alternative. [1]: https: //github.com/corpusops/croniter/issues/144 Change-Id: I5fac71bc194af0d0e0d3173693dda959cb13ec4e --- charms/tempest-k8s/requirements.txt | 6 ++++-- test-requirements.txt | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/charms/tempest-k8s/requirements.txt b/charms/tempest-k8s/requirements.txt index 87a019a4..326b244d 100644 --- a/charms/tempest-k8s/requirements.txt +++ b/charms/tempest-k8s/requirements.txt @@ -9,7 +9,9 @@ cosl tenacity # for validating cron expressions -croniter +# due to https://github.com/corpusops/croniter/issues/144 +# we might need to find an alternative for croniter project +croniter==5.0.1 # for handling cleanup -openstacksdk \ No newline at end of file +openstacksdk diff --git a/test-requirements.txt b/test-requirements.txt index afa1f93d..a2a4d5a4 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -13,10 +13,13 @@ pydantic # traefik-k8s ingress lib requests # cinder-ceph-k8s netifaces # cinder-ceph-k8s cosl # openstack-exporter -croniter # tempest-k8s git+https://github.com/juju/charm-helpers.git#egg=charmhelpers # cinder-ceph-k8s,glance-k8s,gnocchi-k8s git+https://opendev.org/openstack/charm-ops-interface-ceph-client#egg=interface_ceph_client # cinder-ceph-k8s requests-unixsocket # sunbeam-clusterd openstacksdk # tempest-k8s types-PyYAML # types stub for mypy + +# due to https://github.com/corpusops/croniter/issues/144 +# we might need to find an alternative for croniter project +croniter==5.0.1 # tempest-k8s