-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·52 lines (47 loc) · 1.17 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
#!/usr/bin/env python
import subprocess
import shlex
from setuptools import setup
version = '0.4.1.1'
try:
hash = (
subprocess
.check_output(shlex.split('git rev-parse --short HEAD'))
.rstrip()
.decode('ASCII')
)
commit = (
subprocess
.check_output(shlex.split('git rev-list --count HEAD'))
.rstrip()
.decode('ASCII')
)
except:
pass
else:
version = '{}.dev{}+{}'.format(version, commit, hash)
setup(
name='x-highlight-region',
version=version,
description="Dims everything but a selected region of the screen.",
author="Sebastian Reuße",
author_email='[email protected]',
url='https://github.com/eigengrau/x-highlight-region',
packages=[
'xhighlight',
'xhighlight.server',
'xhighlight.client'
],
package_dir={'': 'src'},
install_requires=[
'pygobject >= 3.18, < 3.47',
'python3-keybinder >= 1.1, < 1.2'
],
license="GPL3",
entry_points={
'console_scripts': [
'xhighlight-server = xhighlight.server.cli:console_entry',
'xhighlight = xhighlight.client.cli:console_entry'
],
}
)