import2ledger/setup.py
Brett Smith 8516134687 hooks.ledger_entry: Improve date handling.
Check that we have the date field used in the payee line, and not just
'date'.
Allow other date fields to be None since they may not be used by the
template.
2019-11-11 10:18:21 -05:00

44 lines
1 KiB
Python
Executable file

#!/usr/bin/env python3
import sys
from setuptools import setup, find_packages
REQUIREMENTS = {
'install_requires': [
'babel',
'enum34;python_version<"3.4"',
],
'setup_requires': ['pytest-runner'],
'extras_require': {
'brightfunds': ['xlrd'],
'nbpy2017': ['beautifulsoup4', 'html5lib'],
},
}
all_extras_require = [
req for reqlist in REQUIREMENTS['extras_require'].values() for req in reqlist
]
REQUIREMENTS['extras_require']['all_importers'] = all_extras_require
REQUIREMENTS['tests_require'] = [
'pytest',
'PyYAML',
*all_extras_require,
]
setup(
name='import2ledger',
description="Import different sources of financial data to Ledger",
version='0.10.1',
author='Brett Smith',
author_email='brettcsmith@brettcsmith.org',
license='GNU AGPLv3+',
packages=find_packages(include=['import2ledger', 'import2ledger.*']),
entry_points={
'console_scripts': ['import2ledger = import2ledger.__main__:main'],
},
**REQUIREMENTS,
)