forked from partizand/gnucashreport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (54 loc) · 1.98 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
#!/usr/bin/python3
"""Setup
pandas need install before (numpy issue install_requires)
pip install pandas
"""
import distutils.cmd
import os
import re
import io
from setuptools import setup, find_packages
# find version in init file
def find_version(filename):
with open(filename, 'r') as f:
version_file = f.read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
version = find_version("src/gnucashreport/__init__.py")
with open('readme.rst', encoding='utf-8') as f:
long_description = f.read()
setup(name='gnucashreport',
version=version,
author="Partizand",
author_email="",
url="https://github.com/partizand/gnucashreport",
description="Reports from GnuCash to xlsx files",
long_description=long_description,
license="GPLv3",
keywords=["GnuCash", "finance", "reports"],
# cmdclass={'copyscript': CopyScript, 'genfiles': GenFiles},
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3',
# 'Natural Language :: Russian',
'Topic :: Office/Business :: Financial :: Accounting',
'Topic :: Utilities',
'Environment :: Console',
'Operating System :: OS Independent',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)'],
# packages=find_packages('src'),
packages=['gnucashreport'],
package_dir={'': 'src'},
package_data={'gnucashreport': ['*.mo']},
test_suite='test',
install_requires=['numpy', 'pandas>=0.23.0', 'xlsxwriter>=1.0.5', 'python-dateutil>=2.7.3', 'SQLAlchemy'],
entry_points={
'console_scripts':
['gcreport = gnucashreport.gcreportcli:main'],
},
include_package_data=True,
zip_safe=False
)