Open
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.py
any unused packages, asgitpython
appears to be. - The
covidcast
package has its own wacky imports, which includes a bunch of imaging/graphics and geospatial libraries. It is only used in thedelphi_utils.validator
module for pulling data from the API and can be replaced with the lighter-weightdelphi_epidata
client 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.