python setup.py should return a non-zero code if upload register fails

Guy Rozendorn avatarGuy Rozendorn created an issue

No description provided.

Comments (4)

  1. Guy Rozendorn
    python2.7 setup.py register
    ...
    Registering infi.hello to http://pypi.python.org/pypi
    Server response (401): basic auth failed
    guyr@guyr-ubuntu ~/code/hello_world (develop)
    $ echo $?
    0
    
  2. Guy Rozendorn

    if using Python>=2.5, distribute uses disutils's upload command, which isn't properly factored, and the only option to make it raise an exception if the upload failed to copy the upload_file method from disutils.

    But the upload_file method is different between Python 2.6 and 2.7 (and probably differs from other versions too), so copying just this method is a bitch.

    I don't see an easy fix for this. I will leave this as an open issue. Hopefully, there will resolve this (return proper exit codes) with disutils2, or at least throw exceptions on upload failures.

  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.