forked from awkman/pywifi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·56 lines (50 loc) · 1.63 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
#!/usr/bin/env python
import platform
import sys
import os
from setuptools import setup, find_packages
# 'setup.py publish' shortcut.
if sys.argv[-1].startswith('publish'):
os.system('rm -rf build dist pywifi.egg-info')
os.system('python setup.py sdist bdist_wheel')
if 'test' in sys.argv[-1]:
os.system('twine upload --repository-url '\
'https://test.pypi.org/legacy/ dist/*')
else:
os.system('twine upload dist/*')
sys.exit()
with open('README.md', 'r') as f:
readme = f.read()
if platform.system().lower() == 'windows':
requires = ['comtypes']
else:
requires = []
test_requires = [
'pytest>=3.3.0'
]
setup(
name='pywifi',
version='1.1.12',
author='Jiang Sheng-Jhih',
author_email='[email protected]',
description="A cross-platform module for manipulating WiFi devices.",
long_description=readme,
long_description_content_type="text/markdown",
packages=find_packages(),
install_requires=requires,
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
url='https://github.com/awkman/pywifi',
license='MIT',
download_url='https://github.com/awkman/pywifi/archive/master.zip',
classifiers=[
'Intended Audience :: Developers',
'Topic :: Utilities',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
keywords=['wifi', 'wireless', 'Linux', 'Windows'],
)