-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add RIOT specific envs to every venv run (#167)
- Loading branch information
1 parent
33866ba
commit 5763b2a
Showing
4 changed files
with
78 additions
and
2 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
releasenotes/notes/add-riot-specific-env-vars-1b117c764d61fd09.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
features: | ||
- | | ||
Inject riot virtualenv instance data into each run via environment variables: | ||
- ``RIOT``: always set to ``"1"`` | ||
- ``RIOT_PYTHON_HINT``: the Python version hint provided to riot, e.g. ``"3.6"`` | ||
- ``RIOT_PYTHON_VERSION``: the actual Python found/used by riot, e.g. ``"3.6.10"`` | ||
- ``RIOT_VENV_HASH``: the short hash for the running virtualenv instance, e.g. ``"d36fc71"`` | ||
- ``RIOT_VENV_IDENT``: the string identifier used to create the virtualenv, e.g. ``"pytest_pytest-cov_mock_typing-extensions"`` | ||
- Note: This is only set if the virtualenv instance has defined packages | ||
- ``RIOT_VENV_NAME``: the name of the virtualenv instance running, e.g. ``"test"``, ``"mypy"``, etc | ||
- ``RIOT_VENV_PKGS``: the string of packages + versions this virtualenv instance provided to the ``pip install`` command, e.g. ``"'pytest' 'pytest-cov' 'flask>=2.0.0'"`` | ||
- Note: this may be empty if only parent virtualenv packages are used | ||
- ``RIOT_VENV_FULL_PKGS``: the full list of packages this virtualenv instance and all of it's parents provided to the ``pip install`` command, e.g. ``"'pytest' 'pytest-cov' 'flask>=2.0.0'"`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters