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

时间:2017-12-26 14:37:47

标签: python python-3.6

python behave module目前的版本为1.2.5。

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

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

"Text DOG text text text CAT";

如果你从git中的开发分支构建并在本地安装,你可以使用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

然后更新您的requirements.txt以获得:

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

问:此开发何时会将模块(1.2.6)部署到Python Package Index

问:如何跟踪此版本地图?

问:有没有更好(更合适)的地方提出这类问题?

1 个答案:

答案 0 :(得分:2)

  

问:这个开发什么时候会将模块(1.2.6)部署到Python包索引?

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

  

问:如何跟踪此版本地图?

您可以观看其GitHub项目,或参考this question

  问:有没有更好(更合适)的地方提出这类问题?

这不是一个好地方IMO,你最好直接询问它的GitHub问题。