Skip to content

Commit fe44b6d

Browse files
authored
Merge pull request #200 from lsst-sqre/tickets/DM-52601
DM-52601: Prepare 4.0.0 release
2 parents 378a688 + 509b544 commit fe44b6d

File tree

12 files changed

+705
-653
lines changed

12 files changed

+705
-653
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "github-actions"
3+
- package-ecosystem: "docker"
44
directory: "/"
55
schedule:
66
interval: "weekly"
77

8-
- package-ecosystem: "docker"
8+
- package-ecosystem: "github-actions"
99
directory: "/"
1010
schedule:
1111
interval: "weekly"

.github/workflows/ci.yaml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
name: CI
22

3+
env:
4+
# Current supported uv version. The uv documentation recommends pinning
5+
# this. The version should match the version used in .pre-commit-config.yaml
6+
# and frozen in uv.lock. It is updated by make update-deps.
7+
UV_VERSION: "0.8.22"
8+
39
"on":
410
merge_group: {}
511
pull_request: {}
612
push:
713
branches-ignore:
814
# These should always correspond to pull requests, so ignore them for
915
# the push trigger and let them be triggered by the pull_request
10-
# trigger, avoiding running the workflow twice. This is a minor
16+
# trigger, avoiding running the workflow twice. This is a minor
1117
# optimization so there's no need to ensure this is comprehensive.
1218
- "dependabot/**"
1319
- "gh-readonly-queue/**"
1420
- "renovate/**"
1521
- "tickets/**"
1622
- "u/**"
17-
tags:
18-
- "*"
23+
release:
24+
types: [published]
1925

2026
jobs:
2127
test:
@@ -25,14 +31,16 @@ jobs:
2531
steps:
2632
- uses: actions/checkout@v5
2733

28-
- name: Install uv
29-
uses: astral-sh/setup-uv@v6
30-
3134
- name: Set up Python
3235
uses: actions/setup-python@v6
3336
with:
3437
python-version-file: ".python-version"
3538

39+
- name: Install uv
40+
uses: astral-sh/setup-uv@v6
41+
with:
42+
version: ${{ env.UV_VERSION }}
43+
3644
- name: Run tox
3745
run: uv run --only-group=tox tox run -e lint,typing,py,coverage-report
3846

@@ -42,14 +50,14 @@ jobs:
4250
timeout-minutes: 10
4351

4452
# Only do Docker builds of tagged releases and pull requests from ticket
45-
# branches. This will still trigger on pull requests from untrusted
53+
# branches. This will still trigger on pull requests from untrusted
4654
# repositories whose branch names match our tickets/* branch convention,
4755
# but in this case the build will fail with an error since the secret
4856
# won't be set.
4957
if: >
50-
github.event_name != 'merge_group'
51-
&& (startsWith(github.ref, 'refs/tags/')
52-
|| startsWith(github.head_ref, 'tickets/'))
58+
(github.event_name == 'release' && github.event.action == 'published')
59+
|| (github.event_name != 'merge_group'
60+
&& startsWith(github.head_ref, 'tickets/'))
5361
5462
steps:
5563
- uses: actions/checkout@v5

.github/workflows/periodic-ci.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55

66
name: Periodic CI
77

8+
env:
9+
# Current supported uv version. The uv documentation recommends pinning
10+
# this. The version should match the version used in .pre-commit-config.yaml
11+
# and frozen in uv.lock. It is updated by make update-deps.
12+
UV_VERSION: "0.8.22"
13+
814
"on":
915
schedule:
1016
- cron: "0 12 * * 1"
@@ -18,19 +24,21 @@ jobs:
1824
steps:
1925
- uses: actions/checkout@v5
2026

21-
- name: Install uv
22-
uses: astral-sh/setup-uv@v6
23-
2427
- name: Set up Python
2528
uses: actions/setup-python@v6
2629
with:
2730
python-version-file: ".python-version"
2831

32+
- name: Install uv
33+
uses: astral-sh/setup-uv@v6
34+
with:
35+
version: ${{ env.UV_VERSION }}
36+
2937
- name: Update dependencies
3038
run: make update-deps
3139

3240
- name: Run tox
33-
run: uv run --only-group=tox tox run -e lint,typing,py
41+
run: uv run --only-group=tox tox run -e lint,typing,py,coverage-report
3442

3543
- name: Report status
3644
if: failure()

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ repos:
88
- id: trailing-whitespace
99

1010
- repo: https://github.com/astral-sh/uv-pre-commit
11-
rev: 0.8.21
11+
rev: 0.8.22
1212
hooks:
1313
- id: uv-lock
1414

1515
- repo: https://github.com/astral-sh/ruff-pre-commit
1616
rev: v0.13.1
1717
hooks:
18-
- id: ruff
18+
- id: ruff-check
1919
args: [--fix, --exit-non-zero-on-fix]
2020
- id: ruff-format

CHANGELOG.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,29 @@ Find changes for the upcoming release in the project's [changelog.d directory](h
66

77
<!-- scriv-insert-here -->
88

9+
<a id='changelog-4.0.0'></a>
10+
## 4.0.0 (2025-09-24)
11+
12+
### Backwards-incompatible changes
13+
14+
- Remove HiPS list support. This has moved to [Repertoire](https://repertoire.lsst.io/).
15+
- Use service discovery via Repertoire to get the URL of the cutout service. As of this release, Repertoire must be enabled and deployed in the same Phalanx environment for datalinker to work.
16+
17+
### New features
18+
19+
- Add optional support for reporting exceptions to Sentry.
20+
921
<a id='changelog-3.3.0'></a>
1022
## 3.3.0 (2025-06-18)
1123

1224
### New features
1325

14-
- Change Config to load configuration from local file, to support more complex structures for the hips release data
15-
- Introduce v2 hips router. Add an additional hips dependency that builds a hips list per data release, given the data release lists and their paths via configuration
16-
- Add new tests for v2 and legacy hips list endpoint
26+
- Add new HiPS list routes for the v2 path layout, which provides a separate HiPS tree, with its own list, for each data release.
1727

1828
### Other changes
1929

2030
- Drop `Expires` from the reply headers of the `{links}` endpoint, since that header is effectively obsolete since HTTP/1.1 given the presence of `Cache-Control` with a `max-age` parameter.
2131

22-
- Upgraded dependencies and python version
23-
2432
<a id='changelog-3.2.0'></a>
2533
## 3.2.0 (2025-04-11)
2634

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# - Runs a non-root user.
1313
# - Sets up the entrypoint and port.
1414

15-
FROM python:3.13.7-slim-bookworm AS base-image
15+
FROM python:3.13.7-slim-trixie AS base-image
1616

1717
# Update system packages
1818
COPY scripts/install-base-packages.sh .
@@ -23,7 +23,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
2323
FROM base-image AS install-image
2424

2525
# Install uv.
26-
COPY --from=ghcr.io/astral-sh/uv:0.6.14 /uv /bin/uv
26+
COPY --from=ghcr.io/astral-sh/uv:0.8.22 /uv /bin/uv
2727

2828
# Install some additional packages required for building dependencies.
2929
COPY scripts/install-dependency-packages.sh .

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ update: update-deps init
2222
update-deps:
2323
uv lock --upgrade
2424
uv run --only-group=lint pre-commit autoupdate
25+
./scripts/update-uv-version.sh

changelog.d/20250922_134243_rra_DM_52490.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

changelog.d/20250923_151947_rra_DM_52601.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

changelog.d/20250923_171313_rra_DM_52601.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)