diff --git a/CHANGELOG.md b/CHANGELOG.md index 675282d..ed92a98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Changed behavior of `Beaker.dataset.create()` and `Beaker.dataset.sync()` with respect to source files. By default now, source files and directories will be uploading as their given path, instead of just their name. You can still get the old behavior by passing `strip_paths=True`. - Changed default value of `max_workers` to `None` in `Beaker.dataset.create()` and `.sync()`. When left as `None`, the number of workers will be determined by the [`ThreadPoolExecutor`](https://docs.python.org/3/library/concurrent.futures.html#concurrent.futures.ThreadPoolExecutor). +- "." now allowed in beaker names. ## [v0.12.0](https://github.com/allenai/beaker-py/releases/tag/v0.12.0) - 2022-04-26 diff --git a/beaker/services/service_client.py b/beaker/services/service_client.py index f38e1cb..08b1abc 100644 --- a/beaker/services/service_client.py +++ b/beaker/services/service_client.py @@ -171,7 +171,8 @@ def url_quote(self, id: str) -> str: return urllib.parse.quote(id, safe="") def validate_beaker_name(self, name: str): - if not name.replace("-", "").replace("_", "").isalnum(): + if not name.replace("-", "").replace("_", "").replace(".", "").isalnum(): raise ValueError( - f"Invalid name '{name}'. Beaker names can only contain letters, digits, dashes, and underscores." + f"Invalid name '{name}'. Beaker names can only contain letters, " + f"digits, periods, dashes, and underscores." )