Skip to content

Commit ac4c463

Browse files
committed
merge fix-ci into develop
2 parents 6de9a64 + 89bd68b commit ac4c463

6 files changed

Lines changed: 976 additions & 733 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
# as it stands this is wasteful.
1717
# assuming no PR has more than 50 commits.
1818
fetch-depth: 50
19+
submodules: recursive
1920
- uses: actions/setup-python@v5
2021
with:
2122
python-version: '3.12'
@@ -44,13 +45,12 @@ jobs:
4445
- name: set up `uv`
4546
uses: astral-sh/setup-uv@v5
4647
with:
47-
version: "0.6.2"
48+
version: "0.8.18"
4849
enable-cache: true
4950
cache-dependency-glob: "uv.lock"
5051
- name: install pip dependencies with uv
5152
run: >
52-
uv sync --locked --dev
53-
&& uv pip install deps/wtforms-widgets
53+
uv sync --locked
5454
&& uv pip list
5555
id: pip-install
5656
# now come the tests
@@ -95,6 +95,8 @@ jobs:
9595
runs-on: ubuntu-latest
9696
steps:
9797
- uses: actions/checkout@v4
98+
with:
99+
submodules: recursive
98100
- uses: oven-sh/setup-bun@v1
99101
with:
100102
bun-version: 1.1.26

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
hooks:
1717
- id: ruff
1818
- repo: https://github.com/astral-sh/uv-pre-commit
19-
rev: 0.6.2
19+
rev: '0.8.18'
2020
hooks:
2121
- id: uv-lock
2222
- repo: https://github.com/semgrep/pre-commit

docker/prod.Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ WORKDIR /opt/pycroft/app
1010
# Download or build wheels of requirements
1111
COPY --chown=pycroft:pycroft uv.lock pyproject.toml ./
1212
COPY --chown=pycroft:pycroft ./deps ./deps
13-
RUN uv export --locked --no-emit-project --no-dev --group prod > requirements.prod.txt \
13+
RUN uv export \
14+
--locked \
15+
--no-emit-project \
16+
--no-emit-package wtforms-widgets \
17+
--no-dev \
18+
--group prod \
19+
> requirements.prod.txt \
1420
&& /opt/pycroft/venv/bin/pip wheel --wheel-dir /opt/pycroft/wheel -r requirements.prod.txt \
15-
&& rm /opt/pycroft/wheel/wtforms_widgets*.whl \
1621
&& /opt/pycroft/venv/bin/pip wheel --wheel-dir /opt/pycroft/wheel --no-deps ./deps/wtforms-widgets
1722

1823
# Download JS/CSS dependencies

pycroft/model/ddl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(
5252
cascade: bool = False,
5353
**kw: t.Any,
5454
):
55-
super().__init__(element, cascade, **kw)
55+
super().__init__(element, cascade=cascade, **kw)
5656
self.element = element
5757
self.if_exists = if_exists
5858
self.cascade = cascade

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ dependencies = [
5757
"schwifty ~= 2024.9.0",
5858
"sentry-sdk[Flask] ~= 1.29.2",
5959
"simplejson ~= 3.11.1", # decimal serialization
60-
"SQLAlchemy >= 2.0.1",
60+
"SQLAlchemy >= 2.0.1, <= 2.0.37",
6161
"webargs ~= 8.3.0",
6262
"wrapt ~= 1.16.0",
6363
"WTForms ~= 2.3.3",

0 commit comments

Comments
 (0)