gpt4 book ai didi

python - 如何将 python 行为模块发布到 python 包索引?

转载 作者:行者123 更新时间:2023-12-01 02:20:37 25 4
gpt4 key购买 nike

python behave module目前版本为 1.2.5。

但是,行为版本 1.2.5 在使用 Python 3.6.x 运行时会出现问题。

在 Python 3.6.x 下运行行为时,您会得到如下输出:

>  Traceback (most recent call last):
> File "/Applications/PyCharm.app/Contents/helpers/pycharm/behave_runner.py", line 281, in <module>
> my_config = configuration.Configuration(command_args=command_args)
> File "/Users/jkroub/.virtualenvs/gs-quality-control-env/lib/python3.6/site-packages/behave/configuration.py", line 601, in __init__
> self.name_re = self.build_name_re(self.name)
> File "/Users/jkroub/.virtualenvs/gs-quality-control-env/lib/python3.6/site-packages/behave/configuration.py", line 665, in build_name_re
> return re.compile(pattern, flags=(re.UNICODE | re.LOCALE))
> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/re.py", line 233, in compile
> return _compile(pattern, flags)
> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/re.py", line 301, in _compile
> p = sre_compile.compile(pattern, flags)
> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/sre_compile.py", line 562, in compile
> p = sre_parse.parse(p, flags)
> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/sre_parse.py", line 865, in parse
> p.pattern.flags = fix_flags(str, p.pattern.flags)
> File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/sre_parse.py", line 832, in fix_flags
> raise ValueError("cannot use LOCALE flag with a str pattern")
> ValueError: cannot use LOCALE flag with a str pattern

如果您从 git 中的开发分支进行构建并在本地安装,则可以使用 Python 3.6.x 进行工作:

pip install git+https://github.com/behave/behave

然后,您将您的requirements.txt更新为:

behave==1.2.6.dev0

问:这个开发行为模块(1.2.6)什么时候部署到Python Package Index

问:如何追踪此发布 map ?

问:是否有更好(更合适)的地方来提出此类问题?

最佳答案

Q: When will this development behave module (1.2.6) be deployed to the Python Package Index?

我想除了behavior项目的维护者之外没有人知道这一点。

Q: How can you track this release map?

您可以观看其 GitHub 项目,或引用 this question .

Q: Is there a better (more appropriate) place to ask this type of question?

在我看来,SO 不是一个好地方,你最好直接在其 GitHub 问题上询问。

关于python - 如何将 python 行为模块发布到 python 包索引?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47980033/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com