Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to using pip-tools, this pins more reqs #729

Merged
merged 3 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
db_www_export.dump
media
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,16 @@ WORKDIR /usr/src/app
COPY requirements.txt /usr/src/app/
COPY requirements_dev.txt /usr/src/app/
COPY entrypoint.sh /usr/src/app/
ENV PATH=$HOME/.cargo/bin:$PATH
ENV VIRTUAL_ENV=/usr/src/venv
ENV PATH=$VIRTUAL_ENV/bin:$HOME/.cargo/bin:$PATH

RUN apk -U upgrade
# Use a virtual env here, because othewise we get conflicats between Alpine's
# packages and pip's. (This has started happening because we switched to pip-
# tools which pins every dependency).
RUN apk add --no-cache gcc musl-dev python3-dev libffi-dev openssl-dev cargo libwebp libwebp-tools &&\
python3 -m venv /usr/src/venv &&\
. /usr/src/venv/bin/activate &&\
pip3 install -r requirements_dev.txt

RUN apk add --no-cache gettext
Expand Down
26 changes: 26 additions & 0 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Babel==2.9.1
beautifulsoup4==4.8.2
bleach==3.3.0
dj-database-url==0.5
django-compressor==4.1
django-extensions==3.1.3
django-import-export==2.5.0
django-haystack==3.0
django-modeltranslation==0.17.2
django-prettyjson==0.4.1
django-recaptcha3==0.4.0
django-storages[azure]==1.11.1
django-widget-tweaks==1.4.8
Django==3.2.4
elasticsearch==6.8.2
gunicorn==20.1.0
opencensus-ext-azure==1.0.7
opencensus-ext-django==0.7.4
PyGithub==1.55
psycopg2-binary==2.8.6
requests==2.25.1
wagtail-modeltranslation==0.13.0
wagtail>=4.1,<4.2
Wand==0.6.6
whitenoise==5.2.0
wrapt==1.11.*
232 changes: 224 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,26 +1,242 @@
Babel==2.9.1
#
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# pip-compile requirements.in
#
anyascii==0.3.2
# via wagtail
asgiref==3.7.2
# via django
azure-common==1.1.28
# via
# azure-storage-blob
# azure-storage-common
azure-storage-blob==2.1.0
# via django-storages
azure-storage-common==2.1.0
# via azure-storage-blob
babel==2.9.1
# via -r requirements.in
beautifulsoup4==4.8.2
# via
# -r requirements.in
# wagtail
bleach==3.3.0
dj-database-url==0.5
# via -r requirements.in
cachetools==5.3.1
# via google-auth
certifi==2023.7.22
# via requests
cffi==1.15.1
# via
# cryptography
# pynacl
chardet==4.0.0
# via requests
cryptography==41.0.3
# via azure-storage-common
defusedxml==0.7.1
# via odfpy
deprecated==1.2.14
# via pygithub
diff-match-patch==20230430
# via django-import-export
dj-database-url==0.5.0
# via -r requirements.in
django==3.2.4
# via
# -r requirements.in
# django-appconf
# django-extensions
# django-filter
# django-haystack
# django-import-export
# django-modelcluster
# django-modeltranslation
# django-permissionedforms
# django-prettyjson
# django-storages
# django-taggit
# django-treebeard
# djangorestframework
# opencensus-ext-django
# wagtail
# wagtail-modeltranslation
django-appconf==1.0.5
# via django-compressor
django-compressor==4.1
# via -r requirements.in
django-extensions==3.1.3
django-import-export==2.5.0
# via -r requirements.in
django-filter==22.1
# via wagtail
django-haystack==3.0
# via -r requirements.in
django-import-export==2.5.0
# via -r requirements.in
django-modelcluster==6.0
# via wagtail
django-modeltranslation==0.17.2
# via
# -r requirements.in
# wagtail-modeltranslation
django-permissionedforms==0.1
# via wagtail
django-prettyjson==0.4.1
# via -r requirements.in
django-recaptcha3==0.4.0
# via -r requirements.in
django-storages[azure]==1.11.1
# via -r requirements.in
django-taggit==3.1.0
# via wagtail
django-treebeard==4.7
# via wagtail
django-widget-tweaks==1.4.8
Django==3.2.4
# via -r requirements.in
djangorestframework==3.14.0
# via wagtail
draftjs-exporter==2.1.7
# via wagtail
elasticsearch==6.8.2
# via -r requirements.in
et-xmlfile==1.1.0
# via openpyxl
google-api-core==2.11.1
# via opencensus
google-auth==2.22.0
# via google-api-core
googleapis-common-protos==1.60.0
# via google-api-core
gunicorn==20.1.0
# via -r requirements.in
html5lib==1.1
# via wagtail
idna==2.10
# via requests
l18n==2021.3
# via wagtail
markuppy==1.14
# via tablib
odfpy==1.4.1
# via tablib
opencensus==0.11.2
# via
# opencensus-ext-azure
# opencensus-ext-django
opencensus-context==0.1.3
# via opencensus
opencensus-ext-azure==1.0.7
# via -r requirements.in
opencensus-ext-django==0.7.4
PyGithub==1.55
# via -r requirements.in
openpyxl==3.1.2
# via
# tablib
# wagtail
packaging==23.1
# via bleach
pillow==9.5.0
# via wagtail
protobuf==4.24.2
# via
# google-api-core
# googleapis-common-protos
psutil==5.9.5
# via opencensus-ext-azure
psycopg2-binary==2.8.6
# via -r requirements.in
pyasn1==0.5.0
# via
# pyasn1-modules
# rsa
pyasn1-modules==0.3.0
# via google-auth
pycparser==2.21
# via cffi
pygithub==1.55
# via -r requirements.in
pyjwt==2.8.0
# via pygithub
pynacl==1.5.0
# via pygithub
python-dateutil==2.8.2
# via azure-storage-common
pytz==2023.3.post1
# via
# babel
# django
# django-modelcluster
# djangorestframework
# l18n
pyyaml==6.0.1
# via tablib
rcssmin==1.1.0
# via django-compressor
requests==2.25.1
# via
# -r requirements.in
# azure-storage-common
# django-recaptcha3
# google-api-core
# opencensus-ext-azure
# pygithub
# wagtail
rjsmin==1.2.0
# via django-compressor
rsa==4.9
# via google-auth
six==1.16.0
# via
# bleach
# django-modeltranslation
# django-prettyjson
# google-auth
# html5lib
# l18n
# python-dateutil
soupsieve==2.5
# via beautifulsoup4
sqlparse==0.4.4
# via django
standardjson==0.3.1
# via django-prettyjson
tablib[html,ods,xls,xlsx,yaml]==3.5.0
# via django-import-export
telepath==0.3.1
# via wagtail
typing-extensions==4.7.1
# via asgiref
urllib3==1.26.16
# via
# elasticsearch
# google-auth
# requests
wagtail==4.1.6
# via
# -r requirements.in
# wagtail-modeltranslation
wagtail-modeltranslation==0.13.0
wagtail>=4.1,<4.2
Wand==0.6.6
# via -r requirements.in
wand==0.6.6
# via -r requirements.in
webencodings==0.5.1
# via
# bleach
# html5lib
whitenoise==5.2.0
wrapt==1.11.*
# via -r requirements.in
willow==1.4.1
# via wagtail
wrapt==1.11.2
# via
# -r requirements.in
# deprecated
xlrd==2.0.1
# via tablib
xlwt==1.3.0
# via tablib

# The following packages are considered to be unsafe in a requirements file:
# setuptools
16 changes: 16 additions & 0 deletions requirements_dev.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-r requirements.in
attrs==21.2.0
pytest==7.1.1
pytest-django==4.5.2
pytest-timeout==2.1.0
splinter==0.14.0
pytest-splinter==3.3.1
responses==0.13.3
flake8==3.9.2
pydocstyle==6.0.0
pylint==2.4.4
pylint-django==2.0.13
wagtail-factories==3.1.0
factory-boy==3.2.1
sqlparse==0.4.2
django-debug-toolbar==3.5.0
Loading
Loading