Opinionated Python + uv template for new packages.
Project description
template-python-uv-package
Opinionated Python + uv template for new packages.
- Source code
- PyPI package
- ClickPy
- ecosyte.ms
- Libraries.io
- Open Source Insights
- OSV
- PyPack Trends
- Snyk
- Socket
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-packageand replace it with the package name. Ignore the template repository URL in the NOTES.md file. - Search for
template_python_uv_packageand 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 Palmeiroand replace it with the author's name. - Search for
joaopalmeiro@proton.meand replace it with the author's email address. - Update the
Source codelink at the top to the package repository link (if necessary). - Change
GitHubin theDeploymentsection toGitLaborCodebergand update the link to the corresponding Tags page (if necessary). - Update the
IssuesandSourcefields in the pyproject.toml file with their respective repository-related links (if necessary). - Delete the TEMPLATE.md file.
- Delete the
Getting Startedsection.
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
- Commit and push changes.
- Create a tag on GitHub Desktop.
- Check GitHub.
UV_PUBLISH_TOKEN=""op://Development/PyPI/UV_PUBLISH_TOKEN"" op run -- uv publish
- Check PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
123dea22088243429308da49282add3d7318e3fd0d1fbf393eae66e811bf0ae3
|
|
| MD5 |
b3667fc3390a081518f423ebee8c1c9c
|
|
| BLAKE2b-256 |
a6fceffa1a641a9e74ec65ed3b0209240ea958ddda834f6980dc0e9b04da7421
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8df2d4aa33d008ba0b07b95d0c5fee2c76ff258b1995f69ebfcf954f1c1f872
|
|
| MD5 |
3a02ed162ed8ab72a0b8d32d38f3f253
|
|
| BLAKE2b-256 |
6d8eaadf9ad30de77015cae20de3a5b716ef98f2515369dc805b25b6d67c7975
|