Skip to main content

Opinionated Python + uv template for new packages.

Project description

template-python-uv-package

uv Ruff Checked with mypy

Opinionated Python + uv template for new packages.

Getting Started

  1. Go to or create the package folder.
  2. Get the template files:
npx giget@3.2.0 github:joaopalmeiro/template-python-uv-package . --force
  1. Search for template-python-uv-package and replace it with the package name. Ignore the template repository URL in the NOTES.md file.
  2. Search for template_python_uv_package and replace it with the underscored version of the package name.
  3. Search for Opinionated [Python](https://www.python.org/) + [uv](https://github.com/astral-sh/uv) template for new packages./Opinionated Python + uv template for new packages. and replace it with the (short) package description.
  4. Search for João Palmeiro and replace it with the author's name.
  5. Search for joaopalmeiro@proton.me and replace it with the author's email address.
  6. Update the Source code link at the top to the package repository link (if necessary).
  7. Change GitHub in the Deployment section to GitLab or Codeberg and update the link to the corresponding Tags page (if necessary).
  8. Update the Issues and Source fields in the pyproject.toml file with their respective repository-related links (if necessary).
  9. Delete the TEMPLATE.md file.
  10. Delete the Getting Started section.

Development

Install uv, zizmor, and pinact (if necessary):

curl -LsSf https://astral.sh/uv/0.11.6/install.sh | sh
uv python install
uv audit --verbose
uv run python -c "from template_python_uv_package import __version__; print(__version__)"
uv run mypy
uv run ruff format
uv run ruff check --fix
uv build

GitHub Actions

zizmor .
pinact run -u --min-age 7

Deployment

uv version --bump patch
uv version --bump minor
uv version --bump major
echo "v$(uv version --short)" | pbcopy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

template_python_uv_package-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

template_python_uv_package-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file template_python_uv_package-0.1.0.tar.gz.

File metadata

File hashes

Hashes for template_python_uv_package-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a09f487cc7d1152be304f254f4c31dc73dfeb652390a287cceae199541d77205
MD5 6209fb0dc93b63fcbebc8244e598604f
BLAKE2b-256 7f6500b1747339f7b1c4f9fabf6ff72e9911b2a73f71eaa705ae3981fa7a10f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for template_python_uv_package-0.1.0.tar.gz:

Publisher: release.yml on joaopalmeiro/template-python-uv-package

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file template_python_uv_package-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for template_python_uv_package-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2ca741a6d8137baef86d0876260cfe746d3e64c8c850b376fe35d6301ab79b9
MD5 3251230cb91aa2d2d71e65c1e1278673
BLAKE2b-256 ef2846ee9dc808c92aad96e3fa2f8c1845c06d986edfdcb4cd175b99e30cc9d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for template_python_uv_package-0.1.0-py3-none-any.whl:

Publisher: release.yml on joaopalmeiro/template-python-uv-package

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page