Files @ 7156529ceb23
Branch filter:

Location: NPO-Accounting/import2ledger/setup.py

Brett Smith
nbpy2017: Report item rate names and final unit prices.

This keeps more of the RBI calculation in the templates, where it belongs.
Template logic has become more capable since this importer was first
written, which makes this change practical.
#!/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.0',
    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,
)