testcloud 0.12.0__tar.gz → 0.13.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {testcloud-0.12.0 → testcloud-0.13.0}/PKG-INFO +5 -1
- {testcloud-0.12.0 → testcloud-0.13.0}/README.md +4 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/distro_utils/misc.py +15 -9
- {testcloud-0.12.0 → testcloud-0.13.0}/.fmf/version +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/.github/workflows/release.yml +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/.gitignore +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/.packit.yaml +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/LICENSE +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/conf/99-testcloud-nonroot-libvirt-access.rules +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/conf/settings-example.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/conf/testcloud +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/docs/LICENSE +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/docs/Makefile +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/docs/source/api.rst +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/docs/source/conf.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/docs/source/develop.rst +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/docs/source/indepth.rst +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/docs/source/index.rst +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/manpages/testcloud.1 +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/packaging/rpm/testcloud.spec +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/packaging/rpm/testcloud.sysusers +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/plans/tmt.fmf +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/plans/unit.fmf +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/pyproject.toml +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/requirements.txt +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/run_testcloud.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/test/__init__.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/test/tmt/regular-user/data/.fmf/version +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/test/tmt/regular-user/data/main.fmf +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/test/tmt/regular-user/main.fmf +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/test/tmt/regular-user/test.sh +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/test/unit/main.fmf +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/test/unit/test_cli.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/test/unit/test_config.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/test/unit/test_fedora.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/test/unit/test_image.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/test/unit/test_instance.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/test/unit/test_util.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/__init__.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/cli.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/config.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/distro_utils/__init__.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/distro_utils/alma.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/distro_utils/centos.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/distro_utils/debian.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/distro_utils/fedora.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/distro_utils/oracle.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/distro_utils/rocky.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/distro_utils/ubuntu.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/domain_configuration.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/exceptions.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/image.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/instance.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/sql.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/util.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/testcloud/workarounds.py +0 -0
- {testcloud-0.12.0 → testcloud-0.13.0}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: testcloud
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.13.0
|
|
4
4
|
Summary: A tool to download and boot cloud images locally, with an easy to use API.
|
|
5
5
|
Project-URL: Homepage, https://github.com/teemtee/testcloud
|
|
6
6
|
Author-email: Mike Ruckman <roshi@fedoraproject.org>
|
|
@@ -457,6 +457,10 @@ The release process can be summed up to these steps:
|
|
|
457
457
|
|
|
458
458
|
### Releases
|
|
459
459
|
|
|
460
|
+
#### 0.13.0
|
|
461
|
+
|
|
462
|
+
* Better test for requests-cache presence and enablement
|
|
463
|
+
|
|
460
464
|
#### 0.12.0
|
|
461
465
|
|
|
462
466
|
* Add support for the RISC-V architecture
|
|
@@ -14,6 +14,17 @@ config_data = config.get_config()
|
|
|
14
14
|
log = logging.getLogger("testcloud.util")
|
|
15
15
|
|
|
16
16
|
|
|
17
|
+
_HAS_REQUESTS_SESSION_CACHE = False
|
|
18
|
+
|
|
19
|
+
try:
|
|
20
|
+
import requests_cache
|
|
21
|
+
|
|
22
|
+
_HAS_REQUESTS_SESSION_CACHE = True
|
|
23
|
+
|
|
24
|
+
except ImportError:
|
|
25
|
+
pass
|
|
26
|
+
|
|
27
|
+
|
|
17
28
|
def parse_latest_qcow(rule: str, url: str) -> str:
|
|
18
29
|
session = get_requests_session()
|
|
19
30
|
|
|
@@ -27,12 +38,7 @@ def parse_latest_qcow(rule: str, url: str) -> str:
|
|
|
27
38
|
|
|
28
39
|
|
|
29
40
|
def get_requests_session():
|
|
30
|
-
|
|
31
|
-
assert config_data.CACHE_IMAGES
|
|
32
|
-
import requests_cache
|
|
33
|
-
|
|
34
|
-
assert Version(requests_cache.__version__) >= Version("1.2")
|
|
35
|
-
|
|
41
|
+
if config_data.CACHE_IMAGES and _HAS_REQUESTS_SESSION_CACHE:
|
|
36
42
|
log.debug("Using local image url cache...")
|
|
37
43
|
return requests_cache.CachedSession(
|
|
38
44
|
cache_name="{}/testcloud_image_resolve_cache".format(config_data.DATA_DIR),
|
|
@@ -40,6 +46,6 @@ def get_requests_session():
|
|
|
40
46
|
stale_if_error=True,
|
|
41
47
|
expire_after=config_data.TRUST_DEADLINE * 60 * 60 * 24,
|
|
42
48
|
)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
49
|
+
|
|
50
|
+
log.debug("Not using local image url cache due to config or unmet dependencies...")
|
|
51
|
+
return requests.Session()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|