Skip to content

Commit d9feed2

Browse files
authored
Release kedro-docker 0.3.0 (#19)
1 parent 99bb612 commit d9feed2

File tree

10 files changed

+41
-19
lines changed

10 files changed

+41
-19
lines changed

.circleci/continue_config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,17 +217,17 @@ workflows:
217217
plugin: "kedro-docker"
218218
matrix:
219219
parameters:
220-
python_version: ["3.6", "3.7", "3.8"]
220+
python_version: ["3.7", "3.8", "3.9", "3.10"]
221221
- e2e_tests:
222222
plugin: "kedro-docker"
223223
matrix:
224224
parameters:
225-
python_version: ["3.6", "3.7", "3.8"]
225+
python_version: ["3.7", "3.8", "3.9", "3.10"]
226226
- win_unit_tests:
227227
plugin: "kedro-docker"
228228
matrix:
229229
parameters:
230-
python_version: ["3.6", "3.7", "3.8"]
230+
python_version: ["3.7", "3.8", "3.9", "3.10"]
231231
- lint:
232232
plugin: "kedro-docker"
233233
# when pipeline parameter, run-build-kedro-airflow is true, the

kedro-docker/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Kedro-Docker
22

3-
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
4-
[![Python Version](https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8-blue.svg)](https://pypi.org/project/kedro-docker/)
3+
[![Python Version](https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10-blue.svg)](https://pypi.org/project/kedro-docker/)
54
[![PyPI version](https://badge.fury.io/py/kedro-docker.svg)](https://pypi.org/project/kedro-docker/)
5+
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
66
[![Code Style: Black](https://img.shields.io/badge/code%20style-black-black.svg)](https://github.com/ambv/black)
77

88
Docker is a tool that makes it easier to create, deploy and run applications. It uses containers to package an application along with its dependencies and then runs the application in an isolated virtualised environment.

kedro-docker/RELEASE.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66

77
## Breaking changes to the API
88

9-
## Thanks for supporting contributions
9+
# Release 0.3.0
10+
## Major features and improvements
11+
* Add compatibility with `kedro` 0.18.0
12+
* Add compatibility with Python 3.9 and 3.10
13+
* Remove compatibility with Python 3.6
1014

1115
# Release 0.2.2
1216

kedro-docker/features/docker.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Feature: Docker commands in new projects
55
Given I have prepared a config file
66
And I run a non-interactive kedro new with starter
77
And I have fixed logs write permission
8-
And I have executed the kedro command "install"
8+
And I have installed the project dependencies
99
And I have removed old docker image of test project
1010

1111
Scenario: Execute docker init
@@ -58,7 +58,7 @@ Feature: Docker commands in new projects
5858

5959
Scenario: Execute docker run in parallel mode
6060
Given I have executed the kedro command "docker build"
61-
When I execute the kedro command "docker run --parallel"
61+
When I execute the kedro command "docker run --runner=ParallelRunner"
6262
Then I should get a successful exit code
6363
And I should get a message including "kedro.runner.parallel_runner - INFO - Pipeline execution completed successfully"
6464

@@ -118,7 +118,7 @@ Feature: Docker commands in new projects
118118
When I execute the kedro command "docker ipython"
119119
Then I should see messages from docker ipython startup including "An enhanced Interactive Python"
120120
And I should see messages from docker ipython startup including "INFO - ** Kedro project project-dummy"
121-
And I should see messages from docker ipython startup including "Starting a Kedro session with the following variables in scope"
121+
And I should see messages from docker ipython startup including "Defined global variable `context`, `session`, `catalog` and `pipelines`"
122122

123123
Scenario: Execute docker run target without building image
124124
When I execute the kedro command "docker run"

kedro-docker/features/steps/cli_steps.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,22 @@ def exec_kedro_command(context, command):
177177
assert False
178178

179179

180+
@given("I have installed the project dependencies")
181+
def pip_install_dependencies(context):
182+
"""Install project dependencies using pip."""
183+
reqs_path = Path("src", "requirements.txt")
184+
res = run(
185+
[context.pip, "install", "-r", str(reqs_path)],
186+
env=context.env,
187+
cwd=str(context.root_project_dir),
188+
)
189+
190+
if res.returncode != OK_EXIT_CODE:
191+
print(res.stdout)
192+
print(res.stderr)
193+
assert False
194+
195+
180196
@given("I have removed old docker image of test project")
181197
def remove_old_docker_images(context):
182198
"""Remove old docker images of project"""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
""" Kedro plugin for packaging a project with Docker """
22

3-
__version__ = "0.2.2"
3+
__version__ = "0.3.0"

kedro-docker/kedro_docker/plugin.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,16 @@ def docker_init(spark):
164164
type=str,
165165
default=DEFAULT_BASE_IMAGE,
166166
show_default=True,
167-
help="Base image for Dockerfile.", # pylint: disable=too-many-arguments
167+
help="Base image for Dockerfile.",
168168
)
169169
@_make_image_option()
170170
@_make_docker_args_option(
171171
help="Optional arguments to be passed to `docker build` command"
172172
)
173173
@click.pass_context
174-
def docker_build(ctx, uid, gid, spark, base_image, image, docker_args):
174+
def docker_build(
175+
ctx, uid, gid, spark, base_image, image, docker_args
176+
): # pylint: disable=too-many-arguments
175177
"""Build a Docker image for the project."""
176178
uid, gid = get_uid_gid(uid, gid)
177179
project_path = Path.cwd()

kedro-docker/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
long_description_content_type="text/markdown",
3636
url="https://github.com/kedro-org/kedro-plugins/tree/main/kedro-docker",
3737
license="Apache Software License (Apache 2.0)",
38-
python_requires=">=3.6, <3.9",
38+
python_requires=">=3.7, <3.11",
3939
install_requires=requires,
4040
tests_require=test_requires,
4141
author="Kedro",

kedro-docker/test_requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
-r requirements.txt
22
bandit>=1.6.2, <2.0
33
behave>=1.2.6, <2.0
4-
black==v19.10.b0
4+
black~=22.0
55
docker
66
flake8>=3.5, <4.0
77
pre-commit>=1.17.0, <2.0
8-
psutil==5.6.6
8+
psutil
99
pylint>=2.4.4, <3.0
10-
pytest-cov>=2.7.1, <3.0
11-
pytest-mock>=1.10.4, <2.0
12-
pytest>=4.4.2, <5.0
10+
pytest
11+
pytest-cov
12+
pytest-mock
1313
PyYAML>=5.1, <6.0
1414
trufflehog>=2.0.99, <3.0
1515
wheel==0.32.2

kedro-telemetry/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Kedro-Telemetry
22

3-
[![Python Version](https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8-blue.svg)](https://pypi.org/project/kedro-telemetry/)
3+
[![Python Version](https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10-blue.svg)](https://pypi.org/project/kedro-telemetry/)
44
[![PyPI version](https://badge.fury.io/py/kedro-telemetry.svg)](https://pypi.org/project/kedro-telemetry/)
55
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
66
[![Code Style: Black](https://img.shields.io/badge/code%20style-black-black.svg)](https://github.com/ambv/black)

0 commit comments

Comments
 (0)