Skip to content

[pull] main from gvalkov:main#11

Open
pull[bot] wants to merge 32 commits intoLillecarl:mainfrom
gvalkov:main
Open

[pull] main from gvalkov:main#11
pull[bot] wants to merge 32 commits intoLillecarl:mainfrom
gvalkov:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Jan 22, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

- The existing ecodes.py is renamed to ecodes_runtime.py.

- An ecodes.py is generated at build time (in build_ext) with the genecodes_py.py
  script, after the extension modules are built. The script essentially does a
  repr() on vars(ecodes_runtime) and adds type annotations.

- If something goes wrong in the process of generating ecodes.py, ecodes_runtime.py
  is copied to ecodes.py.

- Stop generating ecodes.pyi as the generated ecodes.py is fully annotated.
@pull pull bot added ⤵️ pull merge-conflict Resolve conflicts manually labels Jan 22, 2025
Header files passed to genecodes_c.py were ignored after commit 4a0efdd.
@gvalkov gvalkov force-pushed the main branch 3 times, most recently from 915f2c1 to eda8be2 Compare February 2, 2025 20:16
- Construct tuple directly instead of using Py_BuildValue.
- Return a tuple of tuples instead of a list of tuples.
- Read argument (fd) directly instead of using PyArg_ParseTuple.
gvalkov and others added 6 commits February 22, 2025 12:05
ecodes.c currently contains the kernel info of the build machine and the
full path of the input*.h headers: This is not reproducible as output
can change even is headers content do not. Downstream distributions
might package ecodes.c and get non-reproducible output.

To fix this: introduce a --reproducible option in the build:
- in setup.py build_ecodes command
- in underlying genecodes_c.py

Note: These options are disabled by default so no change is expected in
current builds.

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
* Use Generic to set precise type for InputDevice.path

* Update src/evdev/device.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⤵️ pull merge-conflict Resolve conflicts manually

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants