pypiserver / pypiserver

Minimal PyPI server for uploading & downloading packages with pip/easy_install

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTTPError: 405 Method Not Allowed

pedro-cf opened this issue · comments

Hello I can't seem to get my pypiserver to work properly...

I set it up with:

htpasswd -sc .htpasswd myuser
docker run -d -p 8081:8080 -v $PWD/.htpasswd:/data/.htpasswd pypiserver/pypiserver:latest run -P .htpasswd packages

and when I use:
twine upload --repository-url http://localhost:8081/simple/ --username myuser --password mypassword dist/*

I get:

Uploading distributions to http://localhost:8081/simple/
Uploading cdse_interface-1.tar.gz
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.5/5.5 kB • 00:00 • ?
WARNING Error during upload. Retry with the --verbose option for more details.
ERROR HTTPError: 405 Method Not Allowed from http://localhost:8081/simple/
Method Not Allowed

whats wrong ?

I ran into this issue a moment ago and after stepping through the code with the debugger, found that I needed to remove "/simple" from the repository URL I was using. Hope that helps!