This repository has been archived by the owner on Jul 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathsetup.py
executable file
·60 lines (50 loc) · 1.76 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import sys
from setuptools import setup
from pyspeedtest import __program__, __version__
if sys.argv[-1] == 'pub':
os.system('python setup.py sdist upload')
sys.exit()
if sys.argv[-1] == 'pubtest':
os.system('python setup.py sdist upload -r https://testpypi.python.org/pypi')
sys.exit()
README = open('README.rst').read()
# allow setup.py to be run from any path
os.chdir(os.path.dirname(os.path.abspath(__file__)))
setup(
name=__program__,
version=__version__,
license='MIT',
description='Speedtest.net Python script',
long_description=README,
url='https://github.com/fopina/pyspeedtest',
download_url='https://github.com/fopina/pyspeedtest/tarball/v%s' %
__version__,
author='Filipe Pina',
py_modules=['pyspeedtest'],
entry_points={
'console_scripts': ['pyspeedtest=pyspeedtest:main']
},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5'
],
keywords=['speedtest.net', 'speedtest', 'speed', 'test', 'bandwidth']
)