Skip to main content

A minimal Python library template using uv, ruff, and pytest.

Project description

compute-infinity

A minimal Python library template using:

  • uv for environment and dependency management
  • ruff for linting
  • pytest for 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

  1. Install dependencies:
uv sync --dev
  1. Run lint:
uv run ruff check .
  1. 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 ruff and pytest on push to main and pull requests.
  • CD: .github/workflows/publish.yml
    • Builds with uv build
    • Publishes to PyPI using trusted publishing on release publish or manual trigger.

PyPI publishing setup

  1. Create a project on PyPI with the same name as project.name in pyproject.toml.
  2. In PyPI, configure Trusted Publisher for this GitHub repository and workflow.
  3. 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

compute_infinity-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

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

Hashes for compute_infinity-0.1.0.tar.gz
Algorithm Hash digest
SHA256 133ff7a945097fc129bcbb76dab64b410ab34a01ceb75ebbb47d813762a3b81e
MD5 1b682a11e8517ea67841e168d5c42516
BLAKE2b-256 9f64d51092bbcd8e057c30685e416bbade6584e08dac96b6d3bc356e2635e61b

See more details on using hashes here.

File details

Details for the file compute_infinity-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for compute_infinity-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b30e0fab66e4c92b8263672992f8faaeb30b7279842dd434cf7a0ceb8d72bcd3
MD5 0dd189d3853a92b2be9eb61a00833992
BLAKE2b-256 451110c51cf11ee08b244da85fe312ca3c43b2e2973ad10ac626eb544bb6221f

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