A minimal Python library template using uv, ruff, and pytest.
Project description
compute-infinity
A minimal Python library template using:
uvfor environment and dependency managementrufffor lintingpytestfor tests- GitHub Actions for CI (lint + test) and CD (publish to PyPI)
Project layout
.
├── pyproject.toml
├── src/
│ └── compute_infinity/
│ ├── __init__.py
│ └── core.py
├── tests/
│ └── test_core.py
└── .github/workflows/
├── ci.yml
└── publish.yml
Quick start
- Install dependencies:
uv sync --dev
- Run lint:
uv run ruff check .
- Run tests:
uv run pytest
Library API
from compute_infinity import hello_world
print(hello_world())
# hello, world
CI and CD
- CI:
.github/workflows/ci.yml- Runs
ruffandpyteston push tomainand pull requests.
- Runs
- CD:
.github/workflows/publish.yml- Builds with
uv build - Publishes to PyPI using trusted publishing on release publish or manual trigger.
- Builds with
PyPI publishing setup
- Create a project on PyPI with the same name as
project.nameinpyproject.toml. - In PyPI, configure Trusted Publisher for this GitHub repository and workflow.
- Create a GitHub Release to trigger publishing.
Inspiration
Naming
'Cause I love you for infinity (Oh, oh, oh)
I love you for infinity (Oh, oh, oh)
'Cause I love you for infinity (Oh, oh, oh)
I love you for infinity (Oh, oh, oh)
- Infinity, Jaymes Young
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
compute_infinity-0.1.0.tar.gz
(14.5 kB
view details)
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 compute_infinity-0.1.0.tar.gz.
File metadata
- Download URL: compute_infinity-0.1.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
133ff7a945097fc129bcbb76dab64b410ab34a01ceb75ebbb47d813762a3b81e
|
|
| MD5 |
1b682a11e8517ea67841e168d5c42516
|
|
| BLAKE2b-256 |
9f64d51092bbcd8e057c30685e416bbade6584e08dac96b6d3bc356e2635e61b
|
File details
Details for the file compute_infinity-0.1.0-py3-none-any.whl.
File metadata
- Download URL: compute_infinity-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b30e0fab66e4c92b8263672992f8faaeb30b7279842dd434cf7a0ceb8d72bcd3
|
|
| MD5 |
0dd189d3853a92b2be9eb61a00833992
|
|
| BLAKE2b-256 |
451110c51cf11ee08b244da85fe312ca3c43b2e2973ad10ac626eb544bb6221f
|