forked from wolfg1969/oh-my-stars
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
80 lines (69 loc) · 2.15 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
69
70
71
72
73
74
75
76
77
78
79
80
from setuptools import setup, find_packages
import codecs
import sys
import ohmystars
install_requires = [
'colorama>=0.3.9',
'future>=0.16.0',
'github3.py>=1.0.2',
'tinydb>=4.4.0',
'ujson>=1.35',
]
# Conditional dependencies:
# sdist
if 'bdist_wheel' not in sys.argv:
try:
import argparse
except ImportError:
install_requires.append('argparse>=1.2.1')
if 'win32' in str(sys.platform).lower():
# Terminal colors for Windows
install_requires.append('pyreadline')
# bdist_wheel
extras_require = {
# http://wheel.readthedocs.org/en/latest/#defining-conditional-dependencies
':python_version == "3.0"'
' or python_version == "3.1" ': ['argparse>=1.2.1'],
':sys_platform == "win32"': ['pyreadline'],
}
def long_description():
with codecs.open('README.md', encoding='utf8') as f:
return f.read()
setup(
name='oh-my-stars',
version=ohmystars.__version__,
description="a CLI tool to search your GitHub stars.",
long_description=long_description(),
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Operating System :: OS Independent",
'Environment :: Console',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Terminals',
'Topic :: Utilities',
],
platforms='any',
keywords='github command tools',
author=ohmystars.__author__,
author_email='wolfg1969@gmail.com',
url='https://github.com/wolfg1969/oh-my-stars',
license=ohmystars.__license__,
zip_safe=False,
entry_points={
'console_scripts': [
'mystars=ohmystars.__main__:main',
],
},
packages=find_packages(),
extras_require=extras_require,
install_requires=install_requires,
)