Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change pyproject.toml on Kedro project template to be compatible with uv, rye, pdm #4263

Merged
merged 51 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
5dee025
Changes to pyproject.toml template
lrcouto Oct 28, 2024
adf4a65
Merge branch 'main' into default-template-compatibility
lrcouto Oct 28, 2024
3b29e37
add requires-python to pyproject.toml
lrcouto Oct 29, 2024
c5126e0
Merge branch 'default-template-compatibility' of github.com:kedro-org…
lrcouto Oct 29, 2024
74c694d
Lint
lrcouto Oct 29, 2024
22e707a
Failing test
lrcouto Oct 29, 2024
4b5f268
Change requirements.txt to -e .
lrcouto Oct 29, 2024
aef91fc
Revert
lrcouto Oct 29, 2024
127296a
Merge branch 'main' into default-template-compatibility
lrcouto Oct 29, 2024
73a4c25
Merge branch 'main' into default-template-compatibility
lrcouto Oct 31, 2024
99ef3bf
Merge branch 'main' into default-template-compatibility
lrcouto Nov 1, 2024
876c0c7
Changes to pyproject.toml template
lrcouto Oct 28, 2024
2c60ff5
add requires-python to pyproject.toml
lrcouto Oct 29, 2024
f9f40fe
Lint
lrcouto Oct 29, 2024
2cf197f
Failing test
lrcouto Oct 29, 2024
9758537
Change requirements.txt to -e .
lrcouto Oct 29, 2024
e86dad4
Revert
lrcouto Oct 29, 2024
f62783d
Merge branch 'main' into default-template-compatibility
lrcouto Nov 5, 2024
ccf4c64
Merge branch 'default-template-compatibility' of github.com:kedro-org…
lrcouto Nov 5, 2024
ab9c5ab
Merge branch 'main' into default-template-compatibility
lrcouto Nov 6, 2024
4513df3
Merge branch 'main' into default-template-compatibility
lrcouto Nov 6, 2024
f4c5612
Merge branch 'default-template-compatibility' of github.com:kedro-org…
lrcouto Nov 6, 2024
b126abd
Merge branch 'main' into default-template-compatibility
lrcouto Nov 6, 2024
be6f535
Merge branch 'default-template-compatibility' of github.com:kedro-org…
lrcouto Nov 6, 2024
61f4d8a
Formatting on cookiecutter placeholders on default template
lrcouto Nov 6, 2024
cb394f2
Merge branch 'main' into default-template-compatibility
lrcouto Nov 7, 2024
9b7292e
Merge branch 'main' into default-template-compatibility
lrcouto Nov 7, 2024
cc1ec63
Add change to release notes
lrcouto Nov 7, 2024
12af507
Elaborate on release notes
lrcouto Nov 8, 2024
e972b41
Update pyproject.toml on test_project
lrcouto Nov 12, 2024
ba71af2
Syntax issues
lrcouto Nov 12, 2024
8159724
Changes to pyproject.toml template
lrcouto Oct 28, 2024
e6a6763
add requires-python to pyproject.toml
lrcouto Oct 29, 2024
a799119
Lint
lrcouto Oct 29, 2024
6a5f1db
Failing test
lrcouto Oct 29, 2024
6841594
Change requirements.txt to -e .
lrcouto Oct 29, 2024
96a00e9
Revert
lrcouto Oct 29, 2024
6e3c197
add requires-python to pyproject.toml
lrcouto Oct 29, 2024
d063043
Lint
lrcouto Oct 29, 2024
1d332aa
Failing test
lrcouto Oct 29, 2024
d5a422e
Change requirements.txt to -e .
lrcouto Oct 29, 2024
9308cdf
Revert
lrcouto Oct 29, 2024
43e9b30
Formatting on cookiecutter placeholders on default template
lrcouto Nov 6, 2024
a3cfb45
Add change to release notes
lrcouto Nov 7, 2024
c2b3235
Elaborate on release notes
lrcouto Nov 8, 2024
832ad2d
Update pyproject.toml on test_project
lrcouto Nov 12, 2024
7a4a767
Syntax issues
lrcouto Nov 12, 2024
d63dcce
Fix accidentally removed line
lrcouto Nov 12, 2024
7e4f4bd
Merge branch 'default-template-compatibility' of github.com:kedro-org…
lrcouto Nov 12, 2024
79ecef0
Fix duplicated line
lrcouto Nov 12, 2024
da910f6
Merge branch 'main' into default-template-compatibility
lrcouto Nov 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Major features and improvements
* Implemented dict-like interface for `KedroDataCatalog`.
* Implemented lazy dataset initializing for `KedroDataCatalog`.
* Project dependencies on both the default template and on starter templates are now explicitly declared on the `pyproject.toml` file, allowing Kedro projects to work with project management tools like `uv`, `pdm`, and `rye`.

**Note:** ``KedroDataCatalog`` is an experimental feature and is under active development. Therefore, it is possible we'll introduce breaking changes to this class, so be mindful of that if you decide to use it already. Let us know if you have any feedback about the ``KedroDataCatalog`` or ideas for new features.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@ requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
requires-python = ">=3.9"
name = "{{ cookiecutter.python_package }}"
readme = "README.md"
dynamic = ["dependencies", "version"]
dynamic = ["version"]
dependencies = [
"ipython>=8.10",
"jupyterlab>=3.0",
"notebook",
"kedro~={{ cookiecutter.kedro_version }}"
]

[project.scripts]
{{ cookiecutter.repo_name }} = "{{ cookiecutter.python_package }}.__main__:main"
"{{ cookiecutter.repo_name }}" = "{{ cookiecutter.python_package }}.__main__:main"

[project.entry-points."kedro.hooks"]

Expand All @@ -31,9 +38,7 @@ dev = [
"ruff~=0.1.8"
]


[tool.setuptools.dynamic]
dependencies = {file = "requirements.txt"}
version = {attr = "{{ cookiecutter.python_package }}.__version__"}

[tool.setuptools.packages.find]
Expand All @@ -44,7 +49,7 @@ namespaces = false
package_name = "{{ cookiecutter.python_package }}"
project_name = "{{ cookiecutter.project_name }}"
kedro_init_version = "{{ cookiecutter.kedro_version }}"
tools = {{ cookiecutter.tools | default('') | string | replace('\"', '\\\"') }}
tools = "{{ cookiecutter.tools | default('') | string | replace('\"', '\\\"') }}"
example_pipeline = "{{ cookiecutter.example_pipeline }}"
source_dir = "src"

Expand Down