-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup.py
68 lines (57 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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Copyright (c) 2015 Digi International Inc. All Rights Reserved.
from setuptools import setup, find_packages
import os
install_requires = [
'txdbus>=1.0.1',
'click',
'six',
]
def get_long_description():
long_description = open('README.md').read()
try:
import subprocess
import pandoc
process = subprocess.Popen(
['which pandoc'],
shell=True,
stdout=subprocess.PIPE,
universal_newlines=True)
pandoc_path = process.communicate()[0]
pandoc_path = pandoc_path.strip('\n')
pandoc.core.PANDOC_PATH = pandoc_path
doc = pandoc.Document()
doc.markdown = long_description
long_description = doc.rst
open("README.rst", "w").write(doc.rst)
except:
if os.path.exists("README.rst"):
long_description = open("README.rst").read()
else:
print("Could not find pandoc or convert properly")
print(" make sure you have pandoc (system) and pyandoc (python module) installed")
return long_description
setup(
name='wpa_supplicant',
version='0.2',
description='WPA Supplicant wrapper for Python',
long_description=get_long_description(),
author="Stephen Stack",
author_email="[email protected]",
install_requires=install_requires,
packages=find_packages(),
entry_points={
'console_scripts': ['wpa=wpa_supplicant.cli:run']
},
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Programming Language :: Python :: 2.7",
"Topic :: Software Development :: Libraries",
"Operating System :: POSIX :: Linux",
],
)