tadeck / onetimepass

One-time password library for HMAC-based (HOTP) and time-based (TOTP) passwords
http://otp.readthedocs.org/
MIT License
681 stars 101 forks source link

pip install fails #3

Closed TimidRobot closed 11 years ago

TimidRobot commented 11 years ago

The download_url in setup.py does not contain the module name. pip install -vvv onetimepass includes the following message (manually wrapped):

Skipping link https://github.com/tadeck/onetimepass/archive/v0.1.2.tar.gz
(from https://github.com/tadeck/onetimepass); wrong project name (not onetimepass)

and fails with the the following errors:

Could not find any downloads that satisfy the requirement onetimepass
No distributions at all found for onetimepass

The following installation method does work:

pip install https://github.com/tadeck/onetimepass/archive/v0.1.2.tar.gz
tadeck commented 11 years ago

@TimZehta, could you review it again? From what I am experiencing with recent versions of library, it does not occur any more.

Here is my attempt to reproduce the issue:

$ virtualenv --no-site-packages venv
New python executable in venv/bin/python
Installing Setuptools.........................................................done.
Installing Pip................................................................done.
$ source venv/bin/activate
(venv)$ pip freeze
argparse==1.2.1
wsgiref==0.1.2
(venv)$ pip install -vvv onetimepass
(... plenty of lines without errors ...)
Successfully installed onetimepass six
Cleaning up...
  Removing temporary dir /home/tadeck/testground15/venv/build...
(venv)$ pip freeze
argparse==1.2.1
onetimepass==0.2.2
six==1.4.1
wsgiref==0.1.2 

I am assuming the issue is already fixed, but if anyone thinks otherwise and can supply more details (preferably way to reproduce the issue), I will take look at this again.

TimidRobot commented 11 years ago

Confirmed fixed.

When I encountered this issue there was not a onetimepass source tarball available on PyPI (or PyPI was not serving it correctly).