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.0.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.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

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

Hashes for compute_infinity-0.0.0.tar.gz
Algorithm Hash digest
SHA256 9ea0ef3c89ef27377e77a82ed19ab310e27a040419f2e064cf36975f7acc4831
MD5 3407e8da293bb9abf11fd5e40e5f7427
BLAKE2b-256 37800d140f1395f929c7adadf11b5cb0414fbdf99541228528c3eeebc0037263

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for compute_infinity-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88e86c7579c41924989ffaa741329dd49624efc5551598bee80e58f93e73a575
MD5 fd81a5f0be9cac4d527d880e7a10a664
BLAKE2b-256 c4727b2c19821f59335dfe0c4c276645dc5c7b87b6952765ae592352d07a72c2

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