Matt Robinson ee2b247297
build: check dependency licenses in CI (#3349)
### Summary

Adds a CI check to ensure that packages added as dependencies are
appropriately licensed. All of the `.txt` files in the `requirements`
directory are checked with the exception of:

- `constraints.txt`, since those are not installed and are instead
conditions on the other dependency files
- `dev.txt`, since those are for local development and not shipped as
part of the `unstructured` package
- `extra-pdf-image.txt` - the `extra-pdf-image.in` since checking
`extra-pdf-image.txt` pulls in NVIDIA GPU related packages with an
`Other/Proprietary` license type, and there's not a good way to exclude
those without adding `Other/Proprietary` to the allowed licenses list.

### Testing

The new `check-licenses` job should pass in CI.
2024-07-11 22:36:01 +00:00

24 lines
345 B
Plaintext

-c ./deps/constraints.txt
-c base.txt
black>=22.3.0
coverage
types-click
flake8
flake8-print
freezegun
label_studio_sdk
mypy
pydantic
pytest-cov
pytest-mock
# NOTE(robison) - we need to do additional cleanup to pass
# linting for the latest version of ruff
ruff<0.5.0
types-Markdown
types-requests
types-tabulate
vcrpy
grpcio
autoflake
liccheck