Skip to content

Commit

Permalink
feat: use Python 3.13 (#150)
Browse files Browse the repository at this point in the history
* feat: use Python 3.13

* chore: ignore SC2086
  • Loading branch information
cesarcoatl authored Oct 11, 2024
1 parent abe6a4c commit f3f0073
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 573 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pip-compile-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
uses: coatl-dev/workflows/.github/workflows/pip-compile-upgrade.yml@v4
with:
path: requirements
python-version: '3.12'
python-version: '3.13'
secrets:
gh-token: ${{ secrets.COATL_BOT_GH_TOKEN }}
gpg-sign-passphrase: ${{ secrets.COATL_BOT_GPG_PASSPHRASE }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/self-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: actions/setup-python@v5
id: setup-python
with:
python-version: '3.12'
python-version: '3.13'

- name: Install requirements
run: |
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Sleep
run: |
sleep 60
sleep 30
- name: Upload package
run: |
Expand Down
1 change: 1 addition & 0 deletions .hadolint.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ignored:
- DL3008
- SC2086
19 changes: 11 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12-slim
FROM python:3.13-slim

LABEL \
maintainer="César Román <cesar@coatl.dev>" \
Expand Down Expand Up @@ -33,12 +33,6 @@ RUN set -eux; \
# Copy requirements
COPY requirements /tmp/requirements/

# Install base deps
RUN set -eux; \
\
python -m pip install \
--requirement /tmp/requirements/base.txt

# Create virtualenv
RUN set -eux; \
\
Expand All @@ -49,9 +43,18 @@ ENV PATH=${VIRTUAL_ENV}/bin:${PATH}

# Install devpi
RUN set -eux; \
\
savedAptMark="$(apt-mark showmanual)"; \
apt-get update; \
apt-get install -y --no-install-recommends build-essential; \
\
python -m pip install \
--requirement /tmp/requirements/devpi.txt
--requirement /tmp/requirements/devpi.txt \
; \
apt-mark auto '.*' > /dev/null; \
[ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; \
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
rm -rf /var/lib/apt/lists/*

EXPOSE 3141
VOLUME /data
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Docker Repository on Quay](https://img.shields.io/badge/quay.io-red?logo=red-hat "Docker Repository on Quay")](https://quay.io/repository/coatldev/devpi)

Docker image with `devpi-client`, `devpi-server` and `devpi-web` pre-installed
using [`python:3.12-slim`].
using [`python:3.13-slim`].

## How to use this image

Expand Down Expand Up @@ -36,4 +36,4 @@ docker run \
quay.io/coatldev/devpi:latest
```

[`python:3.12-slim`]: https://github.com/docker-library/python/blob/HEAD/3.12/slim-bookworm/Dockerfile
[`python:3.13-slim`]: https://github.com/docker-library/python/blob/HEAD/3.13/slim-bookworm/Dockerfile
3 changes: 0 additions & 3 deletions requirements/base.in

This file was deleted.

20 changes: 0 additions & 20 deletions requirements/base.txt

This file was deleted.

601 changes: 64 additions & 537 deletions requirements/devpi.txt

Large diffs are not rendered by default.

0 comments on commit f3f0073

Please sign in to comment.