Skip to content

Consider a pyproject.toml option for restoration of existing version.py behavior #1299

@kory

Description

@kory

In setuptools-scm v 10.x, version.py is no longer generated in source. An environment variable is offered as an alternative to restore the old behavior.

We often mix installing a built wheel with running scripts from the root of our repository. Python's sys.path will prioritize the local package inside the repository root, which no longer has _version.py, resulting in failures.

It is difficult for us to inform all users of our source code that an environment variable is now needed for many of our workflows to continue functioning correctly.

Please consider adding a pyproject.toml option to restore the old behavior. This would help minimize disruption for projects that were relying heavily on the previous behavior.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions