Gemfury构建失败,出现SyntaxError

时间:2019-05-05 16:20:37

标签: python build package python-packaging

我按照Gemfurey Dev docs的初始设置进行操作,当尝试push进入愤怒的master分支时,构建被触发,并以SyntaxError失败

remote: Resolving deltas: 100% (86/86)
remote: Initializing build: done.
remote: -----> Building package...
remote:        Python package build detected
remote:        File "setup.py", line 17
remote:        README: str = Path(HERE, "README.rst").read_text(encoding='utf-8')
remote:        ^
remote:        SyntaxError: invalid syntax
remote: -----> Problem building package!

我认为这里的问题是运行不正确版本的python来构建软件包。我试图检查configure the build是否可以使用正确的python版本-在本例中为3.6-但没有暗示这种可能性。

我可以做些什么来使这些自动构建工作正常进行,还是我唯一的选择是在本地构建软件包并将其上传到Fury索引?

谢谢!

1 个答案:

答案 0 :(得分:0)

不幸的是,Gemfury当前的“ git push”构建器仅支持Python 2,无法配置运行时。如果您受此限制,建议您在本地进行构建或使用其他CI / CD解决方案进行构建并将其推送到您的Gemfury帐户中。