forked from leonnnn/pyxtrlock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
67 lines (57 loc) · 2.03 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
from distutils.core import setup
from distutils.command.install import install
import os
import stat
import subprocess
class my_install(install):
def run(self):
stat_make_lock = os.stat("make_default_lock.py")
try:
stat_lock = os.stat("lock.pickle")
except OSError:
stat_lock = None
if stat_lock is None \
or stat_lock[stat.ST_MTIME] < stat_make_lock[stat.ST_MTIME]:
subprocess.call(["python3", "./make_default_lock.py"])
super().run()
authors = (
'Leon Weber <[email protected]>, '
'Sebastian Riese <[email protected]>'
)
desc = (
'The X transparent screen lock rewritten in Python, using XCB and PAM.'
)
long_desc = """
pyxtrlock -- The leightweight screen locker rewritten in Python
---------------------------------------------------------------
pyxtrlock is a very limited transparent X screen locker inspired by Ian
Jackson’s great xtrlock program. pyxtrlock uses modern libraries, most
importantly the obsolete direct passwd/shadow authentication has been replaced
by today’s PAM authentication mechanism, hence it also works on Fedora. Also,
it’s mostly written using XCB instead of Xlib.
"""
classifiers = [
'Development Status :: 3',
'Environment :: X11 Applications',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3',
'Topic :: Desktop Environment :: Screen Savers'
]
setup(name='pyxtrlock',
version='0.1',
author=authors,
author_email='[email protected]',
requires=['simplepam'],
package_dir={'pyxtrlock': 'lib'},
data_files=[('share/pyxtrlock/', ['lock.pickle'])],
packages=['pyxtrlock'],
scripts=['pyxtrlock'],
cmdclass={'install': my_install},
license='GPLv3+',
url='https://zombofant.net/hacking/pyxtrlock',
description=desc,
long_description=long_desc,
classifiers=classifiers
)