kivy / python-for-android

Turn your Python application into an Android APK
https://python-for-android.readthedocs.io
MIT License
8.33k stars 1.84k forks source link

Enhancement request: cleanup recipe names #2825

Open RobertFlatt opened 1 year ago

RobertFlatt commented 1 year ago

Description

Having worked to get requirements correct, users find the recipe names are different for no apparent reason. WTF?!

And scrolling the recipes directory, looking for a clue, is a challenge because there are also libraries and misnamed items in there.

Its confusing.

Cleanup the names, and in p4a implement a lookup table for backwards compatibility. Or create alias recipes like pil.

Wrong name wrt Pypi

dateutil        is python-dateutil
mysqldb         is mysql-python       - this claims to only support Python2
ndghttpsclient  is ndg-httpsclient
opencv          is opencv-python
opencv_extras   is opencv-contrib-python
protobuf_cpp    is protobuf-python
pyleveldb       is leveldb
spine           is spine-cython
Conflicting Pypi name:

av recipe is not av package, correct name is pyav , av is a different package
Some oddballs, not clear how a user would know what these are (or how to use them)

audiostream
cymunk
pil
vlc
Libs that are not named libXXXX (perhaps all the libs could be in a different directory?)

freetype 
harfbuzz
ifaddrs
jepd
openal
openssl
sqlite3
misl6 commented 1 year ago

av recipe is not av package, correct name is pyav , av is a different package

https://pypi.org/project/av/ isn't the same we support under the av recipe?

RobertFlatt commented 1 year ago

Sorry, my error. You are correct.

misl6 commented 1 year ago

Current status:

✅ dateutil -> python-dateutil (Removed, as not needed anymore, via https://github.com/kivy/python-for-android/pull/2829) ✅ mysqldb -> mysql-python (Removed, as Python2.x only, via https://github.com/kivy/python-for-android/pull/2828) 🟡 ndghttpsclient -> ndg-httpsclient 🟡opencv -> opencv-python 🟡opencv_extras -> opencv-contrib-python 🟡protobuf_cpp -> protobuf-python (See: https://github.com/protocolbuffers/protobuf/tree/main/python#implementation-backends) 🟡pyleveldb -> leveldb 🟡spine -> spine-cython