Skip to content

Commit

Permalink
Merge pull request #22 from open-zaak/feature/upgrade-dependencies
Browse files Browse the repository at this point in the history
upgrade dependencies
  • Loading branch information
sergei-maertens authored Oct 7, 2022
2 parents 2390fb3 + 96e15fb commit 81c719d
Show file tree
Hide file tree
Showing 15 changed files with 2,474 additions and 1,577 deletions.
2 changes: 2 additions & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
16

24 changes: 0 additions & 24 deletions bin/compile_dependencies.cmd

This file was deleted.

28 changes: 25 additions & 3 deletions bin/compile_dependencies.sh
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
Loading

0 comments on commit 81c719d

Please sign in to comment.