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

Set environment variables to provide context to scripts #1324

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Aug 10, 2024

  1. Set environment variables to provide context to scripts

    Sets the environment variables listed below to allow scripts to have
    some context when determining what to do and where to do it. This also
    provides some information to create Python packages for experimenting
    with some suggested `rye run` features.
    
    Environment Variables:
    
      WORKING_DIR: Initial working directory. Useful in env files
      RYE: Full path of the rye executable running the command. Useful for
          scripts that call rye
      RYE_RUN_CMD: Name of the command being run. Helpful for commands that
          run the same script to differentiate the command or for scripts
          to read the command entry from pyproject.toml
      PROJECT_ROOT: Full path of the directory containing pyproject.toml.
          Useful for scripts to do work relative to the project root or
          that need to read the pyproject.toml.
      WORKSPACE_ROOT: Full path of the workspace. Similar to PROJECT_ROOT,
          but for the workspace
    brandon-avantus committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    2518407 View commit details
    Browse the repository at this point in the history