-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
59 lines (51 loc) · 1.49 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
import os.path as osp
import sys
from setuptools import setup, find_packages
PY2 = sys.version_info[0] == 2
cdir = osp.abspath(osp.dirname(__file__))
README = open(osp.join(cdir, 'readme.rst')).read()
CHANGELOG = open(osp.join(cdir, 'changelog.rst')).read()
version_fpath = osp.join(cdir, 'pyp', 'version.py')
version_globals = {}
with open(version_fpath) as fo:
exec(fo.read(), version_globals)
require = [
'click',
'plumbum',
'six',
'twine',
]
if PY2:
require += ['pathlib']
setup(
name='pyp',
version=version_globals['VERSION'],
description='<short description>',
long_description='\n\n'.join((README, CHANGELOG)),
author='Randy Syring',
author_email='[email protected]',
url='https://github.com/level12/pyp',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
],
packages=find_packages(exclude=[]),
include_package_data=True,
zip_safe=False,
install_requires=require,
# List additional groups of dependencies here (e.g. development
# dependencies). You can install these using the following syntax,
# for example:
# $ pip install -e .[dev,test]
extras_require={
# 'dev': ['restview'],
'test': ['pytest'],
},
entry_points='''
[console_scripts]
pyp = pyp.cli:cli_entry
''',
)