forked from rienafairefr/pynYNAB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
77 lines (62 loc) · 2.12 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
66
67
68
69
70
71
72
73
74
75
76
77
import os.path
from setuptools import setup, find_packages
# Get the long description from the relevant file
__here__ = os.path.dirname(os.path.realpath(__file__))
readme_filename = os.path.join(os.path.dirname(__file__), 'README.rst')
with open(readme_filename, 'r') as f:
readme = f.read()
try:
import pypandoc
readme = pypandoc.convert(readme, to='rst', format='md')
except:
print("Conversion of long_description from markdown to reStructuredText failed, skipping...")
pass
setup(
name='pynYNAB',
version=os.environ.get('TAG_NAME', os.environ.get('TRAVIS_TAG', 'dev')),
# Note: change 'master' to the tag name when release a new verion
download_url='https://github.com/rienafairefr/nYNABapi/tarball/master',
description=('Library for working with the nYNAB private API'
'Budget/Transactions Read/Write/Migration tools'),
long_description=readme,
url='https://github.com/rienafairefr/nYNABapi',
author='rienafairefr',
author_email='rienafairefr@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Financial and Insurance Industry',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
'Topic :: Office/Business',
'Topic :: Office/Business :: Financial',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
],
keywords=['nynab', 'ynab'],
packages=find_packages(),
install_requires=[
'configargparse',
'pynab',
'requests',
'jsontableschema==0.10.0',
'unicodecsv',
'appdirs',
'six>=1.5',
'aenum',
'sqlalchemy'
],
entry_points={
'console_scripts': [
'pynynab = pynYNAB.scripts.__main__:main',
],
},
package_data={
'pynYNAB': ['tests/*'],
},
)