| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
Based on Jörg Behrmann's comment:
https://github.com/systemd/python-systemd/pull/114#discussion_r945896280
> apt is available in the stretch, which is the oldest listed [1] release for it
> and stretch has already ended LTS support.
[1] https://packages.debian.org/bullseye/apt
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fedora has no python2 package, so drop that.
Similarly, with latest Debian and Opensuse, 'apt-get install
python3-systemd' works, but 'apt-get install python-systemd' doesn't.
(Tested with
podman run -it --rm debian apt-get install python3-systemd
mock -r opensuse-tumbleweed-x86_64 --enable-network -i python3-systemd)
It also seems we never built the package in EPEL, so let's drop
RHEL/CentOS from the list.
If people need to, they can install from sources where the distro
packages are unavailable (and they shouldn't be using python2 anyway
at this point.)
Also add 'apt-get update' into the instructions because w/o that
install does not work in a pristine container.
Fixes #78.
|
| |
|
|
|
| |
Bash doesn't do anything special for a command with '#', but at least
zsh treat it as a comment. It's better to quote such a commandline.
|
| |
|
|
|
|
|
|
| |
pip3 install says:
WARNING: Discarding git+https://github.com/systemd/python-systemd.git#egg=systemd. Requested systemd-python from git+https://github.com/systemd/python-systemd.git#egg=systemd has inconsistent name: filename has 'systemd', but metadata has
'systemd-python'
Closes #97.
|
| |\
| |
| | |
make: fix compat with setuptools >= 61
|
| | | |
|
| |/
|
|
| |
Fixes #110.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
In Python 3.10, distutils is deprecated and slated for removal in Python
3.12. It also prevents 'setup.py bdist_wheel' from building a wheel.
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
|
| |\
| |
| | |
ci: move the CI to GitHub Actions
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |\ \
| | |
| | | |
Journal examples
|
| | | | |
|
| | | | |
|
| | |/ |
|
| |/
|
| |
"libsytemd" should obviously be "libsystemd"
|
| |
|
|
|
|
|
| |
"after some quick testing, the execution time got halved (32-ish
seconds to 16-ish seconds) when going through all journal entries."
Closes #63.
|
| |
|
|
| |
Add log namespace support which is added since systemd v245
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
positional param
This change enables to add extra fields to JournalHandler in a
configuration file loaded by `logging.config.fileConfig`, which only allows positional
parameters:
class=systemd.journal.JournalHandler
args={'level': INFO, 'SYSLOG_IDENTIFIER': 'my-cool-app'}
[zj: originally the patch added a new positional parameter to
__init__(), but that is not backwards compatible. So I added a new
classmethod to allow the positional parameters to be passed.]
|
| |
|
|
|
|
| |
When running the tests in Fedora's mock, the test would
fail because NOTIFY_SOCKET is set to /run/systemd/nspawn/notify, and
we get a permission error.
|
| | |
|
| | |
|
| |
|
|
|
| |
`strftime("%s")` is not in the official python documentation but in my system (ubuntu 18.04 python 3.6.9) it is not aware of the object timezone and will return the wrong value if the timezone is specified and is not the system local one.
There are multiple ways to ensure a python `datetime.datetime` is in local timezone, the easiest (with python 3.3+) is to call `.astimezone()` If one wants to support earlier versions of python an extra dependency might be needed like `dateutil.tz.tzlocal()`.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
Together with the previous commit, this makes it much easier to find
the right docs. Fixes #48.
|
| |
|
|
|
| |
See https://github.com/sphinx-doc/sphinx/pull/4235 for the :manpage:
role.
|
| |
|
|
|
|
|
|
|
|
| |
python insists on adding . to python.path, so we always import the systemd
in the top-level directory instead of the one in build/ that we want. Let's
cd into docs/ first, so that we get the right module imported.
Also, replace sphinx-build calls with $(PYTHON) -m sphinx. This has the
advantage that once $(PYTHON) is set, the appropriate sphinx executable is
chosen.
|
| |
|
|
| |
Closes #49.
|
| |
|
|
|
| |
This has the advantage that it is slightly less verbose, and
also any potential typos in the macro names are immediately detected.
|
| |
|
|
|
|
|
| |
I see no good reason to support old standards, when systemd itself
requires c99. Let's test with c99 in the CI.
Closes #62.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
There doesn't seem to be any particular need to do this.
Also remove unused uuid variable.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
The example relies on implementation details, but I don't see
why it wouldn't work everywhere. Let's pull it in, and if it breaks
somewhere, we can remove it.
|
| |\
| |
| | |
Fix notify fs leak
|
| | | |
|
| | | |
|