Skip to content

Commit

Permalink
Added default client version for docker builds
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
oldpatricka authored and bcavagnolo committed Jul 8, 2024
1 parent 45c556a commit 681d93c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion client/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ datalake = "datalake.scripts.cli:cli"
[tool.setuptools.packages.find]
exclude = ["test"]

[tool.versioningit]
default-version = "0.0.0-dev"

[tool.versioningit.format]
distance = "{base_version}+{distance}.{vcs}{rev}"
Expand All @@ -74,4 +76,4 @@ distance-dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
addopts = "--cov=planet.mc_client --cov-config .coveragerc"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')"
]
]
2 changes: 1 addition & 1 deletion client/test/test_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,4 @@ def test_threaded_uploader_exits(enqueuer, faulty_uploader, random_file,
random_metadata, uploaded_file_validator):
enqueuer.enqueue(random_file, **random_metadata)
with pytest.raises(KeyboardInterrupt):
faulty_uploader.listen(timeout=0.1, workers=2)
faulty_uploader.listen(timeout=1.0, workers=2)

0 comments on commit 681d93c

Please sign in to comment.