module on test.pypi can't install dependencies, even though they exist

Viewed 674

I have done this small package that I want to distribute in my community. It is now on test.pypi and when I want to try to install it, it gives an error that dependencies couldn't be found.

setup.py

...
install_requires=[
    'defcon>=0.6.0',
    'fonttools>=3.31.0'
]
...

throws this error

ERROR: Could not find a version that satisfies the requirement defcon>=0.6.0 (from sameWidther==0.6) (from versions: none)
ERROR: No matching distribution found for defcon>=0.6.0 (from sameWidther==0.6)

but when I manually install, it works

pip install 'fonttools>=3.6.0'
pip install 'defcon>=0.6.0'

1 Answers

-i URL, or --index-url URL means "use URL for installing packages from exclusively". By passing -i https://test.pypi.org/simple/, you thus prohibit searching and downloading packages from PyPI (https://pypi.org/simple). To use both indexes, use --extra-index-url:

$ python -m pip install --extra-index-url https://test.pypi.org/simple/ sameWidther
Related