Skip to content

fail to build with python 3.13 #44

Open
@hubutui

Description

@hubutui

according to https://docs.python.org/3/whatsnew/3.13.html#defined-mutation-semantics-for-locals, we need some modifications. We need to update get_version function in setup.py:

def get_version():
    with open(version_file, 'r') as f:
        version_dict = {}
        exec(compile(f.read(), version_file, 'exec'), version_dict)
    import sys
    # return short version for sdist
    if 'sdist' in sys.argv or 'bdist_wheel' in sys.argv:
        return version_dict['short_version']
    else:
        return version_dict['__version__']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions