-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (56 loc) · 1.57 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import codecs
from setuptools import setup, find_packages
VERSION = ''
with open('xd/__version__.py', 'r') as f:
VERSION = re.search(
r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
f.read(), re.M
).group(1)
if not VERSION:
raise RuntimeError('Cannot find version information')
with codecs.open('README.rst', encoding='utf-8') as f:
README = f.read()
# Integrate with Pipfile?
REQUIRES = [
'colorama',
'click',
'requests',
'six>=1.11.0',
'pyyaml',
'pytoml',
'configparser',
]
setup(
name='xd',
version=VERSION,
description='a list of useful commands which makes life easier',
long_description=README,
url='https://github.com/damnever/xd',
author='damnever',
author_email='dxc.wolf@gmail.com',
license='The BSD 3-Clause License',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Utilities',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
keywords='command line tools',
packages=find_packages(),
install_requires=REQUIRES,
include_package_data=True,
entry_points={
'console_scripts': [
'xd=xd.__main__:xd',
]
},
)