Files @ 552ef45f47df
Branch filter:

Location: NPO-Accounting/conservancy_beancount/setup.py

Brett Smith
plugin: Be more selective about when ! skips validation.

It makes sense to let the bookkeeper skip validations in situations
where the metadata requires information that might not be available
when entered. It does not make sense to skip validations that *must*
be available and affect the structure of the books, like project and
entity.

This commit ensures every plugin hook has a test for flagged
transactions, even for hooks that currently have the desired
behavior where no code changes were required for the test to
pass.
#!/usr/bin/env python3

from setuptools import setup

setup(
    name='conservancy_beancount',
    description="Plugin, library, and reports for reading Conservancy's books",
    version='1.0.5',
    author='Software Freedom Conservancy',
    author_email='info@sfconservancy.org',
    license='GNU AGPLv3+',

    install_requires=[
        'beancount>=2.2',
        'PyYAML>=3.0',
        'regex',
        'rt>=2.0',
    ],
    setup_requires=[
        'pytest-mypy',
        'pytest-runner',
    ],
    tests_require=[
        'mypy>=0.770',
        'pytest',
    ],

    packages=[
        'conservancy_beancount',
        'conservancy_beancount.plugin',
        'conservancy_beancount.reports',
    ],
    entry_points={
        'console_scripts': [
            'accrual-report = conservancy_beancount.reports.accrual:main',
        ],
    },
)