Changeset - 9c69d656a382
[Not reviewed]
0 1 0
Ben Sturmfels (bsturmfels) - 2 years ago 2022-02-04 08:24:02
ben@sturm.com.au
Add typing dependencies for requests, dateutil, setuptools and yaml.

Without these, mypy complains that "Library stubs are not installed".
1 file changed with 14 insertions and 0 deletions:
0 comments (0 inline, 0 general)
setup.cfg
Show inline comments
...
 
@@ -41,12 +41,22 @@ install_requires =
 
  regex
 
  rt>=2.0
 
  thefuzz
 
packages = find:
 
python_requires = >=3.6
 

	
 
[options.extras_require]
 
test =
 
  mypy>=0.770
 
  pytest>=3.0
 
  pytest-mypy
 
  types-requests
 
  types-python-dateutil
 
  types-setuptools
 
  types-PyYAML
 

	
 
[options.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
...
 
@@ -72,12 +82,16 @@ exclude =
 

	
 
[testenv]
 
deps =
 
  mypy>=0.770
 
  pytest>=3.0
 
  pytest-mypy
 
  types-requests
 
  types-python-dateutil
 
  types-setuptools
 
  types-PyYAML
 

	
 
# Beancount includes type declarations but not the `py.typed` flag file mypy
 
# is looking for to know that. Create it ourselves.
 
commands_pre = python -c 'import beancount, pathlib; pathlib.Path(beancount.__file__).with_name("py.typed").touch()'
 

	
 
commands =
0 comments (0 inline, 0 general)