NFJones / pipoe

Generate python bitbake recipes!
MIT License
21 stars 22 forks source link

pipoe fails if project does not have a setup.py #22

Open AndreRicardo-Zoetis opened 1 year ago

AndreRicardo-Zoetis commented 1 year ago

Steps to reproduce:

$ pipoe -p typing-extensions
Gathering info:
  typing-extensions
Failed to translate license:
Please enter a valid license name: Python Software Foundation License
   [ERROR] Failed to gather typing-extensions ([Errno 2] No such file or directory: '/tmp/tmp2wy9_lkw/typing-extensions_4.5.0.tar.gz.d/typing_extensions-4.5.0/setup.py')
Generating recipes:

PREFERRED_VERSIONS are available in: ./python-versions.inc

typing-extensions is using pyproject.toml https://github.com/python/typing_extensions/blob/main/pyproject.toml

Note how typing-extensions does not have a setup.py file

$ ls /tmp/tmphn_ez3lq/typing-extensions_4.5.0.tar.gz.d/typing_extensions-4.5.0
CHANGELOG.md  LICENSE  PKG-INFO  pyproject.toml  README.md  src
jveai commented 1 year ago

This would be a very nice thing to get implemented since the "new" standard is 'pyproject.toml' now.