Merge pull request #49 from overhangio/teak

This commit is contained in:
Ahmed Khalid 2025-06-27 17:04:20 +05:00 committed by GitHub
commit 4fde7e355b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 27 additions and 17 deletions

View File

@ -19,6 +19,11 @@ instructions, because git commits are used to generate release notes:
<!-- scriv-insert-here --> <!-- scriv-insert-here -->
<a id='changelog-20.0.0'></a>
## v20.0.0 (2025-06-05)
- 💥[Feature] Upgrade to Teak. (by @jfavellar90)
<a id='changelog-19.0.2'></a> <a id='changelog-19.0.2'></a>
## v19.0.2 (2025-03-12) ## v19.0.2 (2025-03-12)

View File

@ -27,7 +27,7 @@ classifiers = [
"Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.12",
] ]
dependencies = [ dependencies = [
"tutor>=19.0.0,<20.0.0", "tutor>=20.0.0,<21.0.0",
] ]
# These fields will be set by hatch_build.py # These fields will be set by hatch_build.py
@ -35,7 +35,7 @@ dynamic = ["version"]
[project.optional-dependencies] [project.optional-dependencies]
dev = [ dev = [
"tutor[dev]>=19.0.0,<20.0.0", "tutor[dev]>=20.0.0,<21.0.0",
"black", "black",
"pylint" "pylint"
] ]

View File

@ -1 +1 @@
__version__ = "19.0.2" __version__ = "20.0.0"

View File

@ -1,4 +1,4 @@
# syntax=docker/dockerfile:1.4 # syntax=docker/dockerfile:1
FROM docker.io/ubuntu:24.04 FROM docker.io/ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
@ -7,17 +7,17 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN userdel -r ubuntu RUN userdel -r ubuntu
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \
apt update && \ apt update && \
apt upgrade -y && \ apt upgrade -y && \
apt install -y \ apt install -y \
language-pack-en \ language-pack-en \
git \ git \
python3 \ python3 \
python3-pip \ python3-pip \
python3-venv \ python3-venv \
libmysqlclient-dev \ libmysqlclient-dev \
pkg-config pkg-config
RUN ln -s /usr/bin/python3 /usr/bin/python RUN ln -s /usr/bin/python3 /usr/bin/python
###### Git-clone Notes repo ###### ###### Git-clone Notes repo ######
@ -34,8 +34,13 @@ ENV PATH=/app/venv/bin:${PATH}
# https://pypi.org/project/setuptools/ # https://pypi.org/project/setuptools/
# https://pypi.org/project/pip/ # https://pypi.org/project/pip/
# https://pypi.org/project/wheel/ # https://pypi.org/project/wheel/
RUN --mount=type=cache,target=/app/.cache/pip,sharing=shared pip install setuptools==75.2.0 pip==24.2 wheel==0.44.0 RUN --mount=type=cache,target=/app/.cache/pip,sharing=shared pip install setuptools==78.1.0 pip==25.0.1 wheel==0.46.0
RUN --mount=type=cache,target=/app/.cache/pip,sharing=shared pip install -r requirements/base.txt RUN --mount=type=cache,target=/app/.cache/pip,sharing=shared pip install -r requirements/base.txt
EXPOSE 8000 EXPOSE 8000
CMD gunicorn --workers=2 --name notes --bind=0.0.0.0:8000 --max-requests=1000 notesserver.wsgi:application CMD ["gunicorn", \
"--workers=2", \
"--name", "notes", \
"--bind=0.0.0.0:8000", \
"--max-requests=1000", \
"notesserver.wsgi:application"]