Skip to content

Commit

Permalink
Migrate kedro-docker to static metadata (kedro-org#173)
Browse files Browse the repository at this point in the history
* Migrate kedro-docker to static metadata

See kedro-org/kedro#2334.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Address packaging warning

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix tests

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Actually install current plugin with dependencies

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Add release notes

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

---------

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
Signed-off-by: Tingting_Wan <[email protected]>
  • Loading branch information
astrojuanlu authored and tingtingQB committed May 1, 2023
1 parent 8c2ea1b commit a73b216
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 59 deletions.
1 change: 1 addition & 0 deletions .circleci/continue_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ commands:
command: |
cd <<parameters.plugin>>
pip install git+https://github.com/kedro-org/kedro@main
pip install .
pip install -r test_requirements.txt
- run:
name: Install pre-commit hooks
Expand Down
1 change: 1 addition & 0 deletions kedro-docker/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
recursive-include kedro_docker/template *
1 change: 1 addition & 0 deletions kedro-docker/RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Upcoming release
* Migrate all project metadata to static `pyproject.toml`.

## Major features and improvements

Expand Down
2 changes: 1 addition & 1 deletion kedro-docker/features/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def before_all(context):
)

# install the plugin
call([context.python, "setup.py", "install"], env=context.env)
call([context.python, "-m", "pip", "install", "."], env=context.env)


def _setup_context_with_venv(context, venv_dir):
Expand Down
55 changes: 55 additions & 0 deletions kedro-docker/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,58 @@
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "kedro-docker"
authors = [
{name = "Kedro"}
]
description = "Kedro-Docker makes it easy to package Kedro projects with Docker."
requires-python = ">=3.7, <3.11"
license = {text = "Apache Software License (Apache 2.0)"}
dependencies = [
"anyconfig~=0.10.0", # not directly required, pinned by Snyk to avoid a vulnerability
"kedro>=0.16.0",
"semver~=2.10", # Needs to be at least 2.10.0 to get VersionInfo.match
]
dynamic = ["readme", "version"]

[project.urls]
Source = "https://github.com/kedro-org/kedro-plugins/tree/main/kedro-docker"
Documentation = "https://github.com/kedro-org/kedro-plugins/blob/main/kedro-docker/README.md"
Tracker = "https://github.com/kedro-org/kedro-plugins/issues"

[project.entry-points."kedro.project_commands"]
docker = "kedro_docker.plugin:commands"

[tool.setuptools]
include-package-data = true
zip-safe = false

[tool.setuptools.packages.find]
include = ["kedro_docker*"]
namespaces = true # To include the template files

[tool.setuptools.package-data]
kedro_docker = [
"template/Dockerfile.*",
"template/.dockerignore",
"template/.dive-ci",
]

[tool.setuptools.dynamic]
readme = {file = "README.md", content-type = "text/markdown"}
version = {attr = "kedro_docker.__version__"}

[tool.pytest.ini_options]
addopts = """
--cov-report xml:coverage.xml
--cov-report term-missing
--cov kedro_docker
--cov tests
--no-cov-on-fail
-ra"""

[tool.black]

[tool.isort]
Expand Down
3 changes: 0 additions & 3 deletions kedro-docker/requirements.txt

This file was deleted.

10 changes: 0 additions & 10 deletions kedro-docker/setup.cfg

This file was deleted.

44 changes: 0 additions & 44 deletions kedro-docker/setup.py

This file was deleted.

1 change: 0 additions & 1 deletion kedro-docker/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
-r requirements.txt
bandit>=1.6.2, <2.0
behave>=1.2.6, <2.0
black~=22.0
Expand Down

0 comments on commit a73b216

Please sign in to comment.