summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* README: apt-get → aptZbigniew Jędrzejewski-Szmek2022-08-151-4/+4
| | | | | | | | | 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
* README: drop distro instructions for python2, drop epel/rhelZbigniew Jędrzejewski-Szmek2022-08-151-6/+11
| | | | | | | | | | | | | | | | | | | | | | 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.
* README: markup and line wrappingZbigniew Jędrzejewski-Szmek2022-08-151-23/+28
| | | | | 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.
* README: fix installation urlsZbigniew Jędrzejewski-Szmek2022-08-151-2/+2
| | | | | | | | 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.
* Merge pull request #111 from keszybz/setuptools-compatZbigniew Jędrzejewski-Szmek2022-08-132-2/+5
|\ | | | | make: fix compat with setuptools >= 61
| * ci: add 3.11 to the test matrixZbigniew Jędrzejewski-Szmek2022-08-131-0/+1
| |
| * make: fix compat with setuptools >= 61Zbigniew Jędrzejewski-Szmek2022-08-131-2/+4
|/ | | | Fixes #110.
* Adding timezone information to datetimes from systemd-journalSamuel BF2022-08-132-3/+15
|
* reader: Fix use of potentially uninitialized valueAndrew Stone2022-08-131-1/+1
|
* setup.py: switch from distutils to setuptoolsTim Orling2022-08-131-1/+1
| | | | | | | 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>
* Merge pull request #104 from systemd/ci-shenanigansZbigniew Jędrzejewski-Szmek2022-08-133-1/+129
|\ | | | | ci: move the CI to GitHub Actions
| * ci: introduce a simple install testFrantisek Sumsal2022-04-141-0/+77
| |
| * ci: move the CI to GitHub ActionsFrantisek Sumsal2022-04-141-0/+51
| |
| * Makefile: accept $SPHINXOPTS from the outsideFrantisek Sumsal2022-03-061-1/+1
| |
* | Update news since 234Dan Bungert2022-08-131-4/+18
| |
* | Set unit name in JournalHandler example, see #74Federico Ceratto2022-08-131-1/+1
| |
* | Merge pull request #91 from chrismullins/journal-examplesZbigniew Jędrzejewski-Szmek2022-08-131-0/+70
|\ \ | | | | | | Journal examples
| * | Add link to journal fields docsChris Mullins2021-01-021-0/+2
| | |
| * | Add journalctl example for ring bufferChris Mullins2021-01-021-1/+1
| | |
| * | Add some examplesChris Mullins2021-01-021-0/+68
| |/
* | fix a mistype in README.mdArchitector #42022-06-231-1/+1
|/ | | "libsytemd" should obviously be "libsystemd"
* journal: remove ChainMapmasterGlandos2020-11-121-11/+3
| | | | | | | "after some quick testing, the execution time got halved (32-ish seconds to 16-ish seconds) when going through all journal entries." Closes #63.
* journal: add namespace supportAlexander Olekhnovich2020-11-122-19/+41
| | | | Add log namespace support which is added since systemd v245
* journal: allow JournalHandler constructor to be called with args in a ↵Tamaki Nishino2020-11-122-0/+28
| | | | | | | | | | | | | | | 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.]
* test: make sure $NOTIFY_SOCKET is unset in testZbigniew Jędrzejewski-Szmek2020-11-121-0/+2
| | | | | | 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.
* reader: make PY_SSIZE_T_CLEANZbigniew Jędrzejewski-Szmek2020-11-121-2/+13
|
* journal: avoid warning about deprecated constantZbigniew Jędrzejewski-Szmek2020-11-121-1/+1
|
* Fix seek_realtime to work with timezone aware dateLéonard Gérard2020-11-121-1/+1
| | | | | `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()`.
* make: Move -std=99 to setup.pyDominik Prien2020-11-112-8/+6
|
* include endian.h for htobe16 definitionKhem Raj2020-11-111-0/+1
|
* Fix a typoHendrikto2020-11-111-1/+1
|
* docs: mention .process() in docstring of .fileno()Zbigniew Jędrzejewski-Szmek2019-06-161-2/+5
| | | | | Together with the previous commit, this makes it much easier to find the right docs. Fixes #48.
* docs: use :manpage: role to provide links to systemd man pagesZbigniew Jędrzejewski-Szmek2019-06-163-25/+26
| | | | | See https://github.com/sphinx-doc/sphinx/pull/4235 for the :manpage: role.
* make: fix "make doc" invocationsZbigniew Jędrzejewski-Szmek2019-06-161-2/+2
| | | | | | | | | | 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.
* Document libsystemd compatiblityZbigniew Jędrzejewski-Szmek2019-06-161-0/+11
| | | | Closes #49.
* Use #if instead of #ifdef for compatibility checksZbigniew Jędrzejewski-Szmek2019-06-162-33/+23
| | | | | This has the advantage that it is slightly less verbose, and also any potential typos in the macro names are immediately detected.
* make: use -std=c99Zbigniew Jędrzejewski-Szmek2019-06-161-1/+3
| | | | | | | I see no good reason to support old standards, when systemd itself requires c99. Let's test with c99 in the CI. Closes #62.
* id128: update constants for systmed-243Zbigniew Jędrzejewski-Szmek2019-06-163-0/+21
|
* tests: add tests for all id128 funcs, including get_machine_app_specific()Zbigniew Jędrzejewski-Szmek2019-06-162-1/+48
|
* id128: conditionalize get_machine_app_specific on libsystemd versionZbigniew Jędrzejewski-Szmek2019-06-161-6/+14
|
* id128: do not copy the id128 buffer bytesZbigniew Jędrzejewski-Szmek2019-06-161-8/+5
| | | | | | There doesn't seem to be any particular need to do this. Also remove unused uuid variable.
* Add id128.get_machine_app_specific functionTomasz Meresiński2019-06-161-0/+39
|
* README: use some more <h2> tagsZbigniew Jędrzejewski-Szmek2019-06-161-1/+3
|
* Modernize C syntaxZbigniew Jędrzejewski-Szmek2019-06-165-41/+40
|
* _listen_fd_with_names documentation now modeled after is_socket_sockaddrMarcel Waldvogel2019-06-161-2/+5
|
* Added support for listen_fds_with_names()Marcel Waldvogel2019-06-164-3/+145
|
* tests: add the reproducer from #51Zbigniew Jędrzejewski-Szmek2019-06-161-0/+13
| | | | | | 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.
* Merge pull request #51 from feedstock/fix_notify_fs_leakZbigniew Jędrzejewski-Szmek2019-06-161-2/+2
|\ | | | | Fix notify fs leak
| * Fix malloc retval checkMarco Paolini2017-09-121-1/+1
| |
| * Avoid ref leak in notifyMarco Paolini2017-09-121-1/+1
| |