-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
Description
delphi_utils is a big hodge-podge of a package with a lot of dependencies, thus it has a relatively large net footprint and takes a while to install. Lets see if we can lessen that.
- Move packages in setup.py that are unnecessary for a downstream user but still used in test/lint/ci, like:
darker,freezegun,mock,moto,pydocstyle,pylint,pytest-cov,pytest,requests-mock. They can be put into something like a "requirements.test.txt" file that gets installed via the CI and/or Makefile. - Remove from
setup.pyany unused packages, asgitpythonappears to be. - The
covidcastpackage has its own wacky imports, which includes a bunch of imaging/graphics and geospatial libraries. It is only used in thedelphi_utils.validatormodule for pulling data from the API and can be replaced with the lighter-weightdelphi_epidataclient instead. Doing that is not quite as easy as moving requirements entries around, and it is covered in in replace the python covidcast client in validator #1972.