Skip to main content

A clean mathematical utility package.

Project description

mathlib

Run tests — cleanest way

Install dev-dependencies

pip install .[dev]

1. pytest -q — Run your tests

You run:

pytest -q

when you want to test your package code.

Use it:

  • During development
  • Before committing
  • Before releasing/publishing

It checks that everything works inside your local environment.


2. pip install -e . — Editable install (development mode)

You run:

pip install -e .

when you want to:

  • Use this package inside another project
  • Test how the package behaves when imported
  • Develop two packages at once
  • Import the package without reinstalling after every edit

Editable mode = “link the source folder directly”.

Changes in:

src/mathlib/

are immediately reflected everywhere Python imports mathlib.

This is what most developers use all the time during development.


3. python -m build — Create release artifacts

You run:

python -m build

when you are done developing and want to ship the package.

This creates:

dist/myproject-0.1.0-py3-none-any.whl
dist/myproject-0.1.0.tar.gz

Use this when:

  • Releasing on GitHub Releases
  • Publishing to PyPI
  • Giving the packaged library to someone else
  • Deploying internally / privately

This is the “final compiled package” that others install.


🎯 Perfect, clean workflow

Daily development workflow

pip install -e .
pytest -q

→ develop, test, iterate


Before release

pytest -q
python -m build

→ package is ready for upload


Publishing

For PyPI:

twine upload dist/*

For GitHub:

  • Upload the wheel + tar.gz to a release

⭐ Summary (very clean)

Action Command Purpose
Test the package pytest -q Make sure package works
Editable install pip install -e . Use package in dev without reinstalling
Build for release python -m build Produce wheel + source dist for publishing

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

krag_mathlib-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

krag_mathlib-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file krag_mathlib-0.1.0.tar.gz.

File metadata

  • Download URL: krag_mathlib-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for krag_mathlib-0.1.0.tar.gz
Algorithm Hash digest
SHA256 673ebe511776bf2a1b770975cf2333868399b7adb7f1f6453a9f4a82af5a1e06
MD5 624741872335ceb7cde8a1bcffabac5b
BLAKE2b-256 f8575a2966851c0b196ccfd5bfed8fc4abf523aed7bd0ecdf8c23baffe834a44

See more details on using hashes here.

Provenance

The following attestation bundles were made for krag_mathlib-0.1.0.tar.gz:

Publisher: release.yml on Kenura-R-Gunarathna/mathlib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: krag_mathlib-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for krag_mathlib-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b305d89c796f2e66d2f09aecfce1848294d8266d38222694a3f8b2064b3c51c6
MD5 31f03e7f85a2d794b5ea3d648ac51226
BLAKE2b-256 e7c8b03ee56781aa21dacaacb40e69fc7e13b1ddfac67299a4d9ce3005bcb114

See more details on using hashes here.

Provenance

The following attestation bundles were made for krag_mathlib-0.1.0-py3-none-any.whl:

Publisher: release.yml on Kenura-R-Gunarathna/mathlib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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