Skip to content

Commit 681d93c

Browse files
oldpatrickabcavagnolo
authored andcommitted
Added default client version for docker builds
We don't have git available inside the container for docker test/builds for the client, so we can fall back to a default version.
1 parent 45c556a commit 681d93c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

client/pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ datalake = "datalake.scripts.cli:cli"
5959
[tool.setuptools.packages.find]
6060
exclude = ["test"]
6161

62+
[tool.versioningit]
63+
default-version = "0.0.0-dev"
6264

6365
[tool.versioningit.format]
6466
distance = "{base_version}+{distance}.{vcs}{rev}"
@@ -74,4 +76,4 @@ distance-dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
7476
addopts = "--cov=planet.mc_client --cov-config .coveragerc"
7577
markers = [
7678
"slow: marks tests as slow (deselect with '-m \"not slow\"')"
77-
]
79+
]

client/test/test_queue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,4 +264,4 @@ def test_threaded_uploader_exits(enqueuer, faulty_uploader, random_file,
264264
random_metadata, uploaded_file_validator):
265265
enqueuer.enqueue(random_file, **random_metadata)
266266
with pytest.raises(KeyboardInterrupt):
267-
faulty_uploader.listen(timeout=0.1, workers=2)
267+
faulty_uploader.listen(timeout=1.0, workers=2)

0 commit comments

Comments
 (0)