Skip to content

Commit 410f054

Browse files
committed
Update LICENSE file and classifiers
The license was originally MIT, but when this module became part of systemd, it was changed to LGPLv2+. All files had correct headers, so only the LICENSE file needs updating. Take the opportunity to add classifiers to setup.py.
1 parent 31baccc commit 410f054

File tree

15 files changed

+535
-41
lines changed

15 files changed

+535
-41
lines changed

LICENSE.txt

Lines changed: 502 additions & 20 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,40 @@
11
python-systemd
22
===============
33

4-
Python module for native access to the systemd facilities in recent versions
5-
of Fedora and other distributions. In particular, this capability includes
6-
passing key/value pairs as fields that the journal can display and use for
7-
filtering. There are also utilities to forward journal entries to aggregators
8-
like Graylog2 via GELF.
4+
Python module for native access to the systemd facilities. Functionality
5+
is seperated into a number of modules:
6+
- systemd.journal supports sending of structured messages to the journal
7+
and reading journal files,
8+
- systemd.daemon wraps parts of libsystemd useful for writing daemons
9+
and socket activation,
10+
- systemd.id128 provides functions for querying machine and boot identifiers
11+
and a lists of message identifiers provided by systemd,
12+
- systemd.login wraps parts of libsystemd used to query logged in users
13+
and available seats and machines.
914

1015
Installation
1116
============
1217

18+
This module should be packaged for almost all Linux distributions. Use
19+
20+
On Fedora/RHEL/CentOS
21+
22+
dnf install python-systemd python3-systemd
23+
24+
On Debian/Ubuntu/Mint
25+
26+
apt-get install python-systemd python3-systemd
27+
28+
To build from source
29+
1330
On Fedora 17+ with Python 2:
1431

15-
sudo yum install git python-pip gcc python-devel systemd-devel
32+
sudo dnf install git python-pip gcc python-devel systemd-devel
1633
pip-python install git+http://github.com/systemd/python-systemd.git#egg=systemd
1734

1835
On Fedora 17+ with Python 3:
1936

20-
sudo yum install git python3-pip gcc python3-devel systemd-devel
37+
sudo dnf install git python3-pip gcc python3-devel systemd-devel
2138
pip-python3 install git+http://github.com/systemd/python-systemd.git#egg=systemd
2239

2340
Usage
@@ -64,8 +81,7 @@ Quick way to view output with all fields as it comes in:
6481
Test Builds (for Development)
6582
=============================
6683

67-
python setup.py build
68-
cd builds/lib.*
84+
python setup.py build_ext -i
6985
python
7086
>>> from systemd import journal
7187
>>> journal.send("Test")

setup.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@
3535
description = 'Native interface to the facilities of systemd',
3636
author_email = 'david@davidstrauss.net',
3737
url = 'https://github.com/systemd/python-systemd',
38+
license = 'LGPLv2+',
39+
classifiers = [
40+
'Programming Language :: Python :: 2',
41+
'Programming Language :: Python :: 3',
42+
'Topic :: Software Development :: Libraries :: Python Modules',
43+
'Topic :: System :: Logging',
44+
'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
45+
],
3846
py_modules = ['systemd.journal', 'systemd.daemon'],
3947
ext_modules = [_journal,
4048
_reader,

systemd/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- Mode: python; indent-tabs-mode: nil -*- */
22
#
3-
# This file is part of systemd.
43
#
54
# Copyright 2012 David Strauss
65
#

systemd/_daemon.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
22

33
/***
4-
This file is part of systemd.
54
65
Copyright 2013 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
76

systemd/_journal.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
22

33
/***
4-
This file is part of systemd.
54
65
Copyright 2012 David Strauss <david@davidstrauss.net>
76

systemd/_reader.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
22

33
/***
4-
This file is part of systemd.
54
65
Copyright 2013 Steven Hiscocks, Zbigniew Jędrzejewski-Szmek
76

systemd/id128.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
22

33
/***
4-
This file is part of systemd.
54
65
Copyright 2013 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
76

systemd/journal.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- Mode: python; coding:utf-8; indent-tabs-mode: nil -*- */
22
#
3-
# This file is part of systemd.
43
#
54
# Copyright 2012 David Strauss <david@davidstrauss.net>
65
# Copyright 2012 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>

systemd/login.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
22

33
/***
4-
This file is part of systemd.
54
65
Copyright 2013 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
76

0 commit comments

Comments
 (0)