Skip to main content

CVX package template for convex optimization projects.

Project description

cvx-package-template

build docs codecov license pypi

Template instructions (to be removed)

This is a template for creating packages in the cvxpy ecosystem. It provides a basic structure and configuration for a Python package, including:

  • A pyproject.toml file for package metadata and dependencies.
  • A tests directory for unit tests using pytest and pytest-cov for coverage reporting.
  • A docs directory for documentation using Sphinx.
  • A examples directory for example usage of the package, which will be displayed in the documentation.
  • Linting and formatting using ruff and typechecking using ty.
  • Pre-commit hooks using pre-commit to ensure code quality before committing changes.

Running tests

To be able to run unit tests with uv you will need:

uv sync --group dev

You can then run the tests using:

uv run pytest tests

Alternatively, with pip you can install the dev dependencies and run the tests using:

pip install -e .[dev]
pytest tests

Building documentation locally

To build and run the documentation locally using sphinx-autobuild, you need to first install dependencies using the following commands:

uv sync --group dev --group doc
uv run sphinx-autobuild docs/src docs/_build/html

Alternatively, with pip you can install the dev and doc dependencies and run the documentation using:

pip install -e .[dev,doc]
sphinx-autobuild docs/src docs/_build/html

Repository description goes here.

The full documentation is available here.

If you wish to cite repository please cite the papers listed here.

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

cvx_package_template-0.1.2.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

cvx_package_template-0.1.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file cvx_package_template-0.1.2.tar.gz.

File metadata

  • Download URL: cvx_package_template-0.1.2.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for cvx_package_template-0.1.2.tar.gz
Algorithm Hash digest
SHA256 25400e7c4a36506bfef6a683741eaa66d5861d5ddd7e273bc92be0abba7f866f
MD5 6f7dfba84f95ab6957b9e7d0c15eb416
BLAKE2b-256 ce2692dc897bfdb8e6867717151f2050b1929e2319a6d310f998485e3917c172

See more details on using hashes here.

Provenance

The following attestation bundles were made for cvx_package_template-0.1.2.tar.gz:

Publisher: release.yaml on langestefan/cvx-package-template

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

File details

Details for the file cvx_package_template-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cvx_package_template-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d4db7fc52507fc3e974e4c01af2f847f472364c9f0b1fc32db6af18dea5583b2
MD5 29f968340e9e169fbbf68bc2d38b45b8
BLAKE2b-256 98af607a030394c34cb7fd13cd83187e5a7494da07228f1157c32d7f7eeb29f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for cvx_package_template-0.1.2-py3-none-any.whl:

Publisher: release.yaml on langestefan/cvx-package-template

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