This repository has been archived by the owner on Feb 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
66 lines (65 loc) · 2.3 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
#!/usr/bin/env python
from setuptools import setup, find_packages
import pkg_resources
import sys
from os import name as dist_name, rename
from os.path import dirname, join, realpath
import os
try:
if int(pkg_resources.get_distribution("pip").version.split('.')[0]) < 6:
print('pip older than 6.0 not supported, please upgrade pip with:\n\n'
' pip install -U pip')
sys.exit(-1)
except pkg_resources.DistributionNotFound:
pass
version = sys.version_info[:2]
if version < (3, 5):
print('Flora-Cli requires Python version 3.5 or later' +
' ({}.{} detected).'.format(*version))
sys.exit(-1)
VERSION = '3.10a'
if os.name == 'nt':
setup(name='Flora-Cli',
version=VERSION,
description="A basic commandline utility",
long_description="A basic commandline utility developed by Fuzen-py",
author='Fuzen.py',
author_email='',
url='https://github.com/Fuzen-py/Flora-Cli',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests', 'tests.*', 'release']),
include_package_data=True,
zip_safe=False,
install_requires=['psutil', 'speedtest-cli', 'logbook'],
extras_require={},
scripts=['flora-cli.py'])
else:
rename(join(dirname(realpath(__file__)), 'flora-cli.py'), join(dirname(realpath(__file__)), 'flora-cli'))
setup(name='Flora-Cli',
version=VERSION,
description="A basic commandline utility",
long_description="A basic commandline utility developed by Fuzen-py",
author='Fuzen.py',
author_email='',
url='https://github.com/Fuzen-py/Flora-Cli',
license='MIT',
packages=find_packages(
exclude=[
'ez_setup',
'examples',
'tests',
'tests.*',
'release'
]
),
include_package_data=True,
zip_safe=False,
install_requires=[
'psutil',
'speedtest-cli',
'logbook'],
extras_require={
},
scripts =['flora-cli']
)
rename(join(dirname(realpath(__file__)), 'flora-cli'), join(dirname(realpath(__file__)), 'flora-cli.py'))