Skip to content

To ignore _version.py? #300

@liborjelinek

Description

@liborjelinek

Provide a general description of the issue or problem.

Then developing on Ablog, I install it locally (in editable mode) with pip install -e .. It creates src/ablog/_version.py with the content similar to

# file generated by setuptools_scm
# don't change, don't track in version control
TYPE_CHECKING = False
if TYPE_CHECKING:
    from typing import Tuple, Union
    VERSION_TUPLE = Tuple[Union[int, str], ...]
else:
    VERSION_TUPLE = object

version: str
__version__: str
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE

__version__ = version = '0.11.12.dev4+gc17d644'
__version_tuple__ = version_tuple = (0, 11, 12, 'dev4', 'gc17d644')

I am not aware of Setuptools stuff at all. Is it only me or should this file be gitignored as noted in the comment?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions