Skip to content

Some ETOS Python packages not working with latest tox and setuptools #284

@andmat900

Description

@andmat900

Description

Some ETOS Python packages that were migrated to pyproject.toml a few months ago now aren't working with latest tox and setuptools.

Affected packages:

  • etos-library
  • etos-environment-provider
  • etos

An attempt to run tox results in

  File "/home/user/src/etos-library/venv/lib/python3.9/site-packages/setuptools_scm/_get_version_impl.py", line 101, in _get_version
    version_string = _format_version(parsed_version)
  File "/home/user/src/etos-library/venv/lib/python3.9/site-packages/setuptools_scm/version.py", line 449, in format_version
    assert main_version is not None
AssertionError

The problem is caused by this setting in pyproject.toml, which tox does not seem to understand:

[tool.setuptools_scm]
version_scheme = "setup:version_scheme"
local_scheme = "setup:local_scheme

Additional Context

No response

Logs

No response

Expected Behavior

The packages shall be compatible with latest tox and setuptools.

Steps To Reproduce

No response

The version of this project/repo, if applicable

No response

The version/edition of the Eiffel Protocol used, if applicable

main

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions