pypi deployment error: invalid option "--password="
pypi deployment error: invalid option "--password="
我正在尝试将部署设置为 pypi,但在构建测试后出现错误。
我的 travis-ci 文件在这里:
https://github.com/EnlightNS/enlightns-cli/blob/master/.travis.yml
我使用了在我的 .travis.yml
文件中生成该部分的设置 pypi 命令行。
travis setup pypi
构建失败在这里:
https://travis-ci.org/EnlightNS/enlightns-cli/jobs/78112477
这里的错误是:
Fetching: dpl-1.7.21.gem (100%)
Successfully installed dpl-1.7.21
1 gem installed
invalid option "--password="
failed to deploy
我不知道我做错了什么。
此致
来自issue 327(由OP打开),那是因为密码中有特殊字符。
而the docs.travis-ci on encryption-key确实提到需要转义特殊字符,例如大括号、圆括号、反斜杠和管道符号。
For example, when you want to assign the string 6&a(5!1Ab\ to FOO, you need to execute:
travis encrypt "FOO=6\&a\(5\!1Ab\\"
travis encrypts the string FOO=6\&a\(5\!1Ab\
, which then bash uses to evaluate in the build environment.
Equivalently, you can do:
travis encrypt 'FOO=6\&a\(5\!1AB\'
我正在尝试将部署设置为 pypi,但在构建测试后出现错误。 我的 travis-ci 文件在这里:
https://github.com/EnlightNS/enlightns-cli/blob/master/.travis.yml
我使用了在我的 .travis.yml
文件中生成该部分的设置 pypi 命令行。
travis setup pypi
构建失败在这里:
https://travis-ci.org/EnlightNS/enlightns-cli/jobs/78112477
这里的错误是:
Fetching: dpl-1.7.21.gem (100%)
Successfully installed dpl-1.7.21
1 gem installed
invalid option "--password="
failed to deploy
我不知道我做错了什么。
此致
来自issue 327(由OP打开),那是因为密码中有特殊字符。
而the docs.travis-ci on encryption-key确实提到需要转义特殊字符,例如大括号、圆括号、反斜杠和管道符号。
For example, when you want to assign the string 6&a(5!1Ab\ to FOO, you need to execute:
travis encrypt "FOO=6\&a\(5\!1Ab\\"
travis encrypts the string
FOO=6\&a\(5\!1Ab\
, which then bash uses to evaluate in the build environment.Equivalently, you can do:
travis encrypt 'FOO=6\&a\(5\!1AB\'