import2ledger/setup.py

40 lines
918 B
Python
Raw Normal View History

#!/usr/bin/env python3
import itertools
import sys
2017-10-22 18:31:38 +00:00
from setuptools import setup, find_packages
REQUIREMENTS = {
'install_requires': ['babel'],
'setup_requires': ['pytest-runner'],
'extras_require': {
'nbpy2017': ['beautifulsoup4', 'html5lib'],
},
}
if sys.version_info < (3, 4):
REQUIREMENTS['install_requires'].extend(['enum34'])
REQUIREMENTS['tests_require'] = [
'pytest',
'PyYAML',
*itertools.chain(*REQUIREMENTS['extras_require'].values()),
]
setup(
name='import2ledger',
description="Import different sources of financial data to Ledger",
2017-11-09 21:19:29 +00:00
version='0.2',
author='Brett Smith',
author_email='brettcsmith@brettcsmith.org',
license='GNU AGPLv3+',
2017-10-22 18:31:38 +00:00
packages=find_packages(include=['import2ledger', 'import2ledger.*']),
entry_points={
'console_scripts': ['import2ledger = import2ledger.__main__:main'],
},
**REQUIREMENTS,
)