How to use latest plyer

57 views
Skip to first unread message

Geekademy

unread,
Sep 13, 2017, 6:10:45 PM9/13/17
to kivy-...@googlegroups.com
Hi,

When I add plyer to my buildozer.spec's requirements, I get an older one that
doesn't support what I need to do. e.g. brightness

How do I get the newest from github packaged for android? The spec file doesn't
seem to have a provision for that, as far as I can tell.

Thanks,


ZenCODE

unread,
Sep 13, 2017, 8:49:07 PM9/13/17
to Kivy users support
You can specify the version in your requirements. e.g.

    requirements = ..., plyer==1.3.1dev

Does that work for you?

Geekademy

unread,
Sep 13, 2017, 9:23:21 PM9/13/17
to kivy-...@googlegroups.com
Hi, didn't think that would work because it is not on PyPi but rather on github.

Just tried and it didn't work:

Collecting plyer==1.3.1dev (from -r requirements.txt (line 1))
Could not find a version that satisfies the requirement plyer==1.3.1dev (from
-r requirements.txt (line 1)) (from versions: 1.1, 1.1.1, 1.1.2, 1.2.0, 1.2.1,
1.2.2, 1.2.3, 1.2.4, 1.3.0)
No matching distribution found for plyer==1.3.1dev (from -r requirements.txt
(line 1))


I believe PyPi has the ability to hold development versions now---perhaps a
future buildozer could take the metadata into account.

Thanks,

Geekademy

unread,
Sep 24, 2017, 1:48:01 PM9/24/17
to kivy-...@googlegroups.com
Ok, it took me a while to figure out the exact syntax for this, but here it is:

requirements = kivy,git+https://github.com/kivy/plyer@master#egg=plyer

Notice there is no "plyer==" at the beginning of the package name.

Apparently buildozer's requirements line supports this extended pip syntax,
probably should be documented.

(Thanks to qua non, who pointed me in the right direction.)
Reply all
Reply to author
Forward
0 new messages