Skip to content

Commit 7d34abe

Browse files
committed
Update README
1 parent af80340 commit 7d34abe

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ sdist
1717
develop-eggs
1818
.installed.cfg
1919
MANIFEST
20+
.venv
2021

2122
# Installer logs
2223
pip-log.txt

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Show kernel ring buffer (`journalctl -k`):
133133
print(entry['MESSAGE'])
134134

135135
Read entries in reverse (`journalctl _EXE=/usr/bin/vim -r`):
136-
136+
137137
from systemd import journal
138138
class ReverseReader(journal.Reader):
139139
def __next__(self):
@@ -199,8 +199,23 @@ Quick way to view output with all fields as it comes in:
199199
Test Builds (for Development)
200200
=============================
201201

202-
python setup.py build_ext -i
202+
Create a virtual environment:
203+
204+
python3 -m venv .venv
205+
source .venv/bin/activate
206+
python -m pip install build
207+
python -m pip install .
203208
python
209+
>>> import systemd.journal
210+
>>> systemd.journal.send("Test")
211+
212+
You can also build with [`uv`](https://docs.astral.sh/uv/).
213+
214+
uv build
215+
uv sync --no-editable
216+
# `--no-editable` is required, because `uv` seems not to work well with meson-python and cause
217+
# "python not found" with editable mode.
218+
uv run --no-editable python
204219
>>> from systemd import journal
205220
>>> journal.send("Test")
206221

0 commit comments

Comments
 (0)