Files
@ fdd9f2847b78
Branch filter:
Location: NPO-Accounting/conservancy_beancount/setup.py - annotation
fdd9f2847b78
2.5 KiB
text/x-python
plugin: Skip enum value checks with a flag+FIXME.
We've long supported skipping documentation checks by flagging the
transaction. We haven't done the same for enumerated metadata because we
need it less often, and bad values tend to do more damage to reports.
However, occasionally when something very off-process happens, we do need it
as a matter of expediency. So support it.
In order to skip validation of these fields, the plugin requires that the
value start with the string "FIXME". This helps ensure that reports have a
consistent way to detect and warn about unfilled values in flagged
transactions.
We've long supported skipping documentation checks by flagging the
transaction. We haven't done the same for enumerated metadata because we
need it less often, and bad values tend to do more damage to reports.
However, occasionally when something very off-process happens, we do need it
as a matter of expediency. So support it.
In order to skip validation of these fields, the plugin requires that the
value start with the string "FIXME". This helps ensure that reports have a
consistent way to detect and warn about unfilled values in flagged
transactions.
c5dd7984bcc1 c5dd7984bcc1 c5dd7984bcc1 c5dd7984bcc1 c5dd7984bcc1 c5dd7984bcc1 c5dd7984bcc1 fdd9f2847b78 c5dd7984bcc1 c5dd7984bcc1 c5dd7984bcc1 c5dd7984bcc1 c5dd7984bcc1 2c44cc8f5027 8f014df51535 f9ea7edae3d7 70057fe38319 70057fe38319 13c66e8ce296 8f014df51535 8f014df51535 f09f029fc4cb c5dd7984bcc1 1caeb9a1a63d 1caeb9a1a63d 8f014df51535 1caeb9a1a63d 1caeb9a1a63d 8f014df51535 8f014df51535 1caeb9a1a63d c5dd7984bcc1 dcbac5db9833 dcbac5db9833 13c66e8ce296 1908358c309f dcbac5db9833 eba4ed45b0ab dcbac5db9833 0f91aefb5a8d dcbac5db9833 ad81c45f2a7a ad81c45f2a7a cd578289c463 7281cf0f0179 a87d4bfc6c0c 770b22f2f0e7 639a41b7828b ce067963dc6f 887102ea9208 9782e7203a61 f3c68ff46287 13c66e8ce296 1c95c1b1b1fb 2cf4fdcfadf7 eba4ed45b0ab 3219bf89d246 ad81c45f2a7a ad81c45f2a7a c5dd7984bcc1 | #!/usr/bin/env python3
from setuptools import setup
setup(
name='conservancy_beancount',
description="Plugin, library, and reports for reading Conservancy's books",
version='1.16.2',
author='Software Freedom Conservancy',
author_email='info@sfconservancy.org',
license='GNU AGPLv3+',
install_requires=[
'babel>=2.6', # Debian:python3-babel
'beancount>=2.2', # Debian:beancount
'GitPython>=2.0', # Debian:python3-git
# 1.4.1 crashes when trying to save some documents.
'odfpy>=1.4.0,!=1.4.1', # Debian:python3-odf
'pdfminer.six>=20200101',
'PyYAML>=3.0', # Debian:python3-yaml
'regex', # Debian:python3-regex
'rt>=2.0',
],
setup_requires=[
'pytest-mypy',
'pytest-runner', # Debian:python3-pytest-runner
],
tests_require=[
'mypy>=0.770', # Debian:python3-mypy
'pytest', # Debian:python3-pytest
],
packages=[
'conservancy_beancount',
'conservancy_beancount.pdfforms',
'conservancy_beancount.pdfforms.extract',
'conservancy_beancount.plugin',
'conservancy_beancount.reconcile',
'conservancy_beancount.reports',
'conservancy_beancount.tools',
],
entry_points={
'console_scripts': [
'accrual-report = conservancy_beancount.reports.accrual:entry_point',
'assemble-audit-reports = conservancy_beancount.tools.audit_report:entry_point',
'balance-sheet-report = conservancy_beancount.reports.balance_sheet:entry_point',
'budget-report = conservancy_beancount.reports.budget:entry_point',
'bean-sort = conservancy_beancount.tools.sort_entries:entry_point',
'extract-odf-links = conservancy_beancount.tools.extract_odf_links:entry_point',
'fund-report = conservancy_beancount.reports.fund:entry_point',
'ledger-report = conservancy_beancount.reports.ledger:entry_point',
'opening-balances = conservancy_beancount.tools.opening_balances:entry_point',
'pdfform-extract = conservancy_beancount.pdfforms.extract:entry_point',
'pdfform-extract-irs990scheduleA = conservancy_beancount.pdfforms.extract.irs990scheduleA:entry_point',
'pdfform-fill = conservancy_beancount.pdfforms.fill:entry_point',
'reconcile-paypal = conservancy_beancount.reconcile.paypal:entry_point',
'split-ods-links = conservancy_beancount.tools.split_ods_links:entry_point',
],
},
)
|