Skip to content

Commit c9d32ed

Browse files
committed
A couple of small updates
1 parent 339c7db commit c9d32ed

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

docker/Dockerfile.baseimage

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,11 @@ COPY --chown=palace:palace uv.lock pyproject.toml /var/www/circulation/
6666
# image is built. These may get out of date, but we always rerun this step when
6767
# building the final image, so it will be up to date then. This gives is a base
6868
# to work from which speeds up the final image build.
69-
RUN python3 -m venv env && \
69+
RUN uv sync --frozen --no-dev --no-install-project && \
7070
SIMPLIFIED_ENVIRONMENT=/var/www/circulation/environment.sh && \
7171
echo "if [ -f $SIMPLIFIED_ENVIRONMENT ]; then source $SIMPLIFIED_ENVIRONMENT; fi" >> env/bin/activate && \
72-
uv sync --frozen --no-dev --no-install-project && \
7372
. env/bin/activate && \
74-
# TODO: This can be removed once NLTK merges https://github.com/sloria/TextBlob/pull/469
75-
python3 -m nltk.downloader punkt_tab && \
7673
python3 -m textblob.download_corpora lite && \
77-
rm -rf /root/nltk_data/tokenizers/punkt && \
7874
mv /root/nltk_data /usr/lib/ && \
7975
find /usr/lib/nltk_data -name *.zip -delete && \
8076
rm -Rf /root/.cache && \

tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ envlist = py{312,313,314}-docker
44
[testenv]
55
runner = uv-venv-lock-runner
66
commands_pre =
7-
# TODO: This can be removed once NLTK merges https://github.com/sloria/TextBlob/pull/469
8-
python -m nltk.downloader punkt_tab
97
python -m textblob.download_corpora
108
commands =
119
pytest {posargs:tests}

0 commit comments

Comments
 (0)