2020-04-01 15:15:15 +03:00
|
|
|
|
|
|
|
# Requirements
|
|
|
|
|
2020-04-04 04:59:36 +03:00
|
|
|
This is a directory of requirements files. They are maintained using `pip-tools`:
|
2020-04-01 15:15:15 +03:00
|
|
|
|
2020-04-04 04:59:36 +03:00
|
|
|
* `*.in` - for developers to enter required packages
|
2020-04-01 15:15:15 +03:00
|
|
|
* `*.txt` - autogenerated by `pip-tools` hash-lock the specific versions for production
|
|
|
|
|
|
|
|
## Upgrading
|
|
|
|
|
2020-04-04 04:59:36 +03:00
|
|
|
When you want to upgrade (be sure to run from main treeherder directory, than this directory)
|
2020-04-01 15:15:15 +03:00
|
|
|
|
|
|
|
pip-compile --upgrade --generate-hashes --output-file requirements/common.txt requirements/common.in
|
2020-06-17 18:36:22 +03:00
|
|
|
pip-compile --upgrade --generate-hashes --allow-unsafe --output-file requirements/dev.txt requirements/dev.in
|
2020-04-01 15:15:15 +03:00
|
|
|
|
2020-04-04 04:59:36 +03:00
|
|
|
> [see pip-tools for more information](https://pypi.org/project/pip-tools/)
|