Establish secure default configurations in project metadata files to prevent accidental publishing and ensure proper version constraints. This is particularly important for private packages and build system configurations.
Key practices:
[project]
classifiers = [
"Private :: Do Not Upload",
# Other classifiers...
]
[build-system]
# Prefer narrow version ranges for build backends
requires = ["uv>=0.4.18,<0.5"]
This approach helps prevent accidental package uploads to public repositories and ensures reproducible builds through proper version constraints.
Enter the URL of a public GitHub repository