-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsetup.py
60 lines (56 loc) · 1.93 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
# I really prefer Markdown to reStructuredText. PyPi does not. This allows me
# to have things how I'd like, but not throw complaints when people are trying
# to install the package and they don't have pypandoc or the README in the
# right place.
try:
import pypandoc
long_description = pypandoc.convert_file('README.md', 'rst')
except (IOError, ImportError):
long_description = open('README.md').read()
about = {}
with open('src/clikraken/__about__.py') as f:
exec(f.read(), about)
# now we have a about['__version__'] variable
setup(
name=about['__title__'],
version=about['__version__'],
packages=find_packages('src'),
package_dir={'': 'src'},
author=about['__author__'],
author_email=about['__email__'],
license=about['__license__'],
description=about['__summary__'],
long_description=long_description,
include_package_data=True,
url=about['__url__'],
install_requires=[
'krakenex>=2.2.1,<3.0',
'arrow<0.14',
'tabulate',
'colorlog',
],
classifiers=[
"Programming Language :: Python",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Office/Business :: Financial",
"Topic :: Office/Business :: Financial :: Investment",
],
entry_points={
'console_scripts': [
'clikraken=clikraken.clikraken:main',
],
},
)