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.0.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.0.0.tar.gz.
File metadata
- Download URL: compute_infinity-0.0.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 |
9ea0ef3c89ef27377e77a82ed19ab310e27a040419f2e064cf36975f7acc4831
|
|
| MD5 |
3407e8da293bb9abf11fd5e40e5f7427
|
|
| BLAKE2b-256 |
37800d140f1395f929c7adadf11b5cb0414fbdf99541228528c3eeebc0037263
|
File details
Details for the file compute_infinity-0.0.0-py3-none-any.whl.
File metadata
- Download URL: compute_infinity-0.0.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 |
88e86c7579c41924989ffaa741329dd49624efc5551598bee80e58f93e73a575
|
|
| MD5 |
fd81a5f0be9cac4d527d880e7a10a664
|
|
| BLAKE2b-256 |
c4727b2c19821f59335dfe0c4c276645dc5c7b87b6952765ae592352d07a72c2
|