-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·44 lines (39 loc) · 973 Bytes
/
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
#!/usr/bin/env python
import subprocess
import shlex
from setuptools import setup
version = '0.2.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='flash-screen',
version=version,
description="screen-flash makes the screen flash",
author="Sebastian Reuße",
author_email='seb@wirrsal.net',
url='https://github.com/eigengrau/flash-screen',
packages=['flash_screen'],
package_dir={'': 'src'},
install_requires=['pygobject >= 3.18, < 3.49'],
license="GPL3",
entry_points={
'console_scripts': [
'flash-screen = flash_screen.cli:console_entry'
],
}
)