Skip to main content

A utility package designed to enhance workflows projects that use ticdat.

Project description

Test (uv)

A utility package to enhance workflows in projects using TicDat.

The mwcommons library is designed to streamline development and improve usability for optimization and machine learning projects that rely on TicDat. This shared utility package offers specialized tools, helper functions, and custom exceptions, enabling faster development and consistent workflows.

Common Maintenance Tasks

  • Installing dependencies:

    • For fresh environments or setting up the project for the first time.
      • Install uv using pip or pipx. The last one is more recommended to its global isolation property.
        • pipx install uv
    • Create virtual environment using uv.
      • uv venv
      • If you need to create the venv based on a specific python you can use:
        • uv venv --python python3.11
    • Install dependencies using uv.
      • uv sync
  • Add dependencies:

    • uv add <package-name>
  • Removing dependencies:

    • uv remove <package-name>
  • Updating version of the project:

    • Change the version into the pyproject.toml.
    • It uses semantic versioning: '<patch/minor/major>`
  • Running tests:

    • python -m unittest discover test_mw_utils
  • Maintaining a changelog:

    • Update CHANGELOG.md with each release
  • Tagging the release:

    • git tag v<new-version>
  • Building the package:

    • This will create a dist directory with the built package.
    • uv build
  • Publishing to PyPI:

    • uv publish --repository pypi,
    • or twine upload dist/*.

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

mwcommons-0.0.3.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

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

mwcommons-0.0.3-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file mwcommons-0.0.3.tar.gz.

File metadata

  • Download URL: mwcommons-0.0.3.tar.gz
  • Upload date:
  • Size: 28.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mwcommons-0.0.3.tar.gz
Algorithm Hash digest
SHA256 cf27f29d3f856312fd3c2152ec8bed9efec6318b8501668ebe8efae46cfd5463
MD5 4a3e8c2d04fc68ecadfbcdd006938bd7
BLAKE2b-256 357b983c4e968636547565b5b5d295278d1435c52c3bef4d7b0fd30389dfb1e9

See more details on using hashes here.

File details

Details for the file mwcommons-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: mwcommons-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mwcommons-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 68bc0eff0cf0896ce422afb18a69537306f2a758063cd13d91ebdc455af52fa0
MD5 d68d610a02f3145d6472ab4dde67038a
BLAKE2b-256 b665858a411ee0c01ffd9b1ef47d8637f8d8466ed15e23145d4c55c9404e1da9

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