简体   繁体   English

setuptools_scm 引发 AssertionError:不支持自己的开发号

[英]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.

相关问题 ReadTheDocs + Sphinx + setuptools_scm:怎么做? - ReadTheDocs + Sphinx + setuptools_scm: how to? setuptools_scm 可用时是否需要bumpversion(或bump2version)? - Is there a need for bumpversion (or bump2version) when setuptools_scm is available? setuptools_scm 不适用于 `pip install.` 在父文件夹中的 git - setuptools_scm not working with `pip install .` in case of .git in parent folder 受Cython生成的C代码中的注释影响的setuptools_scm版本 - setuptools_scm version affected by comments in C code generated by Cython Python setup.py setuptools_scm use_scm_version/get_version() 错误 - Python setup.py setuptools_scm use_scm_version/get_version() error POST 请求引发 AssertionError - POST request raises AssertionError PyPi 断言错误:不支持的架构 - PyPi AssertionError: unsupported schema setuptools_scm.version.SetuptoolsOutdatedWarning:您的setuptools太旧(&lt;12) - setuptools_scm.version.SetuptoolsOutdatedWarning: your setuptools is too old (<12) pytest-xdist: LookupError: setuptools-scm 无法检测版本 - pytest-xdist: LookupError: setuptools-scm was unable to detect version setuptools-scm:当前版本而不是下一个版本 - setuptools-scm: current version instead of next version
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM