Skip to content

Clean up delphi_utils #1973

Open
Open
@melange396

Description

@melange396

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, as gitpython 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 the delphi_utils.validator module for pulling data from the API and can be replaced with the lighter-weight delphi_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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions