-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
61 lines (53 loc) · 1.25 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
import os
from setuptools import setup, find_packages
# package meta info
NAME = "CodeCLI"
VERSION = "1.1.0"
DESCRIPTION = "A command line tool for github flow collaboration"
AUTHOR = "Qiangning Hong"
AUTHOR_EMAIL = "hongqn@gmail.com"
LICENSE = "BSD"
URL = ""
KEYWORDS = ""
CLASSIFIERS = []
# package contents
MODULES = []
PACKAGES = find_packages(exclude=['tests.*', 'tests', 'examples.*', 'examples'])
ENTRY_POINTS = """
[console_scripts]
code = codecli:main
"""
# dependencies
INSTALL_REQUIRES = [
"six",
]
SETUP_REQUIRES = []
TESTS_REQUIRE = [
'nose',
]
here = os.path.abspath(os.path.dirname(__file__))
def read_long_description(filename):
path = os.path.join(here, filename)
if os.path.exists(path):
return open(path).read()
return ""
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=read_long_description('README.rst'),
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license=LICENSE,
url=URL,
keywords=KEYWORDS,
classifiers=CLASSIFIERS,
py_modules=MODULES,
packages=PACKAGES,
install_package_data=True,
zip_safe=False,
entry_points=ENTRY_POINTS,
install_requires=INSTALL_REQUIRES,
setup_requires=SETUP_REQUIRES,
tests_require=TESTS_REQUIRE,
)