-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
313 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
Changing the Project's Python Dependencies | ||
------------------------------------------ | ||
|
||
### To Add a New Dependency | ||
|
||
Add the dependency to the appropriate [`requirements/*.in`](requirements/) | ||
file(s) and then run: | ||
|
||
```terminal | ||
make requirements | ||
``` | ||
|
||
### To Remove a Dependency | ||
|
||
Remove the dependency from the appropriate [`requirements/*.in`](requirements) | ||
file(s) and then run: | ||
|
||
```terminal | ||
make requirements | ||
``` | ||
|
||
### To Upgrade or Downgrade a Dependency | ||
|
||
We rely on [Dependabot](https://github.com/dependabot) to keep all our | ||
dependencies up to date by sending automated pull requests to all our repos. | ||
But if you need to upgrade or downgrade a dependency manually you can do that | ||
locally. | ||
|
||
To upgrade a package to the latest version in all `requirements/*.txt` files: | ||
|
||
```terminal | ||
make requirements --always-make args='--upgrade-package <FOO>' | ||
``` | ||
|
||
To upgrade or downgrade a package to a specific version: | ||
|
||
```terminal | ||
make requirements --always-make args='--upgrade-package <FOO>==<X.Y.Z>' | ||
``` | ||
|
||
To upgrade **all** dependencies to their latest versions: | ||
|
||
```terminal | ||
make requirements --always-make args=--upgrade | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pip-tools | ||
black | ||
isort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# | ||
# This file is autogenerated by pip-compile with python 3.8 | ||
# To update, run: | ||
# | ||
# pip-compile --allow-unsafe requirements/checkformatting.in | ||
# | ||
black==22.6.0 | ||
# via -r requirements/checkformatting.in | ||
build==0.8.0 | ||
# via pip-tools | ||
click==8.1.3 | ||
# via | ||
# black | ||
# pip-tools | ||
isort==5.10.1 | ||
# via -r requirements/checkformatting.in | ||
mypy-extensions==0.4.3 | ||
# via black | ||
packaging==21.3 | ||
# via build | ||
pathspec==0.9.0 | ||
# via black | ||
pep517==0.13.0 | ||
# via build | ||
pip-tools==6.8.0 | ||
# via -r requirements/checkformatting.in | ||
platformdirs==2.5.2 | ||
# via black | ||
pyparsing==3.0.9 | ||
# via packaging | ||
tomli==2.0.1 | ||
# via | ||
# black | ||
# build | ||
# pep517 | ||
typing-extensions==4.3.0 | ||
# via black | ||
wheel==0.37.1 | ||
# via pip-tools | ||
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
pip==22.2.1 | ||
# via pip-tools | ||
setuptools==63.2.0 | ||
# via pip-tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
pip-tools | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pip-tools | ||
ipython | ||
ipdb | ||
-r requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
pip-tools | ||
black | ||
isort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
-r requirements.txt | ||
|
||
pip-tools | ||
pytest | ||
webtest | ||
h_matchers |
Oops, something went wrong.