pypiserver/pypiserver

Documentation for -P is incorrect

クローズ

#261 opened on 2019/07/06

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Python (291 件のフォーク)batch import
good first issue

Repository metrics

Stars
 (1,663 個のスター)
PR merge metrics
 (平均マージ 3d 18h) (30d で 7 merged PRs)

説明

The -P option appears to require no spaces after the P for it to work correctly. I encountered this in my dev Kubernetes instance where I wanted no authentication, and I could not get the server to start with the following CMD:

CMD ["pypi-server", "-p 8080", "-P .", "-a .", "/root/packages"]

However, the following CMD (no space between P and .) worked as expected:

CMD ["pypi-server", "-p 8080", "-P.", "-a .", "/root/packages"]

Then when I deployed the pypi server to my production Kubernetes environment where I want authentication for upload/download, the following CMD caused the server to not start because it could not find the .htaccess file:

CMD ["pypi-server", "-p 8080", "-P /root/packages/.htaccess", "-a update,download", "/root/packages"]

However, when I rebuilt the image with no space between -P and /root/packages/.htaccess, the server started just fine. This is a non-standard behavior for options AFAIK.

The version I'm running is 1.3.0, that is what pip pulled for a docker image based on Ubuntu 18.10.

コントリビューターガイド