Skip to content

Commit ebee2a9

Browse files
authored
Add msgspec package (#114)
* Add msgspec package A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML. Required by Flask-Session * Use msgspec from trunk * CI: show pip list in a separate step * Update README.md
1 parent 0394ed5 commit ebee2a9

4 files changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/dockerimage.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v4.2.2
15+
1516
- name: Build the Docker image
1617
env:
1718
# @see https://testdriven.io/blog/faster-ci-builds-with-docker-cache/
@@ -21,4 +22,8 @@ jobs:
2122
docker build . \
2223
--cache-from $CACHE_IMAGE \
2324
--tag ${{ github.repository }}
25+
26+
- name: Show details
27+
run: |
2428
docker images
29+
docker run --rm ${{ github.repository }} pip list

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN apk update &&\
1616
apk add --no-cache --virtual .build-deps \
1717
build-base \
1818
gcc \
19+
git \
1920
libffi-dev \
2021
mariadb-dev &&\
2122
pip install --upgrade pip && pip install -r /tmp/requirements.txt \
@@ -25,6 +26,6 @@ RUN apk update &&\
2526

2627
# tag an image
2728
ARG GITHUB_SHA
28-
ENV GITHUB_SHA ${GITHUB_SHA}
29+
ENV GITHUB_SHA=${GITHUB_SHA}
2930

3031
RUN python -V; pip list; env

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,21 @@ Python 3.13.0
1919
2020
$ pip list
2121
Package Version
22-
-------------- ---------
22+
-------------- ------------------
2323
cffi 1.17.1
2424
gevent 24.11.1
2525
greenlet 3.1.1
26-
mysqlclient 2.2.5
26+
msgspec 0.18.6+30.g595c33c
27+
mysqlclient 2.2.6
2728
pip 24.3.1
2829
pycparser 2.22
29-
rcssmin 1.1.3
30+
rcssmin 1.2.0
3031
regex 2024.11.6
31-
setuptools 75.4.0
32+
setuptools 75.5.0
3233
zope.event 5.0
3334
zope.interface 7.1.1
3435
3536
$ docker images | head -n2
3637
REPOSITORY TAG IMAGE ID CREATED SIZE
37-
pigs-will-fly/docker-python latest c94c5a7075da 1 second ago 137MB
38+
pigs-will-fly/docker-python latest db014e358895 1 second ago 140MB
3839
```

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
cffi
22
gevent==24.11.1
3+
msgspec @ git+https://github.com/jcrist/msgspec@595c33c4a71c6d0c539b82233982a65819e240cf
34
mysqlclient==2.2.6
45
regex==2024.11.6
56
rcssmin==1.2.0

0 commit comments

Comments
 (0)