| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
One usage of `connection_error` got missed when dropping Python 2 support.
|
|
|
|
|
|
| |
Python 2 support was fully dropped in 802c8dcaa3096719be0a1c12 so it can
be a bit confusing to advertise Python 2 build dependencies in the
README.
|
| |
|
| |
|
|\
| |
| | |
Update README.md
|
|/
|
| |
Moved pypi instructions under the Installation heading and added a pypi badge
|
|
|
|
|
|
|
|
|
|
| |
As LGTM is going to be shut down by EOY[0], let's move the code scanning to
CodeQL as recommended. Thanks to GH integration the results from such
scans will be shown both in the respective PR and in the Security ->
Code Scanning tab[1].
[0] https://github.blog/2022-08-15-the-next-step-for-lgtm-com-github-code-scanning/
[1] https://github.com/systemd/python-systemd/security/code-scanning
|
|\
| |
| | |
tests: check for errnos that sd_id128_get_machine actually returns
|
| |
| |
| |
| | |
Now the tests should pass without it.
|
|/
|
|
| |
Fixes #118.
|
|
|
|
| |
Fixes #76.
|
|\
| |
| | |
Compat with python2
|
| |
| |
| |
| |
| | |
I think it's nicer to make one last release with the remaining code
for python2 in place.
|
| |
| |
| |
| |
| | |
'import foo as _foo' is useful in exported modules to avoid 'foo' being
present in the public API. No need to play that game in test code.
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
| |
This is a lazy workaround: 4c9a241949067fc8d55f3ea12170ad364bd8b18d
is amended to do nothing on python2, so we have the same issue that
was present before. This allows the code to execute, and hopefully
almost nobody is using python2 code anyway.
f868a56b935b6152d611b22f7a5538f14dafb194 is amended in the same way.
For python2 code we have the same lack of timezone-awareness as before.
This allows the tests to pass under python 2.7.
|
|\
| |
| | |
Support realtime cutoff access
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Update/clean-up installation instructions
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | | |
Let's cover merges into main with CIs too.
|
|/ / |
|
|\ \
| | |
| | | |
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()`.
|