Rye¶
Do not use Rye!
There's a new and better tool for the same called uv
.
Important settings for Rye¶
-
Use
UV
internally in Rye. Enableuv
with below command:
How to setup a Data Science project using rye
?¶
Above command will create below file structure.
Now you can proceed by adding deps into the project with rye add
command.
I use this way to setup my data science project.
Global packages with rye
¶
I generally install ruff
, uv
and pytest
(see rye test
) in global.
How to setup a rye
managed project in local?¶
Just run rye sync --no-dev
which will install all deps required for project and then you can follow further
instructions to setup the project.
--no-dev
flag will prevent you to install dev deps. Remove it to install dev deps.