forked from wavexx/acpilight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·78 lines (68 loc) · 1.96 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
68
69
70
71
72
73
74
75
76
77
78
#! /usr/bin/env python
import os
from setuptools import find_packages, setup
DOCS_REQUIRE = ['Sphinx>=1.6.6']
LINTERS_REQUIRE = [
'flake8>=3.5.0',
'pylint>=1.8.1'
]
TESTS_REQUIRE = [
'hypothesis>=3.49.1',
'pytest-runner>=3.0',
'pytest>=3.3.2',
'coverage>=4.4.2'
]
def get_long_description(file_name):
"""Gets the long description from the specified file's name.
:param file_name: The file's name
:type file_name: str
:return: The content of the file
:rtype: str
"""
return open(os.path.join(os.path.dirname(__file__), file_name)).read()
if __name__ == '__main__':
setup(
name='acpilight',
version='1.0.1',
description='A backward compatible ``xbacklight`` replacement.',
author='Yuri D\'Elia',
author_email='[email protected]',
url='https://github.com/wavexx/acpilight',
license='GPL 3.0 License',
zip_safe=False,
platforms='linux',
python_requires='>=3.6',
packages=find_packages(
exclude=[
'tests'
]
),
entry_points={
'console_scripts': [
'xbacklight = acpilight.acpilight:main',
'acpilight = acpilight.acpilight:main'
]
},
data_files=[],
include_package_data=True,
long_description=get_long_description('README.rst'),
test_suite='tests',
scripts=[],
install_requires=[
],
extras_require={
'dev': DOCS_REQUIRE + LINTERS_REQUIRE + TESTS_REQUIRE,
'docs': DOCS_REQUIRE,
'tests': TESTS_REQUIRE,
'linters': LINTERS_REQUIRE
},
classifiers=[
'Development Status :: 3 - Pre-Alpha',
'Operating System :: Linux',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6'
],
keywords=[
'linux',
],
)