Extra
Last updated on 2025-10-30 | Edit this page
Overview
Questions
- How can we use
pixi run start? - How to yank or un-yank a release?
Objectives
- Learn how to use Pixi to run your project.
- Learn how to make a release unavialable or undo that.
Introduction
After cloning a project, Install Pixi and Pixi makes it simple to run
predefined tasks. If your pixi.toml (or
pyproject.toml) contains a task named start, you can
execute it directly using:
If required, restart your shell:
Verify that Pixi has been installed correctly.
Now run
OUTPUT
✨ Pixi task (start): python -c 'from greet_me1 import happy; print(happy.greet_happy())'
Yay! happy day! 😀
This command will:
- Ensure that the required environment is installed (creating or updating it if necessary).
- Run the start task exactly as defined in your configuration file.
This provides a convenient and reproducible way to launch your project without needing to manually manage dependencies or commands. You can check the example project here
Yank and Un-yank
Occasionally, a release may contain an error or be uploaded by
mistake. While PyPI and TestPyPI don’t allow deleting releases for
security and reproducibility reasons, you can mark a specific version as
yanked. Yanked releases remain accessible for reproducibility but are
ignored by default when users install packages with
pip install <package-name>.
Steps to Yank a version of your Python Package:
Log into your PyPI or TestPyPI account
Click on the your Projects from the top right location under your user-name.
Select the right project /package from the options shown and click on the Manage button.
Select the version you wish to yank and choose that option by clicking on the Options button and select Yank.
You will be shown a pop-up. Fill the version nos and your releace will not be yanked.
Once your release is yanked, it be be shown like below.
You can also un-yank it, by clicking on the Options and clicking on Un-yank.
When you do a
pip installwithout stating an explicit verion and no un-yanked versions are available. You may get an error as shown below :
You can read more about Yanking here and related PEP 592 specification here.
Further Reading
- Define tasks such as
startin yourpixi.tomlorpyproject.toml. - Use
pixi run <task-name>to execute those tasks. -
pixi run startensures consistency and reproducibility when launching a project. - Yank a faulty release and provide useful comments for why you yanked it.
