-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from open-zaak/feature/upgrade-dependencies
upgrade dependencies
- Loading branch information
Showing
15 changed files
with
2,474 additions
and
1,577 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,2 @@ | ||
16 | ||
|
This file was deleted.
Oops, something went wrong.
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,26 +1,48 @@ | ||
|
||
|
||
#!/bin/bash | ||
|
||
# | ||
# Compile the dependencies for production, CI and development. | ||
# | ||
# Usage, in the root of the project: | ||
# | ||
# ./bin/compile_dependencies.sh | ||
# | ||
# Any extra flags/arguments passed to this wrapper script are passed down to pip-compile. | ||
# E.g. to update a package: | ||
# | ||
# ./bin/compile_dependencies.sh --upgrade-package django | ||
|
||
set -ex | ||
|
||
toplevel=$(git rev-parse --show-toplevel) | ||
|
||
cd $toplevel | ||
|
||
export CUSTOM_COMPILE_COMMAND="./bin/compile_dependencies.sh" | ||
|
||
# Base (& prod) deps | ||
pip-compile \ | ||
--no-index \ | ||
--no-emit-index-url \ | ||
--allow-unsafe \ | ||
"$@" \ | ||
requirements/base.in | ||
|
||
# Dependencies for testing | ||
pip-compile \ | ||
--no-index \ | ||
--no-emit-index-url \ | ||
--output-file requirements/ci.txt \ | ||
--allow-unsafe \ | ||
"$@" \ | ||
requirements/base.txt \ | ||
requirements/test-tools.in | ||
|
||
# Dev depedencies - exact same set as CI + some extra tooling | ||
pip-compile \ | ||
--no-index \ | ||
--no-emit-index-url \ | ||
--output-file requirements/dev.txt \ | ||
--allow-unsafe \ | ||
"$@" \ | ||
requirements/ci.txt \ | ||
requirements/dev.in |
Oops, something went wrong.