You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just upgraded to setuptools_scm 8 and am running into the following issue with a setup.py file that has something similar to this (the project also has a pyproject.toml file):
when executing the setup.py file the following error is raised:
Traceback (most recent call last):
File "setup.py", line 26, in <module>
setup(
File "~/venv/lib/python3.8/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
File "~/venv/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 147, in setup
_setup_distribution = dist = klass(attrs)
File "~/venv/lib/python3.8/site-packages/setuptools/dist.py", line 303, in __init__
_Distribution.__init__(self, dist_attrs)
File "~/venv/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 283, in __init__
self.finalize_options()
File "~/venv/lib/python3.8/site-packages/setuptools/dist.py", line 680, in finalize_options
ep(self)
File "~/venv/lib/python3.8/site-packages/setuptools/dist.py", line 700, in _finalize_setup_keywords
ep.load()(self, ep.name, value)
File "~/venv/lib/python3.8/site-packages/setuptools_scm/_integration/setuptools.py", line 98, in version_keyword
_assign_version(dist, config)
File "~/venv/lib/python3.8/site-packages/setuptools_scm/_integration/setuptools.py", line 54, in _assign_version
maybe_version = _get_version(config, force_write_version_files=True)
File "~/venv/lib/python3.8/site-packages/setuptools_scm/_get_version_impl.py", line 89, in _get_version
parsed_version = parse_version(config)
File "~/venv/lib/python3.8/site-packages/setuptools_scm/_get_version_impl.py", line 52, in parse_version
or parse_scm_version(config)
File "~/venv/lib/python3.8/site-packages/setuptools_scm/_get_version_impl.py", line 37, in parse_scm_version
return _entrypoints.version_from_entrypoint(config, entrypoint, root)
File "~/venv/lib/python3.8/site-packages/setuptools_scm/_entrypoints.py", line 38, in version_from_entrypoint
maybe_version: version.ScmVersion | None = fn(root, config=config)
File "~/venv/lib/python3.8/site-packages/setuptools_scm/git.py", line 201, in parse
return _git_parse_inner(
File "~/venv/lib/python3.8/site-packages/setuptools_scm/git.py", line 245, in _git_parse_inner
version = version_from_describe(wd, config, describe_command)
File "~/venv/lib/python3.8/site-packages/setuptools_scm/git.py", line 233, in version_from_describe
return describe_res.parse_success(parse=parse_describe)
File "~/venv/lib/python3.8/site-packages/setuptools_scm/_run_cmd.py", line 71, in parse_success
return parse(self.stdout)
File "~/venv/lib/python3.8/site-packages/setuptools_scm/git.py", line 231, in parse_describe
return meta(tag=tag, distance=distance, dirty=dirty, node=node, config=config)
File "~/venv/lib/python3.8/site-packages/setuptools_scm/version.py", line 210, in meta
parsed_version = _parse_tag(tag, preformatted, config)
File "~/venv/lib/python3.8/site-packages/setuptools_scm/version.py", line 192, in _parse_tag
version = tag_to_version(tag, config)
File "~/venv/lib/python3.8/site-packages/setuptools_scm/version.py", line 93, in tag_to_version
tag_dict = _parse_version_tag(tag, config)
File "~/venv/lib/python3.8/site-packages/setuptools_scm/version.py", line 49, in _parse_version_tag
match = config.tag_regex.match(str(tag))
AttributeError: 'str' object has no attribute 'match'
I can work around this by compiling the tag_regex in setup.py, is that intended?
The text was updated successfully, but these errors were encountered:
Just upgraded to
setuptools_scm
8 and am running into the following issue with asetup.py
file that has something similar to this (the project also has apyproject.toml
file):when executing the
setup.py
file the following error is raised:I can work around this by compiling the
tag_regex
insetup.py
, is that intended?The text was updated successfully, but these errors were encountered: