python: drop evemu.const usages for device bits

We have make-event-names.py that generates the required mappings, there is no
need for having a hand-updated file around that provides some of these
constants.

Previously we compared the event names as well as the event values in
test_case.py. That was useful when we were using two different sources
(event_names.py and the hand-maintained const.py). Now we generate the dicts
from the same source. We have separate tests for evemu.event_get_(value|name)
so we don't need the this extra comparison against the names in test_get_abs_*
and friends anymore.

Special note on get_expected_propbits(): we previously returned a dict with
the absolute axes as keys. This is fixed here, we now return a dict with the
actual property bits as keys. Since all values were always False and both
absbits and propbits are just numbers this never got noticed before.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
python: fix evemu.Device.has_prop() for string arguments

Using 'prop' instead of 'event_code' would be more sensible but it'd break
API, python allows named arguments.

Introduced in 385b6e3d8cd257e878cbe82e4bd0f38d8b8b1ca7

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
python: deprecate evemu.const

It's now unused in internal code. Leave it there to avoid breakage of older
clients, but otherwise ignore it for the future.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
python: explicitly specify file lists

Don't use a wildcard, avoids accidentally shipping files we shouldn't, and
clearly lists what we intend to ship.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
python: move event-names.py generation into the toplevel python makefile

Just to have things together

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
python: add all .pyc files to CLEANFILES

Splitting the python_sources into a separate variable. No functional change,
just nicer to read than base_python_PYTHON in the CLEANFILES.

Python2 and Python3 have different behaviors for the pyc files, in Python3
they're inside a __pycache__ folder and named e.g. const.cpython-33.pyc.
We can just delete the folder itself here, not worrying about the specific
names.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>