-
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 #38 from maykinmedia/feature/update-OAF
Feature/update oaf
- Loading branch information
Showing
9 changed files
with
602 additions
and
229 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 |
---|---|---|
@@ -1,48 +1,42 @@ | ||
#!/bin/bash | ||
|
||
#!/bin/sh | ||
# | ||
# 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. | ||
# Any extra flags/arguments passed to this wrapper script are passed down to uv pip compile. | ||
# E.g. to update a package: | ||
# | ||
# ./bin/compile_dependencies.sh --upgrade-package django | ||
|
||
set -ex | ||
|
||
command -v uv || (echo "uv not found on PATH. Install it https://astral.sh/uv" >&2 && exit 1) | ||
|
||
cwd="${PWD}" | ||
toplevel=$(git rev-parse --show-toplevel) | ||
|
||
cd $toplevel | ||
cd "${toplevel}" | ||
|
||
export CUSTOM_COMPILE_COMMAND="./bin/compile_dependencies.sh" | ||
export UV_CUSTOM_COMPILE_COMMAND="./bin/compile_dependencies.sh" | ||
|
||
# Base (& prod) deps | ||
pip-compile \ | ||
--no-emit-index-url \ | ||
--allow-unsafe \ | ||
uv pip compile \ | ||
--output-file requirements/base.txt \ | ||
"$@" \ | ||
requirements/base.in | ||
|
||
# Dependencies for ci | ||
pip-compile \ | ||
--no-emit-index-url \ | ||
--allow-unsafe \ | ||
# Dependencies for testing | ||
uv pip compile \ | ||
--output-file requirements/ci.txt \ | ||
"$@" \ | ||
requirements/base.txt \ | ||
requirements/test-tools.in \ | ||
requirements/ci.in | ||
|
||
# Dev depedencies | ||
pip-compile \ | ||
--no-emit-index-url \ | ||
--allow-unsafe \ | ||
requirements/test-tools.in | ||
|
||
# Dev depedencies - exact same set as CI + some extra tooling | ||
uv pip compile \ | ||
--output-file requirements/dev.txt \ | ||
"$@" \ | ||
requirements/base.txt \ | ||
requirements/test-tools.in \ | ||
requirements/dev.in | ||
|
||
cd "${cwd}" |
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 |
---|---|---|
|
@@ -76,10 +76,12 @@ Optional | |
* ``EMAIL_HOST_PASSWORD``: password to connect to the mail server. Defaults to: ``(empty string)``. | ||
* ``EMAIL_USE_TLS``: whether to use TLS or not to connect to the mail server. Should be True if you're changing the ``EMAIL_PORT`` to 487. Defaults to: ``False``. | ||
* ``DEFAULT_FROM_EMAIL``: The default email address from which emails are sent. Defaults to: ``[email protected]``. | ||
* ``LOG_STDOUT``: whether to log to stdout or not. Defaults to: ``False``. | ||
* ``LOG_STDOUT``: whether to log to stdout or not. Defaults to: ``True``. | ||
* ``LOG_LEVEL``: control the verbosity of logging output. Available values are ``CRITICAL``, ``ERROR``, ``WARNING``, ``INFO`` and ``DEBUG``. Defaults to: ``WARNING``. | ||
* ``LOG_QUERIES``: enable (query) logging at the database backend level. Note that you must also set ``DEBUG=1``, which should be done very sparingly!. Defaults to: ``False``. | ||
* ``LOG_REQUESTS``: enable logging of the outgoing requests. Defaults to: ``False``. | ||
* ``CELERY_LOGLEVEL``: control the verbosity of logging output for celery, independent of ``LOG_LEVEL``. Available values are ``CRITICAL``, ``ERROR``, ``WARNING``, ``INFO`` and ``DEBUG``. Defaults to: ``INFO``. | ||
* ``SESSION_COOKIE_AGE``: For how long, in seconds, the session cookie will be valid. Defaults to: ``1209600``. | ||
* ``SESSION_COOKIE_SAMESITE``: The value of the SameSite flag on the session cookie. This flag prevents the cookie from being sent in cross-site requests thus preventing CSRF attacks and making some methods of stealing session cookie impossible.Currently interferes with OIDC. Keep the value set at Lax if used. Defaults to: ``Lax``. | ||
* ``CSRF_COOKIE_SAMESITE``: The value of the SameSite flag on the CSRF cookie. This flag prevents the cookie from being sent in cross-site requests. Defaults to: ``Strict``. | ||
* ``ENVIRONMENT``: An identifier for the environment, displayed in the admin depending on the settings module used and included in the error monitoring (see ``SENTRY_DSN``). The default is set according to ``DJANGO_SETTINGS_MODULE``. | ||
|
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.