Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uv, tox and Python 3.12 #168

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Commits on Aug 12, 2024

  1. Use uv for managing pinned dev dependencies

    Prior to this change, development virtual environments were
    provisioned with `pip` (a relatively slow tool) with dependency
    versions solved dynamically using spec in 'pyproject.toml' (making each
    build something of a lottery).
    
    This change replaces `pip` with the far faster `uv` [^1], and uses
    pinned versions of dependencies in 'requirements.txt' (making
    environments reproducible).
    
    [^1]: https://github.com/astral-sh/uv
    quicklizard99 committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    34c277b View commit details
    Browse the repository at this point in the history
  2. Don't pin versions of 'dev' dependencies in 'pyproject.toml'

    Prior to this change, `pip install xocto[dev]` would use pinned
    versions of 'dev' dependencies
    
    This change removes pinned versions from 'dev' dependencies in
    'pyproject.toml'. Package maintainers should provision virtual
    environments using versions in 'requirements.txt' with
    `uv pip sync requirements.txt`.
    quicklizard99 committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    b383b02 View commit details
    Browse the repository at this point in the history
  3. Add support for 'tox'

    Adding 'tox' [^1] makes it possible to test xocto against multiple
    versions of Python.
    
    [^1]: https://tox.wiki/
    quicklizard99 committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    7fb9540 View commit details
    Browse the repository at this point in the history
  4. Make all tests pass on Python 3.9 to 3.12 inclusive

    This change adds Python 3.10, 3.11, and 3.12 to 'tox.ini', and makes
    changes to 'dev' dependencies, and to pytest filter warnings, such that
    tests pass on Python 3.9 to 3.12 inclusive.
    quicklizard99 committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    615a080 View commit details
    Browse the repository at this point in the history