Skip to content

document {env:TOX_PACKAGE} for referencing built packages in commands#3873

Merged
gaborbernat merged 1 commit intotox-dev:mainfrom
rahuldevikar:users/rahuldevikar/3862-doc-tox-package
Mar 11, 2026
Merged

document {env:TOX_PACKAGE} for referencing built packages in commands#3873
gaborbernat merged 1 commit intotox-dev:mainfrom
rahuldevikar:users/rahuldevikar/3862-doc-tox-package

Conversation

@rahuldevikar
Copy link
Copy Markdown
Collaborator

Fixes #3862 requested exposing the built sdist/wheel path for use in commands. The TOX_PACKAGE environment variable already provides this — it is set in RunToxEnv.environment_variables after the package is built during _setup_pkg(), and is available by the time commands are resolved in run_commands(). However, this wasn't documented as a recipe for the common use case of running post-build checks like twine check or check-wheel-contents against the built artifact

  • ran the linter to address style issues (tox -e fix)
  • wrote descriptive pull request text
  • [] ensured there are test(s) validating the fix
  • added news fragment in docs/changelog folder
  • updated/extended the documentation

@rahuldevikar rahuldevikar marked this pull request as ready for review March 10, 2026 18:57
@rahuldevikar rahuldevikar force-pushed the users/rahuldevikar/3862-doc-tox-package branch from 11d5c97 to 60cb029 Compare March 10, 2026 23:39
@rahuldevikar rahuldevikar force-pushed the users/rahuldevikar/3862-doc-tox-package branch from 60cb029 to d9abda7 Compare March 11, 2026 00:04
@rahuldevikar rahuldevikar force-pushed the users/rahuldevikar/3862-doc-tox-package branch from d9abda7 to 0e4527b Compare March 11, 2026 00:16
@gaborbernat gaborbernat enabled auto-merge (squash) March 11, 2026 00:19
@gaborbernat gaborbernat merged commit c797c65 into tox-dev:main Mar 11, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose built sdist/wheel path for use in commands

2 participants