forked from tylerdave/PyTN2016-Click-Tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·66 lines (57 loc) · 1.73 KB
/
setup.py
File metadata and controls
executable file
·66 lines (57 loc) · 1.73 KB
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
import sys
from codecs import open
from os import path
from setuptools import setup
import versioneer
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as readme_file:
readme = readme_file.read()
test_requirements = [
'mock',
'pytest',
'tox',
]
requirements = [
'click>=6.0',
'colorama',
] + test_requirements
python2_requirements = [
'importlib',
]
if sys.version_info[0] == 2:
requirements += python2_requirements
setup(
name='click_tutorial',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="Tutorial for writing command line applications using click.",
long_description=readme,
author="Dave Forgac",
author_email='tylerdave@tylerdave.com',
url='https://github.com/tylerdave/click_tutorial',
packages=['click_tutorial'],
package_data={'click_tutorial': ['data/tutorial_lessons.json']},
entry_points={
'console_scripts':[
'pytn=click_tutorial.cli:cli',
'hello=click_tutorial.hello:cli',
'tutorial=click_tutorial.tutorial_runner:cli',
],
},
install_requires=requirements,
license="MIT",
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
test_suite='tests',
tests_require=test_requirements
)