Skip to content

Feature Request: Option to Remove Build ArtifactsΒ #10293

@SHi-ON

Description

@SHi-ON

Summary:
I would like to request a feature that adds an option to remove build artifacts generated by the uv build command. This feature would help in keeping the project directory clean and managing disk space more efficiently.

Use Case:
Currently, after running uv build, the generated build artifacts remain in the project directory. In certain scenarios, such as continuous integration and deployment pipelines, it is beneficial to remove these artifacts once they are no longer needed. An option to automatically clean up these artifacts would streamline the build process and reduce manual intervention.

Proposed Solution:
Introduce a new command-line option (e.g., --clean or --remove-artifacts) in the uv build command that removes the generated build artifacts after the build process is completed.

Benefits:

  • Simplifies the build process by reducing the need for manual cleanup.
  • Helps in managing disk space by removing unnecessary files.
  • Improves the efficiency of CI/CD pipelines by automating the cleanup process.

Example:

uv build --clean

Thank you for considering this feature request. I believe it will greatly benefit developers who use uv in their projects.

Metadata

Metadata

Assignees

Labels

cliRelated to the command line interfaceenhancementNew feature or improvement to existing functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions