将我的python项目(在GitHub上)自动发布到PyPi似乎相当容易:https://docs.travis-ci.com/user/deployment/pypi/
所以,我在.travis.yml
添加了以下内容:
deploy:
provider: pypi
user: DanHickstein
on:
tags: true
password:
secure: GHhpt4Ssv2VQh6...
它几乎可以工作,但我得到TravisCI的以下错误:
Preparing deploy
Authenticated as DanHickstein
Deploying application
python: can't open file 'setup.py': [Errno 2] No such file or directory
ValueError: Cannot find file (or expand pattern): 'dist/*'
python: can't open file 'setup.py': [Errno 2] No such file or directory
我无法理解无法找到setup.py
的原因。它与.travis.yml
...