🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

template-python-uv-package

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

template-python-uv-package

Opinionated Python + uv template for new packages.

Source
pipPyPI
Version
0.1.0
Weekly downloads
69
Maintainers
1

template-python-uv-package

uv Ruff Checked with mypy

Opinionated Python + uv template for new packages.

Getting Started

  • Go to or create the package folder.
  • Get the template files:
npx giget@3.2.0 github:joaopalmeiro/template-python-uv-package . --force
  • Search for template-python-uv-package and replace it with the package name. Ignore the template repository URL in the NOTES.md file.
  • Search for template_python_uv_package and replace it with the underscored version of the package name.
  • 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.
  • Search for João Palmeiro and replace it with the author's name.
  • Search for joaopalmeiro@proton.me and replace it with the author's email address.
  • Update the Source code link at the top to the package repository link (if necessary).
  • Change GitHub in the Deployment section to GitLab or Codeberg and update the link to the corresponding Tags page (if necessary).
  • Update the Issues and Source fields in the pyproject.toml file with their respective repository-related links (if necessary).
  • Delete the TEMPLATE.md file.
  • 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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts