[英]setuptools_scm raises AssertionError: own dev numbers are unsupported
I have been using these two arguments in the setup.py for a while without any problems.我在 setup.py 中使用这两个 arguments 有一段时间了,没有任何问题。
use_scm_version={"local_scheme": "no-local-version",},
setup_requires=["setuptools_scm"],
Although I have not made any changes on the setup.py
, today I started having this exception below.尽管我没有对
setup.py
进行任何更改,但今天我开始在下面遇到此异常。
AssertionError: own dev numbers are unsupported
It happens when I call python setup.py
.当我调用
python setup.py
时会发生这种情况。 I suspect it is due to a change the maintainers of setuptools made recently.我怀疑这是由于 setuptools 的维护者最近做出的改变。
The full error goes like this:完整的错误如下:
module_name/.eggs/setuptools_scm-4.1.2-py3.7.egg/setuptools_scm/version.py", line 229, in _bump_dev
assert tail == "0", "own dev numbers are unsupported"
AssertionError: own dev numbers are unsupported
I tried changing the setup.py
with this我尝试用这个更改
setup.py
use_scm_version=True,
setup_requires=["setuptools_scm"],
Still the exception is raised.仍然引发异常。 What might be the problem here?
这里可能有什么问题?
Thanks in advance!提前致谢!
When you encounter this error, check the git tags with the git tag -l
command.遇到此错误时,请使用
git tag -l
命令检查 git 标签。
If a tag is containing dev
in its name such as 0.1.dev37
then delete it using git tag -d 0.1.dev37
.如果标签名称中包含
dev
,例如0.1.dev37
,则使用git tag -d 0.1.dev37
将其删除。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.