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

标签 python python-3.6

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/

相关文章:

python - 运行 nose --with-coverage 获取所有包文件,但不获取其他依赖项和库

python - keras 卷积层中的内核大小是如何定义的?

python - asyncio.test_utils.run_briefly 到底是做什么的?

python - request.urlretrieve 在 PythonAnywhere 中作为计划任务运行时失败

python - 解码&符号哈希字符串(&#124&#120&#97)等

python - 如何在 Snowflake 中规范化 unicode 字符串?

python - 片状 8 : "multiple statements on one line (colon)" only for variable name starting with "if"

python - Django 过滤器选择字段显示正确的值但不会过滤

python - 在 Python 3.6 中处理异常

Python socketserver向多个客户端发送数据cpu使用率高