astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.6k stars 466 forks source link

How to Generate `requirements[-dev].lock` to a Specific Path? #1339

Open UnoYakshi opened 1 month ago

UnoYakshi commented 1 month ago

I'd like to come from this:

.
├── pyproject.toml
├── README.md
├── requirements-dev.lock
├── requirements.lock
└── src
    └── *

to this

.
├── pyproject.toml
├── README.md
└── requirements
    ├── requirements-dev.lock
    └── requirements.lock
├── scripts
│   └── entrypoint.sh
└── src
    └── *

Is there any parameter I can fill in to Rye be able to generate lock-files to a specific path?

UnoYakshi commented 1 month ago

Also, I wonder if it's possible to generate separate lock-files for per-feature?..

Upd: https://github.com/astral-sh/rye/blob/main/rye/src/sync.rs#L94-L95 — doesn't seems so.