2017-10-22 17:38:53 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
2017-12-30 23:09:59 +00:00
|
|
|
import sys
|
2017-12-26 18:35:06 +00:00
|
|
|
|
2017-10-22 18:31:38 +00:00
|
|
|
from setuptools import setup, find_packages
|
2017-10-22 17:38:53 +00:00
|
|
|
|
2017-12-26 18:35:06 +00:00
|
|
|
REQUIREMENTS = {
|
2018-01-23 14:01:59 +00:00
|
|
|
'install_requires': [
|
|
|
|
'babel',
|
|
|
|
'enum34;python_version<"3.4"',
|
|
|
|
],
|
2017-12-26 18:35:06 +00:00
|
|
|
'setup_requires': ['pytest-runner'],
|
|
|
|
'extras_require': {
|
2018-01-23 13:40:41 +00:00
|
|
|
'brightfunds': ['xlrd'],
|
2017-12-26 18:35:06 +00:00
|
|
|
'nbpy2017': ['beautifulsoup4', 'html5lib'],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2018-01-23 14:02:47 +00:00
|
|
|
all_extras_require = [
|
|
|
|
req for reqlist in REQUIREMENTS['extras_require'].values() for req in reqlist
|
|
|
|
]
|
2017-12-30 23:09:59 +00:00
|
|
|
|
2018-01-23 14:02:47 +00:00
|
|
|
REQUIREMENTS['extras_require']['all_importers'] = all_extras_require
|
2017-12-26 18:35:06 +00:00
|
|
|
REQUIREMENTS['tests_require'] = [
|
|
|
|
'pytest',
|
|
|
|
'PyYAML',
|
2018-01-23 14:02:47 +00:00
|
|
|
*all_extras_require,
|
2017-12-26 18:35:06 +00:00
|
|
|
]
|
|
|
|
|
2017-10-22 17:38:53 +00:00
|
|
|
setup(
|
|
|
|
name='import2ledger',
|
|
|
|
description="Import different sources of financial data to Ledger",
|
2019-11-11 15:18:21 +00:00
|
|
|
version='0.10.1',
|
2017-10-22 17:38:53 +00:00
|
|
|
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.*']),
|
2017-10-22 18:31:53 +00:00
|
|
|
entry_points={
|
|
|
|
'console_scripts': ['import2ledger = import2ledger.__main__:main'],
|
|
|
|
},
|
2017-12-26 18:35:06 +00:00
|
|
|
|
|
|
|
**REQUIREMENTS,
|
2017-10-22 17:38:53 +00:00
|
|
|
)
|