Skip to content

Allow shell expansion/interpolation in rye run commandΒ #695

@dvonessen

Description

@dvonessen

Hi,

I asked this question in the discord, but thought about it.
At the moment it is not possible to use shell interpolation with rye run command.
See: https://rye-up.com/guide/pyproject/#cmd

It would be awesome if that would be made possible.
pdm does seem to have this ability.
See: https://pdm-project.org/latest/usage/scripts/#shell

Example:

...
[tool.rye.scripts]
test_script = {shell="echo $TEST_ENV"}
> export TEST_ENV="FooBar"
> rye run test_script
$TEST_ENV

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions