tdsmith / homebrew-pypi-poet

Generates Homebrew resource stanzas for Python packages.
MIT License
140 stars 30 forks source link

poet crashes if no sdist available #29

Closed tdsmith closed 6 years ago

Kriechi commented 7 years ago

Same here - any known workarounds? I think if possible we should just skip dependencies without sdist's?

tdsmith commented 7 years ago

No workarounds; this would be unusual for packages distributed on pypi, which is the driving use case.

On Wed, Feb 22, 2017, 01:03 Thomas Kriechbaumer notifications@github.com wrote:

Same here - any known workarounds? I think if possible we should just skip dependencies without sdist's?

— You are receiving this because you authored the thread.

Reply to this email directly, view it on GitHub https://github.com/tdsmith/homebrew-pypi-poet/issues/29#issuecomment-281609605, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKnQUKgXaRk_RPqAEfTPYLZKjGle7EUks5re_nJgaJpZM4JEcos .

alfiepates commented 6 years ago

I've been bitten by this bug today. I'd advocate for two things:

  1. Better error reporting when this does happen. The error message that's spat out is pretty cryptic for non-python users.

  2. The ability to force poet to generate a resource stanza anyway, with non-sdist-y packages commented out: I've come across a couple of libraries in PyPI which are only distributed as wheels (for some ridiculous reason), with the source being available as a tarball from GitHub, etc. It'd be useful to have the tooling still work even if a couple of dependences aren't available automatically: I can enter them manually if I need to.