Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyPI does not allow direct dependencies #38

Closed
dgerlanc opened this issue Oct 14, 2020 · 5 comments · Fixed by #46
Closed

PyPI does not allow direct dependencies #38

dgerlanc opened this issue Oct 14, 2020 · 5 comments · Fixed by #46
Assignees
Labels
bug Something isn't working

Comments

@dgerlanc
Copy link
Contributor

PyPI does not support git entries in install_requires.

make pypi
Uploading distributions to https://upload.pypi.org/legacy/
Uploading pymc3_hmm-0.0.1-py2-none-any.whl
100%|| 20.3k/20.3k [00:00<00:00, 60.3kB/s]NOTE: Try --verbose to see response content.
HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
Invalid value for requires_dist. Error: Can't have direct dependency: 'pymc3 @ git+https://github.com/pymc-devs/pymc3@master'
make: *** [pypi] Error 1

Please provide any additional information below.

Versions and main components

  • Python version: 3.8.6
  • Operating system: OS X
  • How did you install Theano: pip
@dgerlanc dgerlanc added the bug Something isn't working label Oct 14, 2020
@brandonwillard
Copy link
Contributor

Yeah, we have to wait until PyMC3 cuts a release for the new Theano-PyMC dependency.

@rlouf
Copy link

rlouf commented Oct 23, 2020

Have you tried using the dependency_links keyword argument to setup()? Doc. You can specify the address to the tarball and add the package's name and version in install_requires.

@dgerlanc
Copy link
Contributor Author

Have you tried using the dependency_links keyword argument to setup()? Doc. You can specify the address to the tarball and add the package's name and version in install_requires.

Have not - will see if we can just pin to master branch .tar.gz that Github automatically creates.

@brandonwillard
Copy link
Contributor

Ah, yeah, this implies that it's possible, as well.

@brandonwillard
Copy link
Contributor

Unfortunately, it doesn't look like dependency_links will work as expected; at some point, pip apparently shuts it down (see pypa/pip#6162 and pypa/pip#5898).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants