Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | replace dict.iteritems() with dict.items() to support py3 (#39) | Jeongsoo, Park | 2017-03-11 | 2 | -12/+50 | |
| | | | | | | py3 doesn't have dict.iteritems() anymore. | |||||
* | | test_daemon: xfail test_notify_with_socket if bind() fails (#42) | Mike Gilbert | 2017-03-11 | 1 | -1/+4 | |
| | | | | | | | | | | This bind() call may fail if TMPDIR is too long. Bug: https://bugs.gentoo.org/610368 | |||||
* | | Python 3.6 invalid escape sequence deprecation fixes (#43) | Ville Skyttä | 2017-03-11 | 1 | -2/+2 | |
| | | | | | | https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior | |||||
* | | Added section for installation on openSUSE & SLE (#35) | Johannes Weberhofer | 2016-12-16 | 1 | -0/+4 | |
|/ | ||||||
* | setup.py: allow LIBSYSTEMD_VERSION to be overridden | Zbigniew Jędrzejewski-Szmek | 2016-12-14 | 1 | -3/+8 | |
| | | | | | | This is useful when testing against old or unreleases versions of the library: make PYTHON=python3 INCLUDE_DIR=/home/zbyszek/src/systemd-master/src LIBSYSTEMD_VERSION=233 | |||||
* | Makefile: use $(INCLUDE_DIR) also for compilation | Zbigniew Jędrzejewski-Szmek | 2016-12-13 | 1 | -0/+1 | |
| | | | | | | This way we can compile against unreleased systemd: make PYTHON=python3 INCLUDE_DIR=/home/zbyszek/src/systemd/src (cd build/lib.linux-x86_64-3.5; systemd-socket-activate -E LD_LIBRARY_PATH=/home/zbyszek/src/systemd-master/.libs -l2000 -l127.0.0.1:2001 python3) | |||||
* | build-sys: add sign and upload targets | Zbigniew Jędrzejewski-Szmek | 2016-12-13 | 2 | -2/+7 | |
| | ||||||
* | Include all fields from record (#30) | Oleksii Shevchuk | 2016-10-27 | 1 | -1/+16 | |
| | | | | This approach allows to use LoggerAdapter+extra or .info(.., extra={}) to transparently add extra fields to journal. | |||||
* | Prepare v233v233 | Zbigniew Jędrzejewski-Szmek | 2016-10-17 | 2 | -1/+13 | |
| | ||||||
* | id128: add SD_MESSAGE_TRUNCATED_CORE from upcoming systemd-232 | Zbigniew Jędrzejewski-Szmek | 2016-10-17 | 3 | -0/+3 | |
| | ||||||
* | journal: allow stream() to be used without any arguments | Zbigniew Jędrzejewski-Szmek | 2016-10-17 | 1 | -3/+12 | |
| | | | | | | | | | It's fairly easy to provide a reasonable default for the first argument. Let's do that. Also, the documentation was misleading, suggesting that the function itself can be passed as file parameter to print(). Use a different name for the temporary variable to clarify that. | |||||
* | journal: bump default log level for stream() to INFO | Zbigniew Jędrzejewski-Szmek | 2016-10-17 | 1 | -1/+1 | |
| | | | | | By default debug messages are ignored, and INFO should be used for "normal" messages. | |||||
* | Updating docs for missing dependency (#28) | Robert James Hernandez | 2016-10-10 | 1 | -3/+3 | |
| | | | | | | I was trying to build python-systemd from source but ran into the same issue here: #17 I Figure the docs should be updated to reflect this dependency. | |||||
* | setup.py: make build fail if undeclared symbols are used | Zbigniew Jędrzejewski-Szmek | 2016-10-01 | 1 | -0/+5 | |
| | | | | | | This will detect cases where the autoconfig based on version is wrong. Debian bug #839224. | |||||
* | build-sys: import "pytest" instead of "py.test" | Zbigniew Jędrzejewski-Szmek | 2016-09-22 | 1 | -1/+1 | |
| | | | | | Fixes the following error in rawhide: /usr/bin/python3: loader for pytest cannot handle py.test | |||||
* | _reader: use proper ifdef guard for sd_j_open_files_fd | Zbigniew Jędrzejewski-Szmek | 2016-09-22 | 1 | -3/+7 | |
| | ||||||
* | tests: add workaround for pre-232 system returning EINVAL on some flags | Zbigniew Jędrzejewski-Szmek | 2016-09-22 | 1 | -5/+15 | |
| | ||||||
* | build-sys: add doc-sync target | Zbigniew Jędrzejewski-Szmek | 2016-09-22 | 1 | -1/+5 | |
| | ||||||
* | docs: fix sphinx format warning | Zbigniew Jędrzejewski-Szmek | 2016-09-22 | 1 | -3/+3 | |
| | | | | build/lib.linux-x86_64-3.5/systemd/journal.py:docstring of systemd.journal.stream:15: WARNING: Literal block expected; none found. | |||||
* | tests: skip fdstore tests if not implemented | Zbigniew Jędrzejewski-Szmek | 2016-09-22 | 1 | -3/+15 | |
| | | | | Should fix #12. | |||||
* | Prepare v232v232 | Zbigniew Jędrzejewski-Szmek | 2016-09-21 | 2 | -1/+21 | |
| | ||||||
* | setup.py: change name to systemd-python | Zbigniew Jędrzejewski-Szmek | 2016-09-21 | 3 | -1/+4 | |
| | | | | This name is unused on pypi. Let's grab it. | |||||
* | docs: autoregenerate id128.rst | Zbigniew Jędrzejewski-Szmek | 2016-09-21 | 2 | -2/+17 | |
| | ||||||
* | Store id128-constants.h in the repository | Zbigniew Jędrzejewski-Szmek | 2016-09-21 | 8 | -24/+108 | |
| | | | | | | | | | | | | | | Instead of generating the list of message ids anew during every build, the file is generated manually and committed into the repository. Also, the list of defines is stored in id128-defines.h, also kept in the repository. Both files should only grow. This should make build easier. But it also fixes a problem with systemd, which occasionally drops message definitions. We will keep them forever, so it should be safe to rely on the presence of message definitions which systemd does not use anymore. Fixes #23. | |||||
* | journal: convert seek_realtime argument to microseconds | Zbigniew Jędrzejewski-Szmek | 2016-09-21 | 2 | -7/+32 | |
| | | | | | | | | | | | | | This somewhat breaks backwards compatibility, but not for the previously documented arguments: floats are now interpreted differently, but ints and datetime.datetime objects are interpreted the same as before. But the documentation clearly stated that only ints and datetime.datetime objects were allowed. This makes seek_realtime match seek_monotonic and other functions which take time and follows the principle of least surprise. Fixes #21. | |||||
* | tests: use a context manager, skip new functions if missing | Zbigniew Jędrzejewski-Szmek | 2016-09-21 | 1 | -21/+16 | |
| | ||||||
* | reader: add SD_JOURNAL_OS_ROOT and rework flag passing | Zbigniew Jędrzejewski-Szmek | 2016-09-21 | 4 | -24/+51 | |
| | | | | | | | | | | | | | | | | | Let's pass any flags through to the journal functions without checking validity. Those functions do their own checking, so there's no need to second-guess. The semantics for _Reader(flags=0) are a bit changed: before, this would be transformed into sd_journal_open(SD_J_LOCAL_ONLY). Now, this results in sd_journal_open(0). Previous behaviour should be achieved by not specifying the flags at all. This change is necessary, because previously it was not possible to pass flags=0 to sd_journal_open(0), i.e. it was not possible to "merge" journals through the Python interface. Similarly, Reader(flags=0) now means to open all journals, and Reader(flags=None) is the same as Reader(flags=LOCAL_ONLY). | |||||
* | journal: add support for sd_journal_open_files_fd | Zbigniew Jędrzejewski-Szmek | 2016-09-21 | 1 | -15/+81 | |
| | ||||||
* | journal: make sd_journal_enumerate return text strings | Zbigniew Jędrzejewski-Szmek | 2016-09-21 | 1 | -1/+1 | |
| | | | | | Those are field names and they should always be ASCII, and converting them to str automatically makes the answer more useful. | |||||
* | journal: allow sd_journal_open_directory_fd to be used | Zbigniew Jędrzejewski-Szmek | 2016-09-21 | 3 | -53/+125 | |
| | ||||||
* | Reformat documentation to be more PEP257-compliant | Zbigniew Jędrzejewski-Szmek | 2016-09-20 | 2 | -125/+137 | |
| | | | | | | | | | | Wrapping the sources to ~80 columns means that the formatted output is annoying to read. Rewrap to ~74 columns in the output. Also remove some obsolete descritions of journal permissions and refer to journalctl(1) instead. Add some missing docstrings. | |||||
* | tests: check enumerate_fields, has_runtime_fiels, has_persistent_files | Zbigniew Jędrzejewski-Szmek | 2016-09-20 | 1 | -0/+47 | |
| | ||||||
* | journal: add wrappers for sd_has_*_files | Zbigniew Jędrzejewski-Szmek | 2016-09-20 | 1 | -31/+77 | |
| | ||||||
* | journal: add wrapper for sd_journal_enumerate | Zbigniew Jędrzejewski-Szmek | 2016-09-20 | 1 | -31/+79 | |
| | ||||||
* | journal: check errors properly in query_unique | Zbigniew Jędrzejewski-Szmek | 2016-09-20 | 1 | -5/+20 | |
| | ||||||
* | Makefile: correct path to generated docs | Sebastian | 2016-09-15 | 1 | -1/+1 | |
| | ||||||
* | Add Docs to README | Sebastian | 2016-09-15 | 1 | -0/+11 | |
| | ||||||
* | Fix typo (#26) | Michael Biebl | 2016-07-16 | 1 | -1/+1 | |
| | ||||||
* | setup.py: respect ${PKG_CONFIG} if set (#18) | Benedikt Morbach | 2016-05-28 | 1 | -2/+3 | |
| | ||||||
* | readme: Use "raised" instead of "thrown" | Nir Soffer | 2016-05-28 | 1 | -1/+1 | |
| | | | | Should be more familiar to the users of this library. | |||||
* | readme: Remove duplicate 'is thrown' | Nir Soffer | 2016-05-28 | 1 | -3/+3 | |
| | ||||||
* | Use log.warning instead of deprecated log.warn in example code | Ville Skyttä | 2016-05-21 | 1 | -2/+2 | |
| | ||||||
* | Spelling fixes | Ville Skyttä | 2016-05-21 | 2 | -3/+3 | |
| | ||||||
* | test_daemon: Define a default value for SO_PASSCRED | Mike Gilbert | 2016-01-20 | 1 | -1/+3 | |
| | | | | The socket module seems to be missing this in python2.7. | |||||
* | Fixes Reader.seek_monotonic(datetime.timedelta) | Michael Herold | 2015-12-10 | 1 | -1/+1 | |
| | ||||||
* | reader: avoid gcc warning | Zbigniew Jędrzejewski-Szmek | 2015-12-02 | 1 | -1/+1 | |
| | | | | | | | gcc warns that r might be uninitialized, because it doesn't know that r will be initialized in the 'if' statement. Initialize the variable to avoid the warning. | |||||
* | tests: mirror is-systemd-running test from systemdv231 | Zbigniew Jędrzejewski-Szmek | 2015-10-28 | 1 | -1/+1 | |
| | ||||||
* | build-sys: make sure we use modules from the build dir | Zbigniew Jędrzejewski-Szmek | 2015-10-28 | 1 | -1/+1 | |
| | | | | | When running form the top source directory, sometimes modules from systemd/ and not build/*/systemd/ were loaded. | |||||
* | build-sys: name html build directory after format | Zbigniew Jędrzejewski-Szmek | 2015-10-28 | 1 | -1/+1 | |
| | | | | This way different outputs don't land in the same place. | |||||
* | Bump version to 231 | Zbigniew Jędrzejewski-Szmek | 2015-10-27 | 1 | -1/+1 | |
| |