Uses linux flock to create lock files that can be used
to protect access across multiple processes.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Move the kernel version tuple calculation out of gpio.py into
the utils package so its available for any module that requires
it. In addition, report the kernel version string with the distribution
info and log the platform in the rollover header.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
While a hardware UART generally won't have symlinks in the "by-path"
and "by-id" folders, it is possible to configure udev to add them.
In addition, adding these fields makes the schema consistent.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This module implements both syncronous and async calls
to pip, separating it from the rest of the application. The
syncronous implementation has no dependencies on Moonraker.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Add a POST /server/jsonrpc endpoint that processes jsonrpc
requests from the body. This allows developers familiar with
the JSON-RPC API to use it in places where a websocket is not
desiriable.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
When the parent folder of a web client is a git repo note the specific
directory that contians a .git subdirectory.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
The versions module contains classes that can parse
Python and Git versions, providing methods to access
the version details.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Older versions of virtualenv include their own "site" module
that does not have the "getsitepackages" method. Add
a check to verify its presence before calling it.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>