-
Notifications
You must be signed in to change notification settings - Fork 26
/
setup.py
executable file
·42 lines (38 loc) · 1.41 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
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import setuptools
def main():
setuptools.setup(
name = 'python_spin',
version = '2020.02.06.0328',
description = 'a small utility to assist in setting usage modes of laptop-tablet devices',
long_description = long_description(),
url = 'https://github.com/wdbm/spin',
author = 'Will Breaden Madden',
author_email = '[email protected]',
license = 'GPLv3',
packages = setuptools.find_packages(),
install_requires = [
'docopt',
'technicolor'
],
entry_points = {
'console_scripts': ('spin = python_spin.__init__:main')
},
include_package_data = True,
zip_safe = False,
python_requires = '>=3.6'
)
def long_description(filename = 'README.md'):
if os.path.isfile(os.path.expandvars(filename)):
try:
import pypandoc
long_description = pypandoc.convert_file(filename, 'rst')
except ImportError:
long_description = open(filename).read()
else:
long_description = ''
return long_description
if __name__ == '__main__':
main()