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, 1Password, and 1Password CLI (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

Deployment

uv version --bump patch
uv version --bump minor
uv version --bump major
uv build
echo "v$(uv version --short)" | pbcopy
UV_PUBLISH_TOKEN=""op://Development/PyPI/UV_PUBLISH_TOKEN"" op run -- uv publish

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.0.1.tar.gz (2.4 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.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: template_python_uv_package-0.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for template_python_uv_package-0.0.1.tar.gz
Algorithm Hash digest
SHA256 123dea22088243429308da49282add3d7318e3fd0d1fbf393eae66e811bf0ae3
MD5 b3667fc3390a081518f423ebee8c1c9c
BLAKE2b-256 a6fceffa1a641a9e74ec65ed3b0209240ea958ddda834f6980dc0e9b04da7421

See more details on using hashes here.

File details

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

File metadata

  • Download URL: template_python_uv_package-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for template_python_uv_package-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e8df2d4aa33d008ba0b07b95d0c5fee2c76ff258b1995f69ebfcf954f1c1f872
MD5 3a02ed162ed8ab72a0b8d32d38f3f253
BLAKE2b-256 6d8eaadf9ad30de77015cae20de3a5b716ef98f2515369dc805b25b6d67c7975

See more details on using hashes here.

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