From 268a9a8f206c0806416ef8cdb8fc7347367db4a4 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Mon, 26 Aug 2024 15:56:06 -0400 Subject: [PATCH] Moving install_os_dependencies script and adding runtime requirements files. --- {tests => scripts}/install_os_dependencies.sh | 2 +- scripts/requirements/requirements-bionic.apt | 23 +++++++++++++++++++ .../requirements/requirements-bookworm.apt | 23 +++++++++++++++++++ .../requirements/requirements-bullseye.apt | 23 +++++++++++++++++++ scripts/requirements/requirements-buster.apt | 23 +++++++++++++++++++ scripts/requirements/requirements-focal.apt | 23 +++++++++++++++++++ scripts/requirements/requirements-jammy.apt | 23 +++++++++++++++++++ scripts/requirements/requirements-jessie.apt | 23 +++++++++++++++++++ scripts/requirements/requirements-stretch.apt | 23 +++++++++++++++++++ scripts/requirements/requirements-trusty.apt | 23 +++++++++++++++++++ scripts/requirements/requirements-xenial.apt | 23 +++++++++++++++++++ tests/test_bare.sh | 2 +- 12 files changed, 232 insertions(+), 2 deletions(-) rename {tests => scripts}/install_os_dependencies.sh (97%) create mode 100644 scripts/requirements/requirements-bionic.apt create mode 100644 scripts/requirements/requirements-bookworm.apt create mode 100644 scripts/requirements/requirements-bullseye.apt create mode 100644 scripts/requirements/requirements-buster.apt create mode 100644 scripts/requirements/requirements-focal.apt create mode 100644 scripts/requirements/requirements-jammy.apt create mode 100644 scripts/requirements/requirements-jessie.apt create mode 100644 scripts/requirements/requirements-stretch.apt create mode 100644 scripts/requirements/requirements-trusty.apt create mode 100644 scripts/requirements/requirements-xenial.apt diff --git a/tests/install_os_dependencies.sh b/scripts/install_os_dependencies.sh similarity index 97% rename from tests/install_os_dependencies.sh rename to scripts/install_os_dependencies.sh index ec9372f..206cde2 100755 --- a/tests/install_os_dependencies.sh +++ b/scripts/install_os_dependencies.sh @@ -2,7 +2,7 @@ WORK_DIR="$(dirname "$0")" DISTRO_NAME=$(lsb_release -sc) -OS_REQUIREMENTS_FILENAME="requirements-$DISTRO_NAME.apt" +OS_REQUIREMENTS_FILENAME="requirements/requirements-$DISTRO_NAME.apt" cd $WORK_DIR diff --git a/scripts/requirements/requirements-bionic.apt b/scripts/requirements/requirements-bionic.apt new file mode 100644 index 0000000..0e1a657 --- /dev/null +++ b/scripts/requirements/requirements-bionic.apt @@ -0,0 +1,23 @@ +##basic build dependencies of various Django apps for Ubuntu Bionic 18.04 +#build-essential metapackage install: make, gcc, g++, +build-essential +#required to translate +gettext +python3-dev + +##shared dependencies of: +##Pillow, pylibmc +zlib1g-dev + +##Postgresql and psycopg dependencies +libpq-dev + +##Pillow dependencies +libtiff5-dev +libjpeg8-dev +libfreetype6-dev +liblcms2-dev +libwebp-dev + +##django-extensions +libgraphviz-dev diff --git a/scripts/requirements/requirements-bookworm.apt b/scripts/requirements/requirements-bookworm.apt new file mode 100644 index 0000000..f24f6f3 --- /dev/null +++ b/scripts/requirements/requirements-bookworm.apt @@ -0,0 +1,23 @@ +##basic build dependencies of various Django apps for Debian Bookworm 12.x +#build-essential metapackage install: make, gcc, g++, +build-essential +#required to translate +gettext +python3-dev + +##shared dependencies of: +##Pillow, pylibmc +zlib1g-dev + +##Postgresql and psycopg dependencies +libpq-dev + +##Pillow dependencies +libtiff5-dev +libjpeg62-turbo-dev +libfreetype6-dev +liblcms2-dev +libwebp-dev + +##django-extensions +libgraphviz-dev diff --git a/scripts/requirements/requirements-bullseye.apt b/scripts/requirements/requirements-bullseye.apt new file mode 100644 index 0000000..e8e36b6 --- /dev/null +++ b/scripts/requirements/requirements-bullseye.apt @@ -0,0 +1,23 @@ +##basic build dependencies of various Django apps for Debian Bullseye 11.x +#build-essential metapackage install: make, gcc, g++, +build-essential +#required to translate +gettext +python3-dev + +##shared dependencies of: +##Pillow, pylibmc +zlib1g-dev + +##Postgresql and psycopg dependencies +libpq-dev + +##Pillow dependencies +libtiff5-dev +libjpeg62-turbo-dev +libfreetype6-dev +liblcms2-dev +libwebp-dev + +##django-extensions +libgraphviz-dev diff --git a/scripts/requirements/requirements-buster.apt b/scripts/requirements/requirements-buster.apt new file mode 100644 index 0000000..f2c8196 --- /dev/null +++ b/scripts/requirements/requirements-buster.apt @@ -0,0 +1,23 @@ +##basic build dependencies of various Django apps for Debian Jessie 10.x +#build-essential metapackage install: make, gcc, g++, +build-essential +#required to translate +gettext +python3-dev + +##shared dependencies of: +##Pillow, pylibmc +zlib1g-dev + +##Postgresql and psycopg dependencies +libpq-dev + +##Pillow dependencies +libtiff5-dev +libjpeg62-turbo-dev +libfreetype6-dev +liblcms2-dev +libwebp-dev + +##django-extensions +libgraphviz-dev diff --git a/scripts/requirements/requirements-focal.apt b/scripts/requirements/requirements-focal.apt new file mode 100644 index 0000000..f400b41 --- /dev/null +++ b/scripts/requirements/requirements-focal.apt @@ -0,0 +1,23 @@ +##basic build dependencies of various Django apps for Ubuntu Focal 20.04 +#build-essential metapackage install: make, gcc, g++, +build-essential +#required to translate +gettext +python3-dev + +##shared dependencies of: +##Pillow, pylibmc +zlib1g-dev + +##Postgresql and psycopg dependencies +libpq-dev + +##Pillow dependencies +libtiff5-dev +libjpeg8-dev +libfreetype6-dev +liblcms2-dev +libwebp-dev + +##django-extensions +graphviz-dev diff --git a/scripts/requirements/requirements-jammy.apt b/scripts/requirements/requirements-jammy.apt new file mode 100644 index 0000000..ea52472 --- /dev/null +++ b/scripts/requirements/requirements-jammy.apt @@ -0,0 +1,23 @@ +##basic build dependencies of various Django apps for Ubuntu Jammy 22.04 +#build-essential metapackage install: make, gcc, g++, +build-essential +#required to translate +gettext +python3-dev + +##shared dependencies of: +##Pillow, pylibmc +zlib1g-dev + +##Postgresql and psycopg dependencies +libpq-dev + +##Pillow dependencies +libtiff5-dev +libjpeg8-dev +libfreetype6-dev +liblcms2-dev +libwebp-dev + +##django-extensions +graphviz-dev diff --git a/scripts/requirements/requirements-jessie.apt b/scripts/requirements/requirements-jessie.apt new file mode 100644 index 0000000..ebf0e58 --- /dev/null +++ b/scripts/requirements/requirements-jessie.apt @@ -0,0 +1,23 @@ +##basic build dependencies of various Django apps for Debian Jessie 8.x +#build-essential metapackage install: make, gcc, g++, +build-essential +#required to translate +gettext +python3-dev + +##shared dependencies of: +##Pillow, pylibmc +zlib1g-dev + +##Postgresql and psycopg dependencies +libpq-dev + +##Pillow dependencies +libtiff5-dev +libjpeg62-turbo-dev +libfreetype6-dev +liblcms2-dev +libwebp-dev + +##django-extensions +graphviz-dev diff --git a/scripts/requirements/requirements-stretch.apt b/scripts/requirements/requirements-stretch.apt new file mode 100644 index 0000000..979eca3 --- /dev/null +++ b/scripts/requirements/requirements-stretch.apt @@ -0,0 +1,23 @@ +##basic build dependencies of various Django apps for Debian Jessie 9.x +#build-essential metapackage install: make, gcc, g++, +build-essential +#required to translate +gettext +python3-dev + +##shared dependencies of: +##Pillow, pylibmc +zlib1g-dev + +##Postgresql and psycopg dependencies +libpq-dev + +##Pillow dependencies +libtiff5-dev +libjpeg62-turbo-dev +libfreetype6-dev +liblcms2-dev +libwebp-dev + +##django-extensions +graphviz-dev diff --git a/scripts/requirements/requirements-trusty.apt b/scripts/requirements/requirements-trusty.apt new file mode 100644 index 0000000..954f783 --- /dev/null +++ b/scripts/requirements/requirements-trusty.apt @@ -0,0 +1,23 @@ +##basic build dependencies of various Django apps for Ubuntu Trusty 14.04 +#build-essential metapackage install: make, gcc, g++, +build-essential +#required to translate +gettext +python3-dev + +##shared dependencies of: +##Pillow, pylibmc +zlib1g-dev + +##Postgresql and psycopg dependencies +libpq-dev + +##Pillow dependencies +libtiff4-dev +libjpeg8-dev +libfreetype6-dev +liblcms1-dev +libwebp-dev + +##django-extensions +graphviz-dev diff --git a/scripts/requirements/requirements-xenial.apt b/scripts/requirements/requirements-xenial.apt new file mode 100644 index 0000000..1784e40 --- /dev/null +++ b/scripts/requirements/requirements-xenial.apt @@ -0,0 +1,23 @@ +##basic build dependencies of various Django apps for Ubuntu Xenial 16.04 +#build-essential metapackage install: make, gcc, g++, +build-essential +#required to translate +gettext +python3-dev + +##shared dependencies of: +##Pillow, pylibmc +zlib1g-dev + +##Postgresql and psycopg dependencies +libpq-dev + +##Pillow dependencies +libtiff5-dev +libjpeg8-dev +libfreetype6-dev +liblcms2-dev +libwebp-dev + +##django-extensions +graphviz-dev diff --git a/tests/test_bare.sh b/tests/test_bare.sh index 9b9b36d..d703845 100644 --- a/tests/test_bare.sh +++ b/tests/test_bare.sh @@ -7,7 +7,7 @@ set -o errexit set -x # Install OS deps -sudo tests/install_os_dependencies.sh install +sudo scripts/install_os_dependencies.sh install # create a cache directory mkdir -p .cache/bare