-
Notifications
You must be signed in to change notification settings - Fork 3
Switched to uv #32
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
base: main
Are you sure you want to change the base?
Switched to uv #32
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 3.9.12 | ||
| 3.11 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,33 +26,33 @@ Contributions welcome! Have a look at [CONTRIBUTING.md](CONTRIBUTING.md) | |
|
|
||
| ## Development | ||
|
|
||
| We use [`pyenv`](https://github.com/pyenv/pyenv) and [`poetry`](https://github.com/python-poetry/poetry) to setup the python development environment. | ||
| We use [`uv`](https://docs.astral.sh/uv/) to manage the Python environment and dependencies. | ||
|
|
||
| After installing those two, run the following lines to be ready to develop: | ||
| After [installing uv](https://docs.astral.sh/uv/getting-started/installation/), run the following to set up the project: | ||
|
|
||
| ``` | ||
| pyenv install -s "$(cat .python-version)" | ||
| poetry env use "$(cat .python-version)" | ||
| poetry install | ||
| uv sync | ||
| ``` | ||
|
|
||
| Now you can start your `jupyter-lab` UI with | ||
| This will automatically install the required Python version and all dependencies. | ||
|
|
||
| To make the environment available as a Jupyter kernel, run: | ||
|
|
||
| ``` | ||
| poetry run jupyter-lab | ||
| uv run python -m ipykernel install --user --name data-science-learning-paths --display-name "Data Science Learning Paths" | ||
| ``` | ||
|
Comment on lines
+39
to
43
|
||
|
|
||
| or a classic `notebook` view with | ||
| Now you can start your `jupyter-lab` UI with | ||
|
|
||
| ``` | ||
| poetry run jupyter notebook | ||
| uv run jupyter lab | ||
| ``` | ||
|
|
||
| ### Working with on Apple Silicon M1 hardware | ||
|
|
||
| As there might occur some problems using the preferred setup on M1 hardware, you could also use [`conda`](https://github.com/conda-forge/miniforge). | ||
| or a classic `notebook` view with | ||
|
|
||
| As the leading system is poetry, please update the requirements file according to the dependencies in the `pyproject.toml`. | ||
| ``` | ||
| uv run jupyter notebook | ||
| ``` | ||
|
|
||
| ## Work with us | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,13 @@ | ||||||
| [project] | ||||||
| name = "data-science-learning-paths-library" | ||||||
| version = "0.2.0" | ||||||
| description = "Helper library for Data Science Learning Paths" | ||||||
| requires-python = ">=3.11" | ||||||
|
||||||
| requires-python = ">=3.11" | |
| requires-python = ">=3.11,<3.14" |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Python version has been updated from 3.9.12 to 3.11. Consider specifying a more precise version (e.g., 3.11.0 or a specific patch version) to ensure consistency across development environments, especially if you're using features or fixes from a particular Python 3.11 release.