Skip to content

Commit

Permalink
Bump version to 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
costrouc committed Oct 22, 2021
1 parent b1de22c commit 5b315b0
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Security

## [0.1.2] - 2021-10-21

### Added

- test for wider range of docker images for download

### Fixed

- bug in `container_config` field being an optional field in specification

## [0.1.1] - 2021-10-21

### Added
Expand Down
2 changes: 1 addition & 1 deletion python_docker/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.0"
__version__ = "0.1.2"
2 changes: 1 addition & 1 deletion python_docker/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class DockerConfig(BaseModel):
os: str = "linux"
config: DockerConfigConfig
container: Optional[str]
container_config: DockerConfigConfig
container_config: Optional[DockerConfigConfig]
created: str = Field(default_factory=_docker_datetime_factory)
docker_version: str = "18.09.7"
history: List[DockerConfigHistory] = []
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="python-docker",
version="0.1.1",
version="0.1.2",
description="Python Docker",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
7 changes: 5 additions & 2 deletions tests/test_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@
"image_name, tag, layers",
[
("library/hello-world", "latest", 1),
("library/busybox", "latest", 1),
("library/busybox", "1.34.0", 1),
("condaforge/miniforge3", "4.10.3-7", 2),
("library/ubuntu", "xenial", 4),
],
)
def test_dockerhub_pull(image_name, tag, layers):
registry = Registry()
image = registry.pull_image(image_name, tag)
# use lazy to avoid actual downloads of layers for this test
image = registry.pull_image(image_name, tag, lazy=True)
assert image.name == image_name
assert image.tag == tag
assert len(image.layers) == layers
Expand Down

0 comments on commit 5b315b0

Please sign in to comment.