├── .gitignore ├── .gitlab-ci.yml ├── .trivyignore ├── EXAMPLES.md ├── LICENSE ├── README.md ├── builder.Dockerfile ├── distroless.Dockerfile ├── lib_linker.sh ├── scripts ├── build-builder.sh ├── build-distroless.sh ├── scan.sh ├── tests.sh └── vars.sh ├── stages ├── gitlab-templates.yaml ├── python-3.11-debian12.yaml ├── python-3.12-debian12.yaml └── python-3.13-debian12.yaml └── tests ├── fastapi ├── .dockerignore ├── Dockerfile ├── README.md ├── app.py ├── main.py ├── pyproject.toml ├── run.py └── uv.lock ├── google-cloud ├── .dockerignore ├── .python-version ├── Dockerfile ├── README.md ├── emulator.Dockerfile ├── main.py ├── pyproject.toml ├── test_google_cloud.sh └── uv.lock ├── gunicorn ├── .dockerignore ├── Dockerfile ├── README.md ├── app.py ├── poetry.lock ├── pyproject.toml └── run.py ├── hello-world ├── .dockerignore ├── Dockerfile └── hello.py ├── kubernetes ├── .dockerignore ├── Dockerfile ├── Pipfile ├── Pipfile.lock ├── app.py ├── k8s.yaml ├── kind.yaml └── test_kubernetes.sh ├── pandas ├── .dockerignore ├── Dockerfile ├── bamboo.py └── requirements.txt └── test_helper.sh /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode/ 2 | .idea/ 3 | -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | stages: 2 | - build-builder 3 | - build-distroless 4 | - basic-tests 5 | - http-tests 6 | - advanced-tests 7 | - scan 8 | - publish 9 | 10 | # ---------------------- Variables ---------------------- # 11 | 12 | variables: 13 | TRIVY_VERSION: "0.62.1" 14 | 15 | .python-3.11-debian12: 16 | variables: 17 | PYTHON_VERSION: "3.11.12" 18 | OS_VERSION: debian12 19 | DEBIAN_NAME: bookworm 20 | 21 | .python-3.12-debian12: 22 | variables: 23 | PYTHON_VERSION: "3.12.10" 24 | OS_VERSION: debian12 25 | DEBIAN_NAME: bookworm 26 | 27 | .python-3.13-debian12: 28 | variables: 29 | PYTHON_VERSION: "3.13.3" 30 | OS_VERSION: debian12 31 | DEBIAN_NAME: bookworm 32 | 33 | # --------------------- Build Stages -------------------- # 34 | 35 | include: 36 | - local: "stages/gitlab-templates.yaml" 37 | - local: "stages/python-3.11-debian12.yaml" 38 | - local: "stages/python-3.12-debian12.yaml" 39 | - local: "stages/python-3.13-debian12.yaml" 40 | -------------------------------------------------------------------------------- /.trivyignore: -------------------------------------------------------------------------------- 1 | # list CVEs here 2 | CVE-2025-4802 # reported May 2025, no fix yet 3 | -------------------------------------------------------------------------------- /EXAMPLES.md: -------------------------------------------------------------------------------- 1 | 2 | # Examples 3 | 4 | Naturally, not having a shell in distroless can mean changes are needed for docker images that worked on a debian or alpine base previously. Images that relied on an `entrypoint.sh` script in particular are going to suffer, as well as those that rely on calling an entry point that is `python some-args`. 5 | 6 | This repo therefore has a few examples - which it also uses as [tests](./tests/) - to illustrate how this can be made to work. See notes below for more detail on specific tests. 7 | 8 | --- 9 | 10 | ## [Hello World](tests/hello-world/) 11 | 12 | This is as simple as it gets - running the main line and printing back to console. It is used as a very basic test. 13 | 14 | Note the use of `CMD` as a list, not a string - this is important. The entrypoint in the base image is defaulted to `python`. 15 | 16 | Some standard practices are folded into the base image so it runs as non-root, has appropriate environment variables set - leading to a very simple Dockerfile in practice. 17 | 18 | --- 19 | 20 | ## [Flask / Gunicorn](tests/gunicorn/) 21 | 22 | Simple gunicorn/flask app. Note the use of `run.py` to deal with entrypoint. We cannot run gunicorn directly - a small wrapper script is used so that we can execute it through the normal `python` entrypoint. 23 | 24 | This was the first complex test. Running just the unicorn wsgi server without leaning into `pipenv` (no shell) or similar required some trickery, which is now incorporated into the base image - basically ensuring that the compiled C libraries are present. 25 | 26 | This repo was converted from an initial pipenv-based one to use poetry, as poetry is capable of supporting both python 3.9 and 3.10, whereas the Pipfile does not support this. This caused a particular issue for this test, as Flask depends on `importlib-metadata`, which is built into 3.10 but not in 3.9. Pipfile.lock file issues ensued! 27 | 28 | --- 29 | 30 | ## [Fast API](tests/fastapi/) 31 | 32 | Simple FastAPI app. As for the Flask/Gunicorn exampel above, note the use of `run.py` to deal with entrypoint. We cannot run `uvicorn` directly - a small wrapper script is used so that we can execute it through the normal `python` entrypoint. Its CLI syntax is a bit different to `gunicorn`. 33 | 34 | This example uses `pipenv` instead of `poetry` to show how that can be handled in a relatively straight-forward way. 35 | 36 | We are also using the `al3xos/python-builder` docker image as the base instead of `python:slim-bullseye` - in practice this just saves us needing to bother installing `pipenv` really. 37 | 38 | --- 39 | 40 | ## [Pandas](tests/pandas/) 41 | 42 | `pandas` dependency on `numpy` forces changes in the base image that the distroless one is built from - so a good test. A choice here was to make the required changes in distroless itself, or layer it in just for this image. I chose the latter in this case to demonstrate how this can be done (and also because I use `pandas` rarely myself, tbh). 43 | 44 | This example does not bother with a virtual environment, and also uses a `requirements.txt` instead - just to prove that works fine. It can be a common practice to generate the requirements.txt file in CI for greater confidence in the build or easier portability. 45 | 46 | The value of a virtual environment inside a container is debatable - but many of the other examples listed here use it for a consistency with local development processes. 47 | 48 | --- 49 | 50 | ## [Google Cloud](tests/google-cloud/) 51 | 52 | Here we're testing one of the packages that is most awkward in `alpine` ... `grpcio`. We do this by having a bit of python that uses some Google Cloud client libraries that interact with PubSub - creating a topic then immediately deleting it. 53 | 54 | To minimise the dependency on / need to access a GCP project, we make use of the PubSub emulator - this still gives the client libraries the workout we need. The `emulator.Dockerfile` builds this if needed locally. 55 | 56 | --- 57 | 58 | ## [Kubernetes](tests/kubernetes/) 59 | 60 | This one works the python kubernetes client libraries. I've included it as I personally use Python with k8s a lot, so knowing the image works for this important to me - although the test doesn't actually do much different to some of the ones above. 61 | 62 | In a similar vein to the Google Cloud one, we make use of [`kind`](https://kind.sigs.k8s.io/) to spin up a small local k8s cluster to connect to as a test, rather than relying on access to one locally (which is quite painful). 63 | 64 | The downside to this test existing in CI is that this process does take a while to execute! 65 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # distroless-python 2 | 3 | Creates a distroless container image with up-to-date python installed 4 | 5 | --- 6 | 7 | ## Usage 8 | 9 | No `latest` tag is offered. The intent is to be intentional (!) in your choice of version and when to upgrade. 10 | 11 | Usage examples can be found in the [`tests/`](tests/) directory. These are also described in [EXAMPLES.md](EXAMPLES.md). 12 | 13 | ### python/distroless 14 | 15 | In general, you're going to want this: 16 | 17 | ```dockerfile 18 | FROM al3xos/python-distroless:3.13-debian12 19 | ``` 20 | 21 | A debug image also exists: 22 | 23 | ```sh 24 | docker run --rm -it --entrypoint=sh al3xos/python-distroless:3.13-debian12-debug 25 | ``` 26 | 27 | There are variants for Python versions 3.11, 3.12 and Python 3.13, all based on Debian 12. They are built from the `python:3.x-slim-bookworm` image base. 28 | 29 | Both `linux/amd64` and `linux/arm64` variants are pushed. Your docker environment should pull down the one that matches your platform (they are built using `docker buildx`) 30 | 31 | ### python/builder 32 | 33 | For convenience, the `builder` image used to create the above is also published. This is **not** in general going to be useful in running python apps, but can be a convenient way to get a top layer that is `python:3.13-slim-bookworm` but with a non-root user and virtualenv/pipenv/poetry pre-installed - fewer stuff for you to sort in your Dockerfile! (Equivalent tags for 3.11 and 3.12 also exist). 34 | 35 | To use it: 36 | 37 | ```dockerfile 38 | FROM al3xos/python-builder:3.13-debian12 39 | ``` 40 | 41 | --- 42 | 43 | ## Available Versions 44 | 45 | This repo now only publishes Python 3.11, 3.12 and 3.13 images based on Debian 12 (bookworm). Whilst images for 3.9 and 3.10 do exist, they were last published on 24/11/2023 and will miss important security fixes - maintaining the tests for Bullseye was getting troublesome. 46 | 47 | --- 48 | 49 | ## Upgrading 50 | 51 | Python and OS version are set in `.gitlab-ci.yml`. This repo originates at [https://gitlab.com/alexos-dev/distroless-python](https://gitlab.com/alexos-dev/distroless-python) but is mirrored to Github [https://github.com/alexdmoss/distroless-python](https://github.com/alexdmoss/distroless-python) for convenience in sharing. Perhaps I'll convert to use Github actions at some point 🤷‍♂️ 52 | 53 | --- 54 | 55 | ## Rationale 56 | 57 | 1. Variants based on Debian (e.g. `python:*-slim-bullseye`) often have a number of vulnerabilities in them. Debian take their time responding and deal with many, and whilst this is quite often for very justifiable reasons, it is pretty toilsome work to reason about the risk and patch or suppress as needed. 58 | 2. Alpine would be my normal go-to here but that experience with Python is grim. I believe it all stems from its use of `musl` rather than `glibc` as its standard C library. Python wheels exist for the latter (so builds are much faster) and the two are not perfectly interoperable (i.e. there are potentially subtle bugs or performance differences). [This excellent blog post](https://pythonspeed.com/articles/alpine-docker-python/) elaborates on this. 59 | 3. The Google Distroless image for Python is marked as experimental and has been for a while, and tied to what Debian ships with - i.e. an old copy of python and dependent libraries. In other words it does not really solve for the problem statement in (1), and comes with several of its own. 60 | 61 | --- 62 | 63 | ## Implementation 64 | 65 | Following issues copying the Bazel-based approach used by [Google's distroless repo itself](https://github.com/GoogleContainerTools/distroless), I switched approach to a technique I understood better - multi-layer docker images. I took the distroless C image as a base and then used an earlier docker layer to bring in my choice of Python + its dependencies in. 66 | 67 | --- 68 | 69 | ## License 70 | 71 | These images are based on Google's distroless images, which are distributed under the Apache-2.0 license. This repo therefore uses the same. 72 | -------------------------------------------------------------------------------- /builder.Dockerfile: -------------------------------------------------------------------------------- 1 | ARG PYTHON_VERSION="3.13.3" 2 | ARG DEBIAN_NAME="bookworm" 3 | 4 | # several optimisations in python-slim images already, benefit from these 5 | FROM python:${PYTHON_VERSION}-slim-${DEBIAN_NAME} 6 | 7 | # ------------ setup standard non-root user for use downstream -------------- # 8 | 9 | ARG NONROOT_USER="monty" 10 | ARG NONROOT_GROUP="monty" 11 | 12 | RUN groupadd ${NONROOT_GROUP} \ 13 | && useradd -m ${NONROOT_USER} -g ${NONROOT_GROUP} 14 | 15 | USER ${NONROOT_USER} 16 | 17 | ENV PATH="/home/${NONROOT_USER}/.local/bin:${PATH}" 18 | 19 | # ------------ setup user environment with good python practices ------------ # 20 | 21 | USER ${NONROOT_USER} 22 | WORKDIR /home/${NONROOT_USER} 23 | 24 | ENV LANG=C.UTF-8 25 | ENV LC_ALL=C.UTF-8 26 | ENV PYTHONDONTWRITEBYTECODE=1 27 | ENV PYTHONFAULTHANDLER=1 28 | 29 | # ------------- pipenv/poetry for use elsewhere as builder image ------------ # 30 | 31 | RUN pip install --upgrade pip && \ 32 | pip install --no-warn-script-location virtualenv poetry pipenv 33 | 34 | # ----------- install latest uv for use elsewhere as builder image ---------- # 35 | 36 | COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ 37 | ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy 38 | ENV UV_PYTHON_DOWNLOADS=0 39 | -------------------------------------------------------------------------------- /distroless.Dockerfile: -------------------------------------------------------------------------------- 1 | ARG PYTHON_BUILDER_IMAGE 2 | ARG GOOGLE_DISTROLESS_BASE_IMAGE 3 | 4 | ## -------------- layer to give access to newer python + its dependencies ------------- ## 5 | 6 | FROM ${PYTHON_BUILDER_IMAGE} AS python-base 7 | 8 | # this script is dealing with the fact that with buildx we can't tell the path to these libs (it's not just TARGETARCH) 9 | COPY lib_linker.sh / 10 | RUN /lib_linker.sh 11 | 12 | ## ------------------------------- distroless base image ------------------------------ ## 13 | 14 | # build from distroless C or cc:debug, because lots of Python depends on C 15 | FROM ${GOOGLE_DISTROLESS_BASE_IMAGE} 16 | 17 | ARG PYTHON_MINOR 18 | ARG PYTHON_VERSION 19 | 20 | ## ------------------------- copy python itself from builder -------------------------- ## 21 | 22 | # this carries more risk than installing it fully, but makes the image a lot smaller 23 | COPY --from=python-base /usr/local/lib/ /usr/local/lib/ 24 | COPY --from=python-base /usr/local/bin/python /usr/local/bin/ 25 | COPY --from=python-base /etc/ld.so.cache /etc/ 26 | 27 | ## -------------------------- add common compiled libraries --------------------------- ## 28 | 29 | # see lib_linker.sh for how these tmp paths get generated 30 | COPY --from=python-base /tmp/python-libs/libz.so.1 /lib/x86_64-linux-gnu/ 31 | COPY --from=python-base /tmp/python-libs/libffi* /usr/lib/x86_64-linux-gnu/ 32 | COPY --from=python-base /tmp/python-libs/libexpat* /lib/x86_64-linux-gnu/ 33 | 34 | ## -------------------------------- non-root user setup ------------------------------- ## 35 | 36 | COPY --from=python-base /bin/echo /bin/ln /bin/rm /bin/sh /bin/ 37 | 38 | # quick validation that python still works whilst we have a shell 39 | # pipenv links python to python3 in venv 40 | RUN echo "monty:x:1000:monty" >> /etc/group \ 41 | && echo "monty:x:1001:" >> /etc/group \ 42 | && echo "monty:x:1000:1001::/home/monty:" >> /etc/passwd \ 43 | && python --version \ 44 | && ln -s /usr/local/bin/python /usr/local/bin/python3 \ 45 | && ln -s /usr/local/bin/python /usr/local/bin/python${PYTHON_MINOR} \ 46 | && ln -s /usr/local/bin/python /usr/local/bin/python${PYTHON_VERSION} 47 | 48 | # clear out our temporary shell now done with it 49 | RUN rm /bin/echo /bin/ln /bin/rm /bin/sh 50 | 51 | ## --------------------------- standardise execution env ----------------------------- ## 52 | 53 | # default to running as non-root, uid=1000 54 | USER monty 55 | 56 | # standardise on locale, don't generate .pyc, enable tracebacks on seg faults 57 | ENV LANG=C.UTF-8 58 | ENV LC_ALL=C.UTF-8 59 | ENV PYTHONDONTWRITEBYTECODE=1 60 | ENV PYTHONFAULTHANDLER=1 61 | 62 | ENTRYPOINT ["/usr/local/bin/python"] 63 | -------------------------------------------------------------------------------- /lib_linker.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/sh 2 | 3 | mkdir /tmp/python-libs/ 4 | 5 | if [ -d /lib/aarch64-linux-gnu ]; then 6 | ARCH=aarch64-linux-gnu 7 | else 8 | ARCH=x86_64-linux-gnu 9 | fi 10 | 11 | cp /lib/$ARCH/libz.so.1 /tmp/python-libs/ 12 | cp /lib/$ARCH/libexpat* /tmp/python-libs/ 13 | cp /usr/lib/$ARCH/libffi* /tmp/python-libs/ 14 | -------------------------------------------------------------------------------- /scripts/build-builder.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -eouE pipefail 3 | 4 | pushd "$(dirname "${BASH_SOURCE[0]}")/../" >/dev/null || exit 5 | 6 | # shellcheck disable=SC1091 7 | . ./scripts/vars.sh 8 | 9 | docker buildx create --name multiarch-builder --use --bootstrap --driver docker-container --platform linux/amd64,linux/arm64 || true 10 | 11 | if [[ "${1:-}" == "--publish" ]]; then 12 | PYTHON_BUILDER_IMAGE="${PYTHON_FINAL_BUILDER_IMAGE}" 13 | PYTHON_BUILDER_IMAGE_FULL="${PYTHON_FINAL_BUILDER_IMAGE_FULL}" 14 | TAG="" 15 | else 16 | PYTHON_BUILDER_IMAGE="${PYTHON_INTERMEDIATE_BUILDER_IMAGE}" 17 | PYTHON_BUILDER_IMAGE_FULL="${PYTHON_INTERMEDIATE_BUILDER_IMAGE_FULL}" 18 | TAG="-${CI_PIPELINE_ID}-intermediate" 19 | fi 20 | 21 | docker pull "${PYTHON_BUILDER_IMAGE}" || true 22 | 23 | docker buildx build \ 24 | --platform linux/amd64,linux/arm64 \ 25 | --build-arg PYTHON_VERSION="${PYTHON_VERSION}" \ 26 | --build-arg DEBIAN_NAME="${DEBIAN_NAME}" \ 27 | -t "${PYTHON_BUILDER_IMAGE}${TAG}" \ 28 | -t "${PYTHON_BUILDER_IMAGE_FULL}${TAG}" \ 29 | -f builder.Dockerfile . \ 30 | --push 31 | 32 | popd > /dev/null || exit 33 | -------------------------------------------------------------------------------- /scripts/build-distroless.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -eouE pipefail 4 | 5 | pushd "$(dirname "${BASH_SOURCE[0]}")/../" >/dev/null || exit 6 | 7 | # shellcheck disable=SC1091 8 | . ./scripts/vars.sh 9 | 10 | 11 | if [[ "${1:-}" == "--publish" ]]; then 12 | TAG="" 13 | PYTHON_BUILDER_IMAGE="${PYTHON_FINAL_BUILDER_IMAGE}" 14 | PYTHON_DISTROLESS_IMAGE="${PYTHON_FINAL_DISTROLESS_IMAGE}" 15 | PYTHON_DISTROLESS_IMAGE_FULL="${PYTHON_FINAL_DISTROLESS_IMAGE_FULL}" 16 | else 17 | TAG="-${CI_PIPELINE_ID}-intermediate" 18 | PYTHON_BUILDER_IMAGE="${PYTHON_INTERMEDIATE_BUILDER_IMAGE}${TAG}" 19 | PYTHON_DISTROLESS_IMAGE="${PYTHON_INTERMEDIATE_DISTROLESS_IMAGE}" 20 | PYTHON_DISTROLESS_IMAGE_FULL="${PYTHON_INTERMEDIATE_DISTROLESS_IMAGE_FULL}" 21 | fi 22 | 23 | docker buildx create --name multiarch-builder --use --bootstrap --driver docker-container --platform linux/amd64,linux/arm64 || true 24 | 25 | docker buildx build \ 26 | --platform linux/amd64,linux/arm64 \ 27 | --build-arg PYTHON_BUILDER_IMAGE="${PYTHON_BUILDER_IMAGE}" \ 28 | --build-arg GOOGLE_DISTROLESS_BASE_IMAGE="${GOOGLE_DISTROLESS_BASE_IMAGE}" \ 29 | --build-arg PYTHON_MINOR="${PYTHON_MINOR}" \ 30 | --build-arg PYTHON_VERSION="${PYTHON_VERSION}" \ 31 | -t "${PYTHON_DISTROLESS_IMAGE}${TAG}" \ 32 | -t "${PYTHON_DISTROLESS_IMAGE_FULL}${TAG}" \ 33 | -f distroless.Dockerfile . \ 34 | --push 35 | 36 | docker buildx build \ 37 | --platform linux/amd64,linux/arm64 \ 38 | --build-arg PYTHON_BUILDER_IMAGE="${PYTHON_BUILDER_IMAGE}" \ 39 | --build-arg GOOGLE_DISTROLESS_BASE_IMAGE="${GOOGLE_DISTROLESS_BASE_IMAGE}:debug" \ 40 | --build-arg PYTHON_MINOR="${PYTHON_MINOR}" \ 41 | --build-arg PYTHON_VERSION="${PYTHON_VERSION}" \ 42 | -t "${PYTHON_DISTROLESS_IMAGE}-debug${TAG}" \ 43 | -t "${PYTHON_DISTROLESS_IMAGE_FULL}-debug${TAG}" \ 44 | -f distroless.Dockerfile . \ 45 | --push 46 | 47 | popd > /dev/null || exit 48 | -------------------------------------------------------------------------------- /scripts/scan.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -oeuE pipefail 3 | 4 | pushd "$(dirname "${BASH_SOURCE[0]}")/../" >/dev/null || exit 5 | 6 | # shellcheck disable=SC1091 7 | . ./scripts/vars.sh 8 | 9 | if [[ ! $(which trivy) ]]; then 10 | wget https://github.com/aquasecurity/trivy/releases/download/v"${TRIVY_VERSION}"/trivy_"${TRIVY_VERSION}"_Linux-64bit.tar.gz && \ 11 | tar zxvf trivy_"${TRIVY_VERSION}"_Linux-64bit.tar.gz && \ 12 | mv trivy /usr/local/bin/trivy 13 | fi 14 | 15 | # not scanning python builder base image - should not be used outside CI 16 | IMAGES=" 17 | ${PYTHON_INTERMEDIATE_DISTROLESS_IMAGE}-${CI_PIPELINE_ID}-intermediate 18 | " 19 | 20 | for image in ${IMAGES}; do 21 | echo; echo "-> Trivy scan for image: ${image}"; echo 22 | trivy clean --scan-cache 23 | trivy image --exit-code 1 --scanners vuln --severity CRITICAL,HIGH --no-progress "${image}" 24 | done 25 | 26 | popd > /dev/null || exit 27 | -------------------------------------------------------------------------------- /scripts/tests.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # shellcheck disable=SC1091 3 | set -ouE pipefail 4 | 5 | pushd "$(dirname "${BASH_SOURCE[0]}")/../" >/dev/null || exit 6 | 7 | . ./scripts/vars.sh "${@:-}" 8 | . ./tests/test_helper.sh 9 | 10 | failures=0 11 | test_run=0 12 | 13 | while [[ "$#" -gt 0 ]]; do 14 | case $1 in 15 | -t|--target) target="$2"; shift ;; 16 | -d|--debug) debug=1; shift ;; 17 | *) echo "Unknown parameter passed: $1"; exit 1 ;; 18 | esac 19 | shift 20 | done 21 | 22 | if [[ -z ${target:-} ]]; then 23 | target=ALL 24 | fi 25 | 26 | if [[ ${debug:-} == 1 ]]; then 27 | _console_msg "Running tests against the DEBUG images" INFO 28 | fi 29 | 30 | # ---------------------------------------------------------- 31 | 32 | if [[ ${target} == "version" ]] || [[ ${target} == "ALL" ]]; then 33 | test_run=1 34 | test_docker_output "${PYTHON_INTERMEDIATE_DISTROLESS_IMAGE}-${CI_PIPELINE_ID}-intermediate" "Python ${PYTHON_VERSION}" "--version" 35 | fi 36 | 37 | if [[ ${target} == "hello-world" ]] || [[ ${target} == "ALL" ]]; then 38 | test_run=1 39 | IMAGE_NAME="${TEST_IMAGE_BASE}-hello-world:${PYTHON_MINOR}-${OS_VERSION}-${DEBIAN_NAME}-${CI_PIPELINE_ID}" 40 | build_test_image "${IMAGE_NAME}" "hello-world" 41 | test_docker_output "${IMAGE_NAME}" "hello there" 42 | fi 43 | 44 | if [[ ${target} == "gunicorn" ]] || [[ ${target} == "ALL" ]]; then 45 | test_run=1 46 | IMAGE_NAME="${TEST_IMAGE_BASE}-gunicorn:${PYTHON_MINOR}-${OS_VERSION}-${DEBIAN_NAME}-${CI_PIPELINE_ID}" 47 | build_test_image "${IMAGE_NAME}" "gunicorn" 48 | test_docker_http "${IMAGE_NAME}" "flask/gunicorn" 49 | fi 50 | 51 | if [[ ${target} == "fastapi" ]] || [[ ${target} == "ALL" ]]; then 52 | test_run=1 53 | IMAGE_NAME="${TEST_IMAGE_BASE}-fastapi:${PYTHON_MINOR}-${OS_VERSION}-${CI_PIPELINE_ID}" 54 | build_test_image "${IMAGE_NAME}" "fastapi" 55 | test_docker_http "${IMAGE_NAME}" "I am alive" 56 | fi 57 | 58 | if [[ ${target} == "pandas" ]] || [[ ${target} == "ALL" ]]; then 59 | test_run=1 60 | IMAGE_NAME="${TEST_IMAGE_BASE}-pandas:${PYTHON_MINOR}-${OS_VERSION}-${DEBIAN_NAME}-${CI_PIPELINE_ID}" 61 | build_test_image "${IMAGE_NAME}" "pandas" 62 | test_docker_output "${IMAGE_NAME}" "The Mainframe says: 2" 63 | fi 64 | 65 | if [[ ${target} == "google-cloud" ]] || [[ ${target} == "ALL" ]]; then 66 | test_run=1 67 | . ./tests/google-cloud/test_google_cloud.sh 68 | IMAGE_NAME="${TEST_IMAGE_BASE}-google-cloud:${PYTHON_MINOR}-${OS_VERSION}-${DEBIAN_NAME}-${CI_PIPELINE_ID}" 69 | build_test_image "${IMAGE_NAME}" "google-cloud" 70 | test_google_cloud_image "${IMAGE_NAME}" "Topic \[projects/made-up-project/topics/alexos-distroless-python-test\]" 71 | fi 72 | 73 | if [[ ${target} == "kubernetes" ]] || [[ ${target} == "ALL" ]]; then 74 | test_run=1 75 | . ./tests/kubernetes/test_kubernetes.sh 76 | IMAGE_NAME="${TEST_IMAGE_BASE}-kubernetes:${PYTHON_MINOR}-${OS_VERSION}-${DEBIAN_NAME}-${CI_PIPELINE_ID}" 77 | build_test_image "${IMAGE_NAME}" "kubernetes" 78 | test_kubernetes_image "${IMAGE_NAME}" "Event: MODIFIED distroless-python-test-${PYTHON_MINOR}-${OS_VERSION}" 79 | fi 80 | 81 | 82 | # ---------------------------------------------------------- 83 | 84 | if [[ $failures -gt 0 ]]; then 85 | _console_msg "Oh no, ${failures} tests FAILED. See output above for more detail" ERROR 86 | exit 1 87 | elif [[ $test_run == 1 ]]; then 88 | _console_msg "Success - all tests PASSED" INFO 89 | else 90 | _console_msg "No tests ran - did you specify a valid test with the --target switch?" WARN 91 | fi 92 | 93 | popd > /dev/null || exit 94 | -------------------------------------------------------------------------------- /scripts/vars.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then 4 | echo "-> [ERROR] This script should be sourced, not run directly" 5 | exit 1 6 | fi 7 | 8 | if [[ -z ${PYTHON_VERSION:-} ]]; then 9 | echo "-> [ERROR] PYTHON_VERSION not set - aborting" 10 | exit 1 11 | fi 12 | 13 | if [[ -z ${OS_VERSION:-} ]]; then 14 | echo "-> [ERROR] OS_VERSION not set - aborting" 15 | exit 1 16 | fi 17 | 18 | if [[ -z ${DEBIAN_NAME:-} ]]; then 19 | echo "-> [ERROR] DEBIAN_NAME not set - aborting" 20 | exit 1 21 | fi 22 | 23 | INTERMEDIATE_REGISTRY_BASE="al3xos" 24 | RC="" 25 | if [[ ${CI_SERVER:-} == "yes" ]]; then 26 | INTERMEDIATE_REGISTRY_BASE="registry.gitlab.com/al3xos/distroless-python" 27 | if [[ $CI_COMMIT_BRANCH != "main" ]]; then 28 | RC="-rc" 29 | fi 30 | elif [[ $(git name-rev --name-only HEAD) != "main" ]]; then 31 | RC="-rc" 32 | fi 33 | 34 | # use the C (glibc) distroless - required by common packages like grpcio + numpy 35 | GOOGLE_DISTROLESS_BASE_IMAGE=gcr.io/distroless/cc-${OS_VERSION} 36 | # Cut patch version from semver Python version for streamlined image tags: 3.12.0 -> 3.12 37 | PYTHON_MINOR=$(echo $PYTHON_VERSION | sed -e "s#^\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)#\1.\2#") 38 | 39 | TEST_IMAGE_BASE=registry.gitlab.com/al3xos/distroless-python/python-distroless-tests${RC} 40 | 41 | if [[ ${CI_SERVER:-} == "yes" ]]; then 42 | if [[ $CI_COMMIT_BRANCH != "main" ]]; then 43 | RC="-rc" 44 | fi 45 | elif [[ $(git name-rev --name-only HEAD) != "main" ]]; then 46 | RC="-rc" 47 | fi 48 | PYTHON_INTERMEDIATE_BUILDER_IMAGE=${INTERMEDIATE_REGISTRY_BASE}/python-builder:${PYTHON_MINOR}-${OS_VERSION}${RC} 49 | PYTHON_INTERMEDIATE_BUILDER_IMAGE_FULL=${INTERMEDIATE_REGISTRY_BASE}/python-builder:${PYTHON_VERSION}-${OS_VERSION}${RC} 50 | PYTHON_INTERMEDIATE_DISTROLESS_IMAGE=${INTERMEDIATE_REGISTRY_BASE}/python-distroless:${PYTHON_MINOR}-${OS_VERSION}${RC} 51 | PYTHON_INTERMEDIATE_DISTROLESS_IMAGE_FULL=${INTERMEDIATE_REGISTRY_BASE}/python-distroless:${PYTHON_VERSION}-${OS_VERSION}${RC} 52 | 53 | PYTHON_FINAL_BUILDER_IMAGE=al3xos/python-builder:${PYTHON_MINOR}-${OS_VERSION}${RC} 54 | PYTHON_FINAL_BUILDER_IMAGE_FULL=al3xos/python-builder:${PYTHON_VERSION}-${OS_VERSION}${RC} 55 | PYTHON_FINAL_DISTROLESS_IMAGE=al3xos/python-distroless:${PYTHON_MINOR}-${OS_VERSION}${RC} 56 | PYTHON_FINAL_DISTROLESS_IMAGE_FULL=al3xos/python-distroless:${PYTHON_VERSION}-${OS_VERSION}${RC} 57 | 58 | 59 | if [[ $(echo "${@:-}" | grep -c -- '--debug') -gt 0 ]]; then 60 | PYTHON_INTERMEDIATE_DISTROLESS_IMAGE=${PYTHON_INTERMEDIATE_DISTROLESS_IMAGE}-debug 61 | PYTHON_INTERMEDIATE_DISTROLESS_IMAGE_FULL=${PYTHON_INTERMEDIATE_DISTROLESS_IMAGE_FULL}-debug 62 | PYTHON_FINAL_DISTROLESS_IMAGE=${PYTHON_FINAL_DISTROLESS_IMAGE}-debug 63 | PYTHON_FINAL_DISTROLESS_IMAGE_FULL=${PYTHON_FINAL_DISTROLESS_IMAGE_FULL}-debug 64 | TEST_IMAGE_BASE=${TEST_IMAGE_BASE}-debug 65 | fi 66 | 67 | if [[ -z ${CI_PIPELINE_ID:-} ]]; then 68 | CI_PIPELINE_ID=non-ci-$(git rev-parse --short HEAD) 69 | fi 70 | 71 | export PYTHON_VERSION 72 | export PYTHON_MINOR 73 | export OS_VERSION 74 | export PYTHON_INTERMEDIATE_BUILDER_IMAGE 75 | export PYTHON_INTERMEDIATE_BUILDER_IMAGE_FULL 76 | export PYTHON_INTERMEDIATE_DISTROLESS_IMAGE 77 | export PYTHON_INTERMEDIATE_DISTROLESS_IMAGE_FULL 78 | export PYTHON_FINAL_BUILDER_IMAGE 79 | export PYTHON_FINAL_BUILDER_IMAGE_FULL 80 | export PYTHON_FINAL_DISTROLESS_IMAGE 81 | export PYTHON_FINAL_DISTROLESS_IMAGE_FULL 82 | export GOOGLE_DISTROLESS_BASE_IMAGE 83 | export TEST_IMAGE_BASE 84 | export CI_PIPELINE_ID 85 | -------------------------------------------------------------------------------- /stages/gitlab-templates.yaml: -------------------------------------------------------------------------------- 1 | # ---------------------- Templates ---------------------- # 2 | 3 | .build: 4 | image: mosstech/gcloud-and-docker:424.0.0 5 | services: 6 | - docker:dind 7 | variables: 8 | DOCKER_HOST: tcp://docker:2375/ 9 | DOCKER_DRIVER: overlay2 10 | 11 | .docker-login: 12 | before_script: 13 | - until docker info >/dev/null; do sleep 1; echo "Waiting for docker startup"; done 14 | - echo "${DOCKER_CREDS}" | docker login --username al3xos --password-stdin 15 | 16 | .gitlab-login: 17 | before_script: 18 | - until docker info >/dev/null; do sleep 1; echo "Waiting for docker startup"; done 19 | - echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin 20 | 21 | .test: 22 | image: mosstech/gcloud-and-docker:424.0.0 23 | services: 24 | - docker:dind 25 | variables: 26 | DOCKER_HOST: tcp://docker:2375/ 27 | DOCKER_DRIVER: overlay2 28 | before_script: 29 | - until docker info >/dev/null; do sleep 1; echo "Waiting for docker startup"; done 30 | 31 | # ----------------- Stage Templates -------------------- # 32 | 33 | .build-builder: 34 | stage: build-builder 35 | extends: 36 | - .build 37 | - .gitlab-login 38 | script: 39 | - ./scripts/build-builder.sh 40 | 41 | .build-distroless: 42 | stage: build-distroless 43 | extends: 44 | - .build 45 | - .gitlab-login 46 | script: 47 | - ./scripts/build-distroless.sh 48 | 49 | .basic-tests: 50 | stage: basic-tests 51 | extends: 52 | - .test 53 | script: 54 | - ./scripts/tests.sh --target version 55 | - ./scripts/tests.sh --target version --debug 56 | - ./scripts/tests.sh --target hello-world 57 | - ./scripts/tests.sh --target hello-world --debug 58 | 59 | .http-tests: 60 | stage: http-tests 61 | extends: 62 | - .test 63 | script: 64 | - ./scripts/tests.sh --target gunicorn 65 | - ./scripts/tests.sh --target fastapi 66 | 67 | .advanced-tests: 68 | stage: advanced-tests 69 | extends: 70 | - .test 71 | - .gitlab-login 72 | script: 73 | - ./scripts/tests.sh --target pandas 74 | - ./scripts/tests.sh --target google-cloud 75 | - ./scripts/tests.sh --target kubernetes 76 | 77 | .scan: 78 | stage: scan 79 | extends: 80 | - .build 81 | - .gitlab-login 82 | script: 83 | - ./scripts/scan.sh 84 | 85 | .publish: 86 | stage: publish 87 | extends: 88 | - .build 89 | - .docker-login 90 | script: 91 | - ./scripts/build-builder.sh --publish 92 | - ./scripts/build-distroless.sh --publish 93 | only: 94 | - main 95 | -------------------------------------------------------------------------------- /stages/python-3.11-debian12.yaml: -------------------------------------------------------------------------------- 1 | build-builder-python-3.11-debian12: 2 | extends: 3 | - .build-builder 4 | - .python-3.11-debian12 5 | 6 | build-distroless-python-3.11-debian12: 7 | extends: 8 | - .build-distroless 9 | - .python-3.11-debian12 10 | needs: 11 | - build-builder-python-3.11-debian12 12 | 13 | basic-tests-python-3.11-debian12: 14 | extends: 15 | - .basic-tests 16 | - .python-3.11-debian12 17 | needs: 18 | - build-distroless-python-3.11-debian12 19 | 20 | http-tests-python-3.11-debian12: 21 | extends: 22 | - .http-tests 23 | - .python-3.11-debian12 24 | needs: 25 | - build-distroless-python-3.11-debian12 26 | 27 | advanced-tests-python-3.11-debian12: 28 | extends: 29 | - .advanced-tests 30 | - .python-3.11-debian12 31 | needs: 32 | - build-distroless-python-3.11-debian12 33 | 34 | scan-python-3.11-debian12: 35 | extends: 36 | - .scan 37 | - .python-3.11-debian12 38 | needs: 39 | - build-distroless-python-3.11-debian12 40 | 41 | publish-python-3.11-debian12: 42 | extends: 43 | - .publish 44 | - .python-3.11-debian12 45 | needs: 46 | - basic-tests-python-3.11-debian12 47 | - http-tests-python-3.11-debian12 48 | - advanced-tests-python-3.11-debian12 49 | - scan-python-3.11-debian12 50 | -------------------------------------------------------------------------------- /stages/python-3.12-debian12.yaml: -------------------------------------------------------------------------------- 1 | build-builder-python-3.12-debian12: 2 | extends: 3 | - .build-builder 4 | - .python-3.12-debian12 5 | 6 | build-distroless-python-3.12-debian12: 7 | extends: 8 | - .build-distroless 9 | - .python-3.12-debian12 10 | needs: 11 | - build-builder-python-3.12-debian12 12 | 13 | basic-tests-python-3.12-debian12: 14 | extends: 15 | - .basic-tests 16 | - .python-3.12-debian12 17 | needs: 18 | - build-distroless-python-3.12-debian12 19 | 20 | http-tests-python-3.12-debian12: 21 | extends: 22 | - .http-tests 23 | - .python-3.12-debian12 24 | needs: 25 | - build-distroless-python-3.12-debian12 26 | 27 | advanced-tests-python-3.12-debian12: 28 | extends: 29 | - .advanced-tests 30 | - .python-3.12-debian12 31 | needs: 32 | - build-distroless-python-3.12-debian12 33 | 34 | scan-python-3.12-debian12: 35 | extends: 36 | - .scan 37 | - .python-3.12-debian12 38 | needs: 39 | - build-distroless-python-3.12-debian12 40 | 41 | publish-python-3.12-debian12: 42 | extends: 43 | - .publish 44 | - .python-3.12-debian12 45 | needs: 46 | - basic-tests-python-3.12-debian12 47 | - http-tests-python-3.12-debian12 48 | - advanced-tests-python-3.12-debian12 49 | - scan-python-3.12-debian12 50 | -------------------------------------------------------------------------------- /stages/python-3.13-debian12.yaml: -------------------------------------------------------------------------------- 1 | build-builder-python-3.13-debian12: 2 | extends: 3 | - .build-builder 4 | - .python-3.13-debian12 5 | 6 | build-distroless-python-3.13-debian12: 7 | extends: 8 | - .build-distroless 9 | - .python-3.13-debian12 10 | needs: 11 | - build-builder-python-3.13-debian12 12 | 13 | basic-tests-python-3.13-debian12: 14 | extends: 15 | - .basic-tests 16 | - .python-3.13-debian12 17 | needs: 18 | - build-distroless-python-3.13-debian12 19 | 20 | http-tests-python-3.13-debian12: 21 | extends: 22 | - .http-tests 23 | - .python-3.13-debian12 24 | needs: 25 | - build-distroless-python-3.13-debian12 26 | 27 | advanced-tests-python-3.13-debian12: 28 | extends: 29 | - .advanced-tests 30 | - .python-3.13-debian12 31 | needs: 32 | - build-distroless-python-3.13-debian12 33 | 34 | scan-python-3.13-debian12: 35 | extends: 36 | - .scan 37 | - .python-3.13-debian12 38 | needs: 39 | - build-distroless-python-3.13-debian12 40 | 41 | publish-python-3.13-debian12: 42 | extends: 43 | - .publish 44 | - .python-3.13-debian12 45 | needs: 46 | - basic-tests-python-3.13-debian12 47 | - http-tests-python-3.13-debian12 48 | - advanced-tests-python-3.13-debian12 49 | - scan-python-3.13-debian12 50 | -------------------------------------------------------------------------------- /tests/fastapi/.dockerignore: -------------------------------------------------------------------------------- 1 | .dockerignore 2 | Dockerfile 3 | -------------------------------------------------------------------------------- /tests/fastapi/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG PYTHON_BUILDER_IMAGE 2 | ARG PYTHON_DISTROLESS_IMAGE 3 | 4 | FROM ${PYTHON_BUILDER_IMAGE} AS builder 5 | 6 | WORKDIR /app 7 | COPY pyproject.toml uv.lock /app/ 8 | RUN --mount=type=cache,target=/root/.cache/uv \ 9 | --mount=type=bind,source=uv.lock,target=uv.lock \ 10 | --mount=type=bind,source=pyproject.toml,target=pyproject.toml \ 11 | uv sync --locked --no-install-project --no-dev 12 | 13 | # ------------------------------------------------------------------ 14 | 15 | FROM ${PYTHON_DISTROLESS_IMAGE} 16 | 17 | ARG PYTHON_VERSION 18 | 19 | COPY --chown=1000:1000 . /app 20 | COPY --chown=1000:1000 --from=builder /app/.venv /app/.venv 21 | ENV PATH="/app/.venv/bin:$PATH" 22 | ENV WEB_CONCURRENCY=1 23 | 24 | WORKDIR /app 25 | ENTRYPOINT ["python", "run.py"] 26 | -------------------------------------------------------------------------------- /tests/fastapi/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexdmoss/distroless-python/91c34bb02ac441f01258acfa9f2f157fc8712086/tests/fastapi/README.md -------------------------------------------------------------------------------- /tests/fastapi/app.py: -------------------------------------------------------------------------------- 1 | from fastapi import FastAPI 2 | from fastapi.responses import JSONResponse 3 | 4 | 5 | app = FastAPI() 6 | 7 | @app.on_event("startup") 8 | async def startup_event(): 9 | print("Starting FastAPI app") 10 | 11 | @app.get("/") 12 | async def root(): 13 | return JSONResponse("I am alive") 14 | -------------------------------------------------------------------------------- /tests/fastapi/main.py: -------------------------------------------------------------------------------- 1 | def main(): 2 | print("Hello from fastapi!") 3 | 4 | 5 | if __name__ == "__main__": 6 | main() 7 | -------------------------------------------------------------------------------- /tests/fastapi/pyproject.toml: -------------------------------------------------------------------------------- 1 | [project] 2 | name = "test-fastapi" 3 | version = "0.1.0" 4 | description = "Simple test of FastAPI app with uv" 5 | readme = "README.md" 6 | requires-python = ">=3.11" 7 | dependencies = [ 8 | "fastapi[standard]>=0.115.12", 9 | "httpx>=0.28.1", 10 | "pydantic>=2.11.4", 11 | "typing-extensions>=4.13.2", 12 | "uvicorn>=0.34.2", 13 | ] 14 | -------------------------------------------------------------------------------- /tests/fastapi/run.py: -------------------------------------------------------------------------------- 1 | import sys 2 | from uvicorn import run 3 | 4 | if __name__ == '__main__': 5 | print('Uvicorn is starting up ...') 6 | sys.exit(run("app:app", host="0.0.0.0", port=5000, reload=False, access_log=True)) 7 | -------------------------------------------------------------------------------- /tests/google-cloud/.dockerignore: -------------------------------------------------------------------------------- 1 | .dockerignore 2 | *.md 3 | *.sh 4 | *Dockerfile 5 | -------------------------------------------------------------------------------- /tests/google-cloud/.python-version: -------------------------------------------------------------------------------- 1 | 3.12 2 | -------------------------------------------------------------------------------- /tests/google-cloud/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG PYTHON_BUILDER_IMAGE 2 | ARG PYTHON_DISTROLESS_IMAGE 3 | 4 | FROM ${PYTHON_BUILDER_IMAGE} AS builder 5 | 6 | WORKDIR /app 7 | COPY pyproject.toml uv.lock /app/ 8 | RUN --mount=type=cache,target=/root/.cache/uv \ 9 | --mount=type=bind,source=uv.lock,target=uv.lock \ 10 | --mount=type=bind,source=pyproject.toml,target=pyproject.toml \ 11 | uv sync --locked --no-install-project --no-dev 12 | 13 | # ------------------------------------------------------------------ 14 | 15 | FROM ${PYTHON_DISTROLESS_IMAGE} 16 | 17 | ARG PYTHON_VERSION 18 | 19 | COPY --chown=1000:1000 . /app 20 | COPY --chown=1000:1000 --from=builder /app/.venv /app/.venv 21 | ENV PATH="/app/.venv/bin:$PATH" 22 | ENV WEB_CONCURRENCY=1 23 | 24 | WORKDIR /app 25 | ENTRYPOINT ["python", "main.py"] 26 | -------------------------------------------------------------------------------- /tests/google-cloud/README.md: -------------------------------------------------------------------------------- 1 | # google-cloud test 2 | 3 | Creates and immediately deletes a PubSub topic `distroless-python-test` in the specified project. To minimise external dependencies, this done using the [Google PubSub Emulator](https://cloud.google.com/pubsub/docs/emulator), which still requires all the requisite Python client libraries to be loaded. 4 | 5 | To run locally outside of Docker: 6 | 7 | ```sh 8 | gcloud beta emulators pubsub start --project=made-up-project --host-port=0.0.0.0:8085 --data-dir=/tmp 9 | export PUBSUB_EMULATOR_HOST=[::1]:8085 10 | pipenv run python main.py 11 | ``` 12 | 13 | To run locally in Docker (equivalent to what `tests.sh` does): 14 | 15 | ```sh 16 | # you build this instead using emulator.Dockerfile if you prefer 17 | docker run --rm --name=pubsub-emulator -d -p 8085:8085 mosstech/pubsub-emulator:latest 18 | 19 | docker run --rm -e=PUBSUB_EMULATOR_HOST=pubsub-emulator:8085 "${image_tag}" 20 | ``` 21 | -------------------------------------------------------------------------------- /tests/google-cloud/emulator.Dockerfile: -------------------------------------------------------------------------------- 1 | FROM google/cloud-sdk:523.0.0-alpine 2 | 3 | RUN apk --no-cache update && \ 4 | apk --no-cache add openjdk21-jre && \ 5 | rm -rf /var/cache/apk/* 6 | 7 | RUN gcloud components install --quiet beta pubsub-emulator && \ 8 | gcloud components update 9 | 10 | EXPOSE 8085 11 | 12 | VOLUME /data 13 | 14 | ENTRYPOINT ["gcloud", "beta", "emulators", "pubsub"] 15 | CMD ["start", "--host-port=0.0.0.0:8085", "--data-dir=/data"] 16 | -------------------------------------------------------------------------------- /tests/google-cloud/main.py: -------------------------------------------------------------------------------- 1 | from google.cloud import pubsub_v1 2 | from google.api_core.exceptions import AlreadyExists 3 | 4 | 5 | def main(): 6 | 7 | print("Creating pubsub client ...") 8 | 9 | project_id = "made-up-project" 10 | topic_id = "alexos-distroless-python-test" 11 | 12 | publisher = pubsub_v1.PublisherClient() 13 | 14 | print("Client created - creating topic ...") 15 | 16 | topic_path = publisher.topic_path(project_id, topic_id) 17 | 18 | try: 19 | topic = publisher.create_topic(request={"name": topic_path}) 20 | print(f"Created Topic [{topic.name}]") 21 | except AlreadyExists: 22 | print(f"Already Exists: Topic [{topic_path}]") 23 | 24 | publisher.delete_topic(request={"topic": topic_path}) 25 | print(f"Deleted topic [{topic_path}]") 26 | 27 | 28 | if __name__ == "__main__": 29 | main() 30 | -------------------------------------------------------------------------------- /tests/google-cloud/pyproject.toml: -------------------------------------------------------------------------------- 1 | [project] 2 | name = "google-cloud" 3 | version = "0.1.0" 4 | description = "Simple test of google-cloud-pubsub app with uv" 5 | readme = "README.md" 6 | requires-python = ">=3.11" 7 | dependencies = [ 8 | "google-api-core>=2.24.2", 9 | "google-api-python-client>=2.169.0", 10 | "google-auth>=2.40.2", 11 | "google-cloud-pubsub>=2.29.0", 12 | ] 13 | -------------------------------------------------------------------------------- /tests/google-cloud/test_google_cloud.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -ouE pipefail 3 | 4 | if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then 5 | echo "-> [ERROR] This script should be sourced, not run directly" 6 | exit 1 7 | fi 8 | 9 | 10 | function test_google_cloud_image() { 11 | local image_tag=$1 12 | local assertion=$2 13 | 14 | _console_msg "Creating docker network ..." INFO 15 | 16 | docker network create distroless || true 17 | 18 | _console_msg "Starting PubSub Emulator ..." INFO 19 | 20 | docker run --rm --name=pubsub-emulator --network=distroless -d -p 127.0.0.1:8085:8085/tcp al3xos/pubsub-emulator:latest 21 | 22 | _console_msg "Giving time for emulator to start ..." INFO 23 | sleep 10 24 | 25 | _console_msg "Testing image output for [${image_tag}]" INFO 26 | 27 | output=$(docker run --rm -e=PUBSUB_EMULATOR_HOST=pubsub-emulator:8085 --network=distroless "${image_tag}") 28 | 29 | docker rm -f pubsub-emulator >/dev/null 2>&1 || true 30 | 31 | if [[ $(echo "${output}" | grep -c "${assertion}") -eq 0 ]]; then 32 | _console_msg "Test failed: [${output}] did not contain [${assertion}]" ERROR 33 | failures=$((failures + 1)) 34 | else 35 | _console_msg "Test passed: Output [${output}]" INFO 36 | fi 37 | } 38 | -------------------------------------------------------------------------------- /tests/google-cloud/uv.lock: -------------------------------------------------------------------------------- 1 | version = 1 2 | revision = 2 3 | requires-python = ">=3.11" 4 | resolution-markers = [ 5 | "python_full_version >= '3.13'", 6 | "python_full_version < '3.13'", 7 | ] 8 | 9 | [[package]] 10 | name = "cachetools" 11 | version = "5.5.2" 12 | source = { registry = "https://pypi.org/simple" } 13 | sdist = { url = "https://files.pythonhosted.org/packages/6c/81/3747dad6b14fa2cf53fcf10548cf5aea6913e96fab41a3c198676f8948a5/cachetools-5.5.2.tar.gz", hash = "sha256:1a661caa9175d26759571b2e19580f9d6393969e5dfca11fdb1f947a23e640d4", size = 28380, upload-time = "2025-02-20T21:01:19.524Z" } 14 | wheels = [ 15 | { url = "https://files.pythonhosted.org/packages/72/76/20fa66124dbe6be5cafeb312ece67de6b61dd91a0247d1ea13db4ebb33c2/cachetools-5.5.2-py3-none-any.whl", hash = "sha256:d26a22bcc62eb95c3beabd9f1ee5e820d3d2704fe2967cbe350e20c8ffcd3f0a", size = 10080, upload-time = "2025-02-20T21:01:16.647Z" }, 16 | ] 17 | 18 | [[package]] 19 | name = "certifi" 20 | version = "2025.4.26" 21 | source = { registry = "https://pypi.org/simple" } 22 | sdist = { url = "https://files.pythonhosted.org/packages/e8/9e/c05b3920a3b7d20d3d3310465f50348e5b3694f4f88c6daf736eef3024c4/certifi-2025.4.26.tar.gz", hash = "sha256:0a816057ea3cdefcef70270d2c515e4506bbc954f417fa5ade2021213bb8f0c6", size = 160705, upload-time = "2025-04-26T02:12:29.51Z" } 23 | wheels = [ 24 | { url = "https://files.pythonhosted.org/packages/4a/7e/3db2bd1b1f9e95f7cddca6d6e75e2f2bd9f51b1246e546d88addca0106bd/certifi-2025.4.26-py3-none-any.whl", hash = "sha256:30350364dfe371162649852c63336a15c70c6510c2ad5015b21c2345311805f3", size = 159618, upload-time = "2025-04-26T02:12:27.662Z" }, 25 | ] 26 | 27 | [[package]] 28 | name = "charset-normalizer" 29 | version = "3.4.2" 30 | source = { registry = "https://pypi.org/simple" } 31 | sdist = { url = "https://files.pythonhosted.org/packages/e4/33/89c2ced2b67d1c2a61c19c6751aa8902d46ce3dacb23600a283619f5a12d/charset_normalizer-3.4.2.tar.gz", hash = "sha256:5baececa9ecba31eff645232d59845c07aa030f0c81ee70184a90d35099a0e63", size = 126367, upload-time = "2025-05-02T08:34:42.01Z" } 32 | wheels = [ 33 | { url = "https://files.pythonhosted.org/packages/05/85/4c40d00dcc6284a1c1ad5de5e0996b06f39d8232f1031cd23c2f5c07ee86/charset_normalizer-3.4.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:be1e352acbe3c78727a16a455126d9ff83ea2dfdcbc83148d2982305a04714c2", size = 198794, upload-time = "2025-05-02T08:32:11.945Z" }, 34 | { url = "https://files.pythonhosted.org/packages/41/d9/7a6c0b9db952598e97e93cbdfcb91bacd89b9b88c7c983250a77c008703c/charset_normalizer-3.4.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aa88ca0b1932e93f2d961bf3addbb2db902198dca337d88c89e1559e066e7645", size = 142846, upload-time = "2025-05-02T08:32:13.946Z" }, 35 | { url = "https://files.pythonhosted.org/packages/66/82/a37989cda2ace7e37f36c1a8ed16c58cf48965a79c2142713244bf945c89/charset_normalizer-3.4.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d524ba3f1581b35c03cb42beebab4a13e6cdad7b36246bd22541fa585a56cccd", size = 153350, upload-time = "2025-05-02T08:32:15.873Z" }, 36 | { url = "https://files.pythonhosted.org/packages/df/68/a576b31b694d07b53807269d05ec3f6f1093e9545e8607121995ba7a8313/charset_normalizer-3.4.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:28a1005facc94196e1fb3e82a3d442a9d9110b8434fc1ded7a24a2983c9888d8", size = 145657, upload-time = "2025-05-02T08:32:17.283Z" }, 37 | { url = "https://files.pythonhosted.org/packages/92/9b/ad67f03d74554bed3aefd56fe836e1623a50780f7c998d00ca128924a499/charset_normalizer-3.4.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fdb20a30fe1175ecabed17cbf7812f7b804b8a315a25f24678bcdf120a90077f", size = 147260, upload-time = "2025-05-02T08:32:18.807Z" }, 38 | { url = "https://files.pythonhosted.org/packages/a6/e6/8aebae25e328160b20e31a7e9929b1578bbdc7f42e66f46595a432f8539e/charset_normalizer-3.4.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0f5d9ed7f254402c9e7d35d2f5972c9bbea9040e99cd2861bd77dc68263277c7", size = 149164, upload-time = "2025-05-02T08:32:20.333Z" }, 39 | { url = "https://files.pythonhosted.org/packages/8b/f2/b3c2f07dbcc248805f10e67a0262c93308cfa149a4cd3d1fe01f593e5fd2/charset_normalizer-3.4.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:efd387a49825780ff861998cd959767800d54f8308936b21025326de4b5a42b9", size = 144571, upload-time = "2025-05-02T08:32:21.86Z" }, 40 | { url = "https://files.pythonhosted.org/packages/60/5b/c3f3a94bc345bc211622ea59b4bed9ae63c00920e2e8f11824aa5708e8b7/charset_normalizer-3.4.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:f0aa37f3c979cf2546b73e8222bbfa3dc07a641585340179d768068e3455e544", size = 151952, upload-time = "2025-05-02T08:32:23.434Z" }, 41 | { url = "https://files.pythonhosted.org/packages/e2/4d/ff460c8b474122334c2fa394a3f99a04cf11c646da895f81402ae54f5c42/charset_normalizer-3.4.2-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:e70e990b2137b29dc5564715de1e12701815dacc1d056308e2b17e9095372a82", size = 155959, upload-time = "2025-05-02T08:32:24.993Z" }, 42 | { url = "https://files.pythonhosted.org/packages/a2/2b/b964c6a2fda88611a1fe3d4c400d39c66a42d6c169c924818c848f922415/charset_normalizer-3.4.2-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:0c8c57f84ccfc871a48a47321cfa49ae1df56cd1d965a09abe84066f6853b9c0", size = 153030, upload-time = "2025-05-02T08:32:26.435Z" }, 43 | { url = "https://files.pythonhosted.org/packages/59/2e/d3b9811db26a5ebf444bc0fa4f4be5aa6d76fc6e1c0fd537b16c14e849b6/charset_normalizer-3.4.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:6b66f92b17849b85cad91259efc341dce9c1af48e2173bf38a85c6329f1033e5", size = 148015, upload-time = "2025-05-02T08:32:28.376Z" }, 44 | { url = "https://files.pythonhosted.org/packages/90/07/c5fd7c11eafd561bb51220d600a788f1c8d77c5eef37ee49454cc5c35575/charset_normalizer-3.4.2-cp311-cp311-win32.whl", hash = "sha256:daac4765328a919a805fa5e2720f3e94767abd632ae410a9062dff5412bae65a", size = 98106, upload-time = "2025-05-02T08:32:30.281Z" }, 45 | { url = "https://files.pythonhosted.org/packages/a8/05/5e33dbef7e2f773d672b6d79f10ec633d4a71cd96db6673625838a4fd532/charset_normalizer-3.4.2-cp311-cp311-win_amd64.whl", hash = "sha256:e53efc7c7cee4c1e70661e2e112ca46a575f90ed9ae3fef200f2a25e954f4b28", size = 105402, upload-time = "2025-05-02T08:32:32.191Z" }, 46 | { url = "https://files.pythonhosted.org/packages/d7/a4/37f4d6035c89cac7930395a35cc0f1b872e652eaafb76a6075943754f095/charset_normalizer-3.4.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:0c29de6a1a95f24b9a1aa7aefd27d2487263f00dfd55a77719b530788f75cff7", size = 199936, upload-time = "2025-05-02T08:32:33.712Z" }, 47 | { url = "https://files.pythonhosted.org/packages/ee/8a/1a5e33b73e0d9287274f899d967907cd0bf9c343e651755d9307e0dbf2b3/charset_normalizer-3.4.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cddf7bd982eaa998934a91f69d182aec997c6c468898efe6679af88283b498d3", size = 143790, upload-time = "2025-05-02T08:32:35.768Z" }, 48 | { url = "https://files.pythonhosted.org/packages/66/52/59521f1d8e6ab1482164fa21409c5ef44da3e9f653c13ba71becdd98dec3/charset_normalizer-3.4.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fcbe676a55d7445b22c10967bceaaf0ee69407fbe0ece4d032b6eb8d4565982a", size = 153924, upload-time = "2025-05-02T08:32:37.284Z" }, 49 | { url = "https://files.pythonhosted.org/packages/86/2d/fb55fdf41964ec782febbf33cb64be480a6b8f16ded2dbe8db27a405c09f/charset_normalizer-3.4.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d41c4d287cfc69060fa91cae9683eacffad989f1a10811995fa309df656ec214", size = 146626, upload-time = "2025-05-02T08:32:38.803Z" }, 50 | { url = "https://files.pythonhosted.org/packages/8c/73/6ede2ec59bce19b3edf4209d70004253ec5f4e319f9a2e3f2f15601ed5f7/charset_normalizer-3.4.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4e594135de17ab3866138f496755f302b72157d115086d100c3f19370839dd3a", size = 148567, upload-time = "2025-05-02T08:32:40.251Z" }, 51 | { url = "https://files.pythonhosted.org/packages/09/14/957d03c6dc343c04904530b6bef4e5efae5ec7d7990a7cbb868e4595ee30/charset_normalizer-3.4.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cf713fe9a71ef6fd5adf7a79670135081cd4431c2943864757f0fa3a65b1fafd", size = 150957, upload-time = "2025-05-02T08:32:41.705Z" }, 52 | { url = "https://files.pythonhosted.org/packages/0d/c8/8174d0e5c10ccebdcb1b53cc959591c4c722a3ad92461a273e86b9f5a302/charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a370b3e078e418187da8c3674eddb9d983ec09445c99a3a263c2011993522981", size = 145408, upload-time = "2025-05-02T08:32:43.709Z" }, 53 | { url = "https://files.pythonhosted.org/packages/58/aa/8904b84bc8084ac19dc52feb4f5952c6df03ffb460a887b42615ee1382e8/charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:a955b438e62efdf7e0b7b52a64dc5c3396e2634baa62471768a64bc2adb73d5c", size = 153399, upload-time = "2025-05-02T08:32:46.197Z" }, 54 | { url = "https://files.pythonhosted.org/packages/c2/26/89ee1f0e264d201cb65cf054aca6038c03b1a0c6b4ae998070392a3ce605/charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:7222ffd5e4de8e57e03ce2cef95a4c43c98fcb72ad86909abdfc2c17d227fc1b", size = 156815, upload-time = "2025-05-02T08:32:48.105Z" }, 55 | { url = "https://files.pythonhosted.org/packages/fd/07/68e95b4b345bad3dbbd3a8681737b4338ff2c9df29856a6d6d23ac4c73cb/charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:bee093bf902e1d8fc0ac143c88902c3dfc8941f7ea1d6a8dd2bcb786d33db03d", size = 154537, upload-time = "2025-05-02T08:32:49.719Z" }, 56 | { url = "https://files.pythonhosted.org/packages/77/1a/5eefc0ce04affb98af07bc05f3bac9094513c0e23b0562d64af46a06aae4/charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:dedb8adb91d11846ee08bec4c8236c8549ac721c245678282dcb06b221aab59f", size = 149565, upload-time = "2025-05-02T08:32:51.404Z" }, 57 | { url = "https://files.pythonhosted.org/packages/37/a0/2410e5e6032a174c95e0806b1a6585eb21e12f445ebe239fac441995226a/charset_normalizer-3.4.2-cp312-cp312-win32.whl", hash = "sha256:db4c7bf0e07fc3b7d89ac2a5880a6a8062056801b83ff56d8464b70f65482b6c", size = 98357, upload-time = "2025-05-02T08:32:53.079Z" }, 58 | { url = "https://files.pythonhosted.org/packages/6c/4f/c02d5c493967af3eda9c771ad4d2bbc8df6f99ddbeb37ceea6e8716a32bc/charset_normalizer-3.4.2-cp312-cp312-win_amd64.whl", hash = "sha256:5a9979887252a82fefd3d3ed2a8e3b937a7a809f65dcb1e068b090e165bbe99e", size = 105776, upload-time = "2025-05-02T08:32:54.573Z" }, 59 | { url = "https://files.pythonhosted.org/packages/ea/12/a93df3366ed32db1d907d7593a94f1fe6293903e3e92967bebd6950ed12c/charset_normalizer-3.4.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:926ca93accd5d36ccdabd803392ddc3e03e6d4cd1cf17deff3b989ab8e9dbcf0", size = 199622, upload-time = "2025-05-02T08:32:56.363Z" }, 60 | { url = "https://files.pythonhosted.org/packages/04/93/bf204e6f344c39d9937d3c13c8cd5bbfc266472e51fc8c07cb7f64fcd2de/charset_normalizer-3.4.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:eba9904b0f38a143592d9fc0e19e2df0fa2e41c3c3745554761c5f6447eedabf", size = 143435, upload-time = "2025-05-02T08:32:58.551Z" }, 61 | { url = "https://files.pythonhosted.org/packages/22/2a/ea8a2095b0bafa6c5b5a55ffdc2f924455233ee7b91c69b7edfcc9e02284/charset_normalizer-3.4.2-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3fddb7e2c84ac87ac3a947cb4e66d143ca5863ef48e4a5ecb83bd48619e4634e", size = 153653, upload-time = "2025-05-02T08:33:00.342Z" }, 62 | { url = "https://files.pythonhosted.org/packages/b6/57/1b090ff183d13cef485dfbe272e2fe57622a76694061353c59da52c9a659/charset_normalizer-3.4.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:98f862da73774290f251b9df8d11161b6cf25b599a66baf087c1ffe340e9bfd1", size = 146231, upload-time = "2025-05-02T08:33:02.081Z" }, 63 | { url = "https://files.pythonhosted.org/packages/e2/28/ffc026b26f441fc67bd21ab7f03b313ab3fe46714a14b516f931abe1a2d8/charset_normalizer-3.4.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c9379d65defcab82d07b2a9dfbfc2e95bc8fe0ebb1b176a3190230a3ef0e07c", size = 148243, upload-time = "2025-05-02T08:33:04.063Z" }, 64 | { url = "https://files.pythonhosted.org/packages/c0/0f/9abe9bd191629c33e69e47c6ef45ef99773320e9ad8e9cb08b8ab4a8d4cb/charset_normalizer-3.4.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e635b87f01ebc977342e2697d05b56632f5f879a4f15955dfe8cef2448b51691", size = 150442, upload-time = "2025-05-02T08:33:06.418Z" }, 65 | { url = "https://files.pythonhosted.org/packages/67/7c/a123bbcedca91d5916c056407f89a7f5e8fdfce12ba825d7d6b9954a1a3c/charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:1c95a1e2902a8b722868587c0e1184ad5c55631de5afc0eb96bc4b0d738092c0", size = 145147, upload-time = "2025-05-02T08:33:08.183Z" }, 66 | { url = "https://files.pythonhosted.org/packages/ec/fe/1ac556fa4899d967b83e9893788e86b6af4d83e4726511eaaad035e36595/charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:ef8de666d6179b009dce7bcb2ad4c4a779f113f12caf8dc77f0162c29d20490b", size = 153057, upload-time = "2025-05-02T08:33:09.986Z" }, 67 | { url = "https://files.pythonhosted.org/packages/2b/ff/acfc0b0a70b19e3e54febdd5301a98b72fa07635e56f24f60502e954c461/charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:32fc0341d72e0f73f80acb0a2c94216bd704f4f0bce10aedea38f30502b271ff", size = 156454, upload-time = "2025-05-02T08:33:11.814Z" }, 68 | { url = "https://files.pythonhosted.org/packages/92/08/95b458ce9c740d0645feb0e96cea1f5ec946ea9c580a94adfe0b617f3573/charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:289200a18fa698949d2b39c671c2cc7a24d44096784e76614899a7ccf2574b7b", size = 154174, upload-time = "2025-05-02T08:33:13.707Z" }, 69 | { url = "https://files.pythonhosted.org/packages/78/be/8392efc43487ac051eee6c36d5fbd63032d78f7728cb37aebcc98191f1ff/charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4a476b06fbcf359ad25d34a057b7219281286ae2477cc5ff5e3f70a246971148", size = 149166, upload-time = "2025-05-02T08:33:15.458Z" }, 70 | { url = "https://files.pythonhosted.org/packages/44/96/392abd49b094d30b91d9fbda6a69519e95802250b777841cf3bda8fe136c/charset_normalizer-3.4.2-cp313-cp313-win32.whl", hash = "sha256:aaeeb6a479c7667fbe1099af9617c83aaca22182d6cf8c53966491a0f1b7ffb7", size = 98064, upload-time = "2025-05-02T08:33:17.06Z" }, 71 | { url = "https://files.pythonhosted.org/packages/e9/b0/0200da600134e001d91851ddc797809e2fe0ea72de90e09bec5a2fbdaccb/charset_normalizer-3.4.2-cp313-cp313-win_amd64.whl", hash = "sha256:aa6af9e7d59f9c12b33ae4e9450619cf2488e2bbe9b44030905877f0b2324980", size = 105641, upload-time = "2025-05-02T08:33:18.753Z" }, 72 | { url = "https://files.pythonhosted.org/packages/20/94/c5790835a017658cbfabd07f3bfb549140c3ac458cfc196323996b10095a/charset_normalizer-3.4.2-py3-none-any.whl", hash = "sha256:7f56930ab0abd1c45cd15be65cc741c28b1c9a34876ce8c17a2fa107810c0af0", size = 52626, upload-time = "2025-05-02T08:34:40.053Z" }, 73 | ] 74 | 75 | [[package]] 76 | name = "deprecated" 77 | version = "1.2.18" 78 | source = { registry = "https://pypi.org/simple" } 79 | dependencies = [ 80 | { name = "wrapt" }, 81 | ] 82 | sdist = { url = "https://files.pythonhosted.org/packages/98/97/06afe62762c9a8a86af0cfb7bfdab22a43ad17138b07af5b1a58442690a2/deprecated-1.2.18.tar.gz", hash = "sha256:422b6f6d859da6f2ef57857761bfb392480502a64c3028ca9bbe86085d72115d", size = 2928744, upload-time = "2025-01-27T10:46:25.7Z" } 83 | wheels = [ 84 | { url = "https://files.pythonhosted.org/packages/6e/c6/ac0b6c1e2d138f1002bcf799d330bd6d85084fece321e662a14223794041/Deprecated-1.2.18-py2.py3-none-any.whl", hash = "sha256:bd5011788200372a32418f888e326a09ff80d0214bd961147cfed01b5c018eec", size = 9998, upload-time = "2025-01-27T10:46:09.186Z" }, 85 | ] 86 | 87 | [[package]] 88 | name = "google-api-core" 89 | version = "2.24.2" 90 | source = { registry = "https://pypi.org/simple" } 91 | dependencies = [ 92 | { name = "google-auth" }, 93 | { name = "googleapis-common-protos" }, 94 | { name = "proto-plus" }, 95 | { name = "protobuf" }, 96 | { name = "requests" }, 97 | ] 98 | sdist = { url = "https://files.pythonhosted.org/packages/09/5c/085bcb872556934bb119e5e09de54daa07873f6866b8f0303c49e72287f7/google_api_core-2.24.2.tar.gz", hash = "sha256:81718493daf06d96d6bc76a91c23874dbf2fac0adbbf542831b805ee6e974696", size = 163516, upload-time = "2025-03-10T15:55:26.201Z" } 99 | wheels = [ 100 | { url = "https://files.pythonhosted.org/packages/46/95/f472d85adab6e538da2025dfca9e976a0d125cc0af2301f190e77b76e51c/google_api_core-2.24.2-py3-none-any.whl", hash = "sha256:810a63ac95f3c441b7c0e43d344e372887f62ce9071ba972eacf32672e072de9", size = 160061, upload-time = "2025-03-10T15:55:24.386Z" }, 101 | ] 102 | 103 | [package.optional-dependencies] 104 | grpc = [ 105 | { name = "grpcio" }, 106 | { name = "grpcio-status" }, 107 | ] 108 | 109 | [[package]] 110 | name = "google-api-python-client" 111 | version = "2.169.0" 112 | source = { registry = "https://pypi.org/simple" } 113 | dependencies = [ 114 | { name = "google-api-core" }, 115 | { name = "google-auth" }, 116 | { name = "google-auth-httplib2" }, 117 | { name = "httplib2" }, 118 | { name = "uritemplate" }, 119 | ] 120 | sdist = { url = "https://files.pythonhosted.org/packages/4f/e6/787c24738fc7c99de9289abe60bd64591800ae1cdf60db7b87e0e6ef9cdd/google_api_python_client-2.169.0.tar.gz", hash = "sha256:0585bb97bd5f5bf3ed8d4bf624593e4c5a14d06c811d1952b07a1f94b4d12c51", size = 12811341, upload-time = "2025-04-29T15:46:05.603Z" } 121 | wheels = [ 122 | { url = "https://files.pythonhosted.org/packages/2d/bd/6aa93c38756cc9fc63262e0dc3d3f1ff7241ce6f413a25ad6e4a9c98b473/google_api_python_client-2.169.0-py3-none-any.whl", hash = "sha256:dae3e882dc0e6f28e60cf09c1f13fedfd881db84f824dd418aa9e44def2fe00d", size = 13323742, upload-time = "2025-04-29T15:46:02.521Z" }, 123 | ] 124 | 125 | [[package]] 126 | name = "google-auth" 127 | version = "2.40.2" 128 | source = { registry = "https://pypi.org/simple" } 129 | dependencies = [ 130 | { name = "cachetools" }, 131 | { name = "pyasn1-modules" }, 132 | { name = "rsa" }, 133 | ] 134 | sdist = { url = "https://files.pythonhosted.org/packages/66/84/f67f53c505a6b2c5da05c988e2a5483f5ba9eee4b1841d2e3ff22f547cd5/google_auth-2.40.2.tar.gz", hash = "sha256:a33cde547a2134273226fa4b853883559947ebe9207521f7afc707efbf690f58", size = 280990, upload-time = "2025-05-21T18:04:59.816Z" } 135 | wheels = [ 136 | { url = "https://files.pythonhosted.org/packages/6a/c7/e2d82e6702e2a9e2311c138f8e1100f21d08aed0231290872b229ae57a86/google_auth-2.40.2-py2.py3-none-any.whl", hash = "sha256:f7e568d42eedfded58734f6a60c58321896a621f7c116c411550a4b4a13da90b", size = 216102, upload-time = "2025-05-21T18:04:57.547Z" }, 137 | ] 138 | 139 | [[package]] 140 | name = "google-auth-httplib2" 141 | version = "0.2.0" 142 | source = { registry = "https://pypi.org/simple" } 143 | dependencies = [ 144 | { name = "google-auth" }, 145 | { name = "httplib2" }, 146 | ] 147 | sdist = { url = "https://files.pythonhosted.org/packages/56/be/217a598a818567b28e859ff087f347475c807a5649296fb5a817c58dacef/google-auth-httplib2-0.2.0.tar.gz", hash = "sha256:38aa7badf48f974f1eb9861794e9c0cb2a0511a4ec0679b1f886d108f5640e05", size = 10842, upload-time = "2023-12-12T17:40:30.722Z" } 148 | wheels = [ 149 | { url = "https://files.pythonhosted.org/packages/be/8a/fe34d2f3f9470a27b01c9e76226965863f153d5fbe276f83608562e49c04/google_auth_httplib2-0.2.0-py2.py3-none-any.whl", hash = "sha256:b65a0a2123300dd71281a7bf6e64d65a0759287df52729bdd1ae2e47dc311a3d", size = 9253, upload-time = "2023-12-12T17:40:13.055Z" }, 150 | ] 151 | 152 | [[package]] 153 | name = "google-cloud" 154 | version = "0.1.0" 155 | source = { virtual = "." } 156 | dependencies = [ 157 | { name = "google-api-core" }, 158 | { name = "google-api-python-client" }, 159 | { name = "google-auth" }, 160 | { name = "google-cloud-pubsub" }, 161 | ] 162 | 163 | [package.metadata] 164 | requires-dist = [ 165 | { name = "google-api-core", specifier = ">=2.24.2" }, 166 | { name = "google-api-python-client", specifier = ">=2.169.0" }, 167 | { name = "google-auth", specifier = ">=2.40.2" }, 168 | { name = "google-cloud-pubsub", specifier = ">=2.29.0" }, 169 | ] 170 | 171 | [[package]] 172 | name = "google-cloud-pubsub" 173 | version = "2.29.0" 174 | source = { registry = "https://pypi.org/simple" } 175 | dependencies = [ 176 | { name = "google-api-core", extra = ["grpc"] }, 177 | { name = "google-auth" }, 178 | { name = "grpc-google-iam-v1" }, 179 | { name = "grpcio" }, 180 | { name = "grpcio-status" }, 181 | { name = "opentelemetry-api" }, 182 | { name = "opentelemetry-sdk" }, 183 | { name = "proto-plus" }, 184 | { name = "protobuf" }, 185 | ] 186 | sdist = { url = "https://files.pythonhosted.org/packages/d6/4d/1db6b937d76d4cb1dca484e4f61f138b5611f0658992bf1ad6679bbddfad/google_cloud_pubsub-2.29.0.tar.gz", hash = "sha256:b820f8d410c96ad87b8da79c696b979e1a182a170d0c0602626f5b9d8cbf21ee", size = 389745, upload-time = "2025-03-20T15:19:33.779Z" } 187 | wheels = [ 188 | { url = "https://files.pythonhosted.org/packages/71/00/5dd16327bad524282a048b2efb10b335d9fe089ec260c8d2b2c8054950aa/google_cloud_pubsub-2.29.0-py2.py3-none-any.whl", hash = "sha256:3ccc76ae623e408c7a80f2f81bfd3ab9dca1d61231cc2a063d569d021449481a", size = 317313, upload-time = "2025-03-20T15:19:31.675Z" }, 189 | ] 190 | 191 | [[package]] 192 | name = "googleapis-common-protos" 193 | version = "1.70.0" 194 | source = { registry = "https://pypi.org/simple" } 195 | dependencies = [ 196 | { name = "protobuf" }, 197 | ] 198 | sdist = { url = "https://files.pythonhosted.org/packages/39/24/33db22342cf4a2ea27c9955e6713140fedd51e8b141b5ce5260897020f1a/googleapis_common_protos-1.70.0.tar.gz", hash = "sha256:0e1b44e0ea153e6594f9f394fef15193a68aaaea2d843f83e2742717ca753257", size = 145903, upload-time = "2025-04-14T10:17:02.924Z" } 199 | wheels = [ 200 | { url = "https://files.pythonhosted.org/packages/86/f1/62a193f0227cf15a920390abe675f386dec35f7ae3ffe6da582d3ade42c7/googleapis_common_protos-1.70.0-py3-none-any.whl", hash = "sha256:b8bfcca8c25a2bb253e0e0b0adaf8c00773e5e6af6fd92397576680b807e0fd8", size = 294530, upload-time = "2025-04-14T10:17:01.271Z" }, 201 | ] 202 | 203 | [package.optional-dependencies] 204 | grpc = [ 205 | { name = "grpcio" }, 206 | ] 207 | 208 | [[package]] 209 | name = "grpc-google-iam-v1" 210 | version = "0.14.2" 211 | source = { registry = "https://pypi.org/simple" } 212 | dependencies = [ 213 | { name = "googleapis-common-protos", extra = ["grpc"] }, 214 | { name = "grpcio" }, 215 | { name = "protobuf" }, 216 | ] 217 | sdist = { url = "https://files.pythonhosted.org/packages/b9/4e/8d0ca3b035e41fe0b3f31ebbb638356af720335e5a11154c330169b40777/grpc_google_iam_v1-0.14.2.tar.gz", hash = "sha256:b3e1fc387a1a329e41672197d0ace9de22c78dd7d215048c4c78712073f7bd20", size = 16259, upload-time = "2025-03-17T11:40:23.586Z" } 218 | wheels = [ 219 | { url = "https://files.pythonhosted.org/packages/66/6f/dd9b178aee7835b96c2e63715aba6516a9d50f6bebbd1cc1d32c82a2a6c3/grpc_google_iam_v1-0.14.2-py3-none-any.whl", hash = "sha256:a3171468459770907926d56a440b2bb643eec1d7ba215f48f3ecece42b4d8351", size = 19242, upload-time = "2025-03-17T11:40:22.648Z" }, 220 | ] 221 | 222 | [[package]] 223 | name = "grpcio" 224 | version = "1.71.0" 225 | source = { registry = "https://pypi.org/simple" } 226 | sdist = { url = "https://files.pythonhosted.org/packages/1c/95/aa11fc09a85d91fbc7dd405dcb2a1e0256989d67bf89fa65ae24b3ba105a/grpcio-1.71.0.tar.gz", hash = "sha256:2b85f7820475ad3edec209d3d89a7909ada16caab05d3f2e08a7e8ae3200a55c", size = 12549828, upload-time = "2025-03-10T19:28:49.203Z" } 227 | wheels = [ 228 | { url = "https://files.pythonhosted.org/packages/63/04/a085f3ad4133426f6da8c1becf0749872a49feb625a407a2e864ded3fb12/grpcio-1.71.0-cp311-cp311-linux_armv7l.whl", hash = "sha256:d6aa986318c36508dc1d5001a3ff169a15b99b9f96ef5e98e13522c506b37eef", size = 5210453, upload-time = "2025-03-10T19:24:33.342Z" }, 229 | { url = "https://files.pythonhosted.org/packages/b4/d5/0bc53ed33ba458de95020970e2c22aa8027b26cc84f98bea7fcad5d695d1/grpcio-1.71.0-cp311-cp311-macosx_10_14_universal2.whl", hash = "sha256:d2c170247315f2d7e5798a22358e982ad6eeb68fa20cf7a820bb74c11f0736e7", size = 11347567, upload-time = "2025-03-10T19:24:35.215Z" }, 230 | { url = "https://files.pythonhosted.org/packages/e3/6d/ce334f7e7a58572335ccd61154d808fe681a4c5e951f8a1ff68f5a6e47ce/grpcio-1.71.0-cp311-cp311-manylinux_2_17_aarch64.whl", hash = "sha256:e6f83a583ed0a5b08c5bc7a3fe860bb3c2eac1f03f1f63e0bc2091325605d2b7", size = 5696067, upload-time = "2025-03-10T19:24:37.988Z" }, 231 | { url = "https://files.pythonhosted.org/packages/05/4a/80befd0b8b1dc2b9ac5337e57473354d81be938f87132e147c4a24a581bd/grpcio-1.71.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4be74ddeeb92cc87190e0e376dbc8fc7736dbb6d3d454f2fa1f5be1dee26b9d7", size = 6348377, upload-time = "2025-03-10T19:24:40.361Z" }, 232 | { url = "https://files.pythonhosted.org/packages/c7/67/cbd63c485051eb78663355d9efd1b896cfb50d4a220581ec2cb9a15cd750/grpcio-1.71.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4dd0dfbe4d5eb1fcfec9490ca13f82b089a309dc3678e2edabc144051270a66e", size = 5940407, upload-time = "2025-03-10T19:24:42.685Z" }, 233 | { url = "https://files.pythonhosted.org/packages/98/4b/7a11aa4326d7faa499f764eaf8a9b5a0eb054ce0988ee7ca34897c2b02ae/grpcio-1.71.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:a2242d6950dc892afdf9e951ed7ff89473aaf744b7d5727ad56bdaace363722b", size = 6030915, upload-time = "2025-03-10T19:24:44.463Z" }, 234 | { url = "https://files.pythonhosted.org/packages/eb/a2/cdae2d0e458b475213a011078b0090f7a1d87f9a68c678b76f6af7c6ac8c/grpcio-1.71.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:0fa05ee31a20456b13ae49ad2e5d585265f71dd19fbd9ef983c28f926d45d0a7", size = 6648324, upload-time = "2025-03-10T19:24:46.287Z" }, 235 | { url = "https://files.pythonhosted.org/packages/27/df/f345c8daaa8d8574ce9869f9b36ca220c8845923eb3087e8f317eabfc2a8/grpcio-1.71.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:3d081e859fb1ebe176de33fc3adb26c7d46b8812f906042705346b314bde32c3", size = 6197839, upload-time = "2025-03-10T19:24:48.565Z" }, 236 | { url = "https://files.pythonhosted.org/packages/f2/2c/cd488dc52a1d0ae1bad88b0d203bc302efbb88b82691039a6d85241c5781/grpcio-1.71.0-cp311-cp311-win32.whl", hash = "sha256:d6de81c9c00c8a23047136b11794b3584cdc1460ed7cbc10eada50614baa1444", size = 3619978, upload-time = "2025-03-10T19:24:50.518Z" }, 237 | { url = "https://files.pythonhosted.org/packages/ee/3f/cf92e7e62ccb8dbdf977499547dfc27133124d6467d3a7d23775bcecb0f9/grpcio-1.71.0-cp311-cp311-win_amd64.whl", hash = "sha256:24e867651fc67717b6f896d5f0cac0ec863a8b5fb7d6441c2ab428f52c651c6b", size = 4282279, upload-time = "2025-03-10T19:24:52.313Z" }, 238 | { url = "https://files.pythonhosted.org/packages/4c/83/bd4b6a9ba07825bd19c711d8b25874cd5de72c2a3fbf635c3c344ae65bd2/grpcio-1.71.0-cp312-cp312-linux_armv7l.whl", hash = "sha256:0ff35c8d807c1c7531d3002be03221ff9ae15712b53ab46e2a0b4bb271f38537", size = 5184101, upload-time = "2025-03-10T19:24:54.11Z" }, 239 | { url = "https://files.pythonhosted.org/packages/31/ea/2e0d90c0853568bf714693447f5c73272ea95ee8dad107807fde740e595d/grpcio-1.71.0-cp312-cp312-macosx_10_14_universal2.whl", hash = "sha256:b78a99cd1ece4be92ab7c07765a0b038194ded2e0a26fd654591ee136088d8d7", size = 11310927, upload-time = "2025-03-10T19:24:56.1Z" }, 240 | { url = "https://files.pythonhosted.org/packages/ac/bc/07a3fd8af80467390af491d7dc66882db43884128cdb3cc8524915e0023c/grpcio-1.71.0-cp312-cp312-manylinux_2_17_aarch64.whl", hash = "sha256:dc1a1231ed23caac1de9f943d031f1bc38d0f69d2a3b243ea0d664fc1fbd7fec", size = 5654280, upload-time = "2025-03-10T19:24:58.55Z" }, 241 | { url = "https://files.pythonhosted.org/packages/16/af/21f22ea3eed3d0538b6ef7889fce1878a8ba4164497f9e07385733391e2b/grpcio-1.71.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e6beeea5566092c5e3c4896c6d1d307fb46b1d4bdf3e70c8340b190a69198594", size = 6312051, upload-time = "2025-03-10T19:25:00.682Z" }, 242 | { url = "https://files.pythonhosted.org/packages/49/9d/e12ddc726dc8bd1aa6cba67c85ce42a12ba5b9dd75d5042214a59ccf28ce/grpcio-1.71.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d5170929109450a2c031cfe87d6716f2fae39695ad5335d9106ae88cc32dc84c", size = 5910666, upload-time = "2025-03-10T19:25:03.01Z" }, 243 | { url = "https://files.pythonhosted.org/packages/d9/e9/38713d6d67aedef738b815763c25f092e0454dc58e77b1d2a51c9d5b3325/grpcio-1.71.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:5b08d03ace7aca7b2fadd4baf291139b4a5f058805a8327bfe9aece7253b6d67", size = 6012019, upload-time = "2025-03-10T19:25:05.174Z" }, 244 | { url = "https://files.pythonhosted.org/packages/80/da/4813cd7adbae6467724fa46c952d7aeac5e82e550b1c62ed2aeb78d444ae/grpcio-1.71.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:f903017db76bf9cc2b2d8bdd37bf04b505bbccad6be8a81e1542206875d0e9db", size = 6637043, upload-time = "2025-03-10T19:25:06.987Z" }, 245 | { url = "https://files.pythonhosted.org/packages/52/ca/c0d767082e39dccb7985c73ab4cf1d23ce8613387149e9978c70c3bf3b07/grpcio-1.71.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:469f42a0b410883185eab4689060a20488a1a0a00f8bbb3cbc1061197b4c5a79", size = 6186143, upload-time = "2025-03-10T19:25:08.877Z" }, 246 | { url = "https://files.pythonhosted.org/packages/00/61/7b2c8ec13303f8fe36832c13d91ad4d4ba57204b1c723ada709c346b2271/grpcio-1.71.0-cp312-cp312-win32.whl", hash = "sha256:ad9f30838550695b5eb302add33f21f7301b882937460dd24f24b3cc5a95067a", size = 3604083, upload-time = "2025-03-10T19:25:10.736Z" }, 247 | { url = "https://files.pythonhosted.org/packages/fd/7c/1e429c5fb26122055d10ff9a1d754790fb067d83c633ff69eddcf8e3614b/grpcio-1.71.0-cp312-cp312-win_amd64.whl", hash = "sha256:652350609332de6dac4ece254e5d7e1ff834e203d6afb769601f286886f6f3a8", size = 4272191, upload-time = "2025-03-10T19:25:13.12Z" }, 248 | { url = "https://files.pythonhosted.org/packages/04/dd/b00cbb45400d06b26126dcfdbdb34bb6c4f28c3ebbd7aea8228679103ef6/grpcio-1.71.0-cp313-cp313-linux_armv7l.whl", hash = "sha256:cebc1b34ba40a312ab480ccdb396ff3c529377a2fce72c45a741f7215bfe8379", size = 5184138, upload-time = "2025-03-10T19:25:15.101Z" }, 249 | { url = "https://files.pythonhosted.org/packages/ed/0a/4651215983d590ef53aac40ba0e29dda941a02b097892c44fa3357e706e5/grpcio-1.71.0-cp313-cp313-macosx_10_14_universal2.whl", hash = "sha256:85da336e3649a3d2171e82f696b5cad2c6231fdd5bad52616476235681bee5b3", size = 11310747, upload-time = "2025-03-10T19:25:17.201Z" }, 250 | { url = "https://files.pythonhosted.org/packages/57/a3/149615b247f321e13f60aa512d3509d4215173bdb982c9098d78484de216/grpcio-1.71.0-cp313-cp313-manylinux_2_17_aarch64.whl", hash = "sha256:f9a412f55bb6e8f3bb000e020dbc1e709627dcb3a56f6431fa7076b4c1aab0db", size = 5653991, upload-time = "2025-03-10T19:25:20.39Z" }, 251 | { url = "https://files.pythonhosted.org/packages/ca/56/29432a3e8d951b5e4e520a40cd93bebaa824a14033ea8e65b0ece1da6167/grpcio-1.71.0-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:47be9584729534660416f6d2a3108aaeac1122f6b5bdbf9fd823e11fe6fbaa29", size = 6312781, upload-time = "2025-03-10T19:25:22.823Z" }, 252 | { url = "https://files.pythonhosted.org/packages/a3/f8/286e81a62964ceb6ac10b10925261d4871a762d2a763fbf354115f9afc98/grpcio-1.71.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7c9c80ac6091c916db81131d50926a93ab162a7e97e4428ffc186b6e80d6dda4", size = 5910479, upload-time = "2025-03-10T19:25:24.828Z" }, 253 | { url = "https://files.pythonhosted.org/packages/35/67/d1febb49ec0f599b9e6d4d0d44c2d4afdbed9c3e80deb7587ec788fcf252/grpcio-1.71.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:789d5e2a3a15419374b7b45cd680b1e83bbc1e52b9086e49308e2c0b5bbae6e3", size = 6013262, upload-time = "2025-03-10T19:25:26.987Z" }, 254 | { url = "https://files.pythonhosted.org/packages/a1/04/f9ceda11755f0104a075ad7163fc0d96e2e3a9fe25ef38adfc74c5790daf/grpcio-1.71.0-cp313-cp313-musllinux_1_1_i686.whl", hash = "sha256:1be857615e26a86d7363e8a163fade914595c81fec962b3d514a4b1e8760467b", size = 6643356, upload-time = "2025-03-10T19:25:29.606Z" }, 255 | { url = "https://files.pythonhosted.org/packages/fb/ce/236dbc3dc77cf9a9242adcf1f62538734ad64727fabf39e1346ad4bd5c75/grpcio-1.71.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:a76d39b5fafd79ed604c4be0a869ec3581a172a707e2a8d7a4858cb05a5a7637", size = 6186564, upload-time = "2025-03-10T19:25:31.537Z" }, 256 | { url = "https://files.pythonhosted.org/packages/10/fd/b3348fce9dd4280e221f513dd54024e765b21c348bc475516672da4218e9/grpcio-1.71.0-cp313-cp313-win32.whl", hash = "sha256:74258dce215cb1995083daa17b379a1a5a87d275387b7ffe137f1d5131e2cfbb", size = 3601890, upload-time = "2025-03-10T19:25:33.421Z" }, 257 | { url = "https://files.pythonhosted.org/packages/be/f8/db5d5f3fc7e296166286c2a397836b8b042f7ad1e11028d82b061701f0f7/grpcio-1.71.0-cp313-cp313-win_amd64.whl", hash = "sha256:22c3bc8d488c039a199f7a003a38cb7635db6656fa96437a8accde8322ce2366", size = 4273308, upload-time = "2025-03-10T19:25:35.79Z" }, 258 | ] 259 | 260 | [[package]] 261 | name = "grpcio-status" 262 | version = "1.71.0" 263 | source = { registry = "https://pypi.org/simple" } 264 | dependencies = [ 265 | { name = "googleapis-common-protos" }, 266 | { name = "grpcio" }, 267 | { name = "protobuf" }, 268 | ] 269 | sdist = { url = "https://files.pythonhosted.org/packages/d7/53/a911467bece076020456401f55a27415d2d70d3bc2c37af06b44ea41fc5c/grpcio_status-1.71.0.tar.gz", hash = "sha256:11405fed67b68f406b3f3c7c5ae5104a79d2d309666d10d61b152e91d28fb968", size = 13669, upload-time = "2025-03-10T19:29:00.901Z" } 270 | wheels = [ 271 | { url = "https://files.pythonhosted.org/packages/ad/d6/31fbc43ff097d8c4c9fc3df741431b8018f67bf8dfbe6553a555f6e5f675/grpcio_status-1.71.0-py3-none-any.whl", hash = "sha256:843934ef8c09e3e858952887467f8256aac3910c55f077a359a65b2b3cde3e68", size = 14424, upload-time = "2025-03-10T19:27:04.967Z" }, 272 | ] 273 | 274 | [[package]] 275 | name = "httplib2" 276 | version = "0.22.0" 277 | source = { registry = "https://pypi.org/simple" } 278 | dependencies = [ 279 | { name = "pyparsing" }, 280 | ] 281 | sdist = { url = "https://files.pythonhosted.org/packages/3d/ad/2371116b22d616c194aa25ec410c9c6c37f23599dcd590502b74db197584/httplib2-0.22.0.tar.gz", hash = "sha256:d7a10bc5ef5ab08322488bde8c726eeee5c8618723fdb399597ec58f3d82df81", size = 351116, upload-time = "2023-03-21T22:29:37.214Z" } 282 | wheels = [ 283 | { url = "https://files.pythonhosted.org/packages/a8/6c/d2fbdaaa5959339d53ba38e94c123e4e84b8fbc4b84beb0e70d7c1608486/httplib2-0.22.0-py3-none-any.whl", hash = "sha256:14ae0a53c1ba8f3d37e9e27cf37eabb0fb9980f435ba405d546948b009dd64dc", size = 96854, upload-time = "2023-03-21T22:29:35.683Z" }, 284 | ] 285 | 286 | [[package]] 287 | name = "idna" 288 | version = "3.10" 289 | source = { registry = "https://pypi.org/simple" } 290 | sdist = { url = "https://files.pythonhosted.org/packages/f1/70/7703c29685631f5a7590aa73f1f1d3fa9a380e654b86af429e0934a32f7d/idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9", size = 190490, upload-time = "2024-09-15T18:07:39.745Z" } 291 | wheels = [ 292 | { url = "https://files.pythonhosted.org/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3", size = 70442, upload-time = "2024-09-15T18:07:37.964Z" }, 293 | ] 294 | 295 | [[package]] 296 | name = "importlib-metadata" 297 | version = "8.6.1" 298 | source = { registry = "https://pypi.org/simple" } 299 | dependencies = [ 300 | { name = "zipp" }, 301 | ] 302 | sdist = { url = "https://files.pythonhosted.org/packages/33/08/c1395a292bb23fd03bdf572a1357c5a733d3eecbab877641ceacab23db6e/importlib_metadata-8.6.1.tar.gz", hash = "sha256:310b41d755445d74569f993ccfc22838295d9fe005425094fad953d7f15c8580", size = 55767, upload-time = "2025-01-20T22:21:30.429Z" } 303 | wheels = [ 304 | { url = "https://files.pythonhosted.org/packages/79/9d/0fb148dc4d6fa4a7dd1d8378168d9b4cd8d4560a6fbf6f0121c5fc34eb68/importlib_metadata-8.6.1-py3-none-any.whl", hash = "sha256:02a89390c1e15fdfdc0d7c6b25cb3e62650d0494005c97d6f148bf5b9787525e", size = 26971, upload-time = "2025-01-20T22:21:29.177Z" }, 305 | ] 306 | 307 | [[package]] 308 | name = "opentelemetry-api" 309 | version = "1.33.1" 310 | source = { registry = "https://pypi.org/simple" } 311 | dependencies = [ 312 | { name = "deprecated" }, 313 | { name = "importlib-metadata" }, 314 | ] 315 | sdist = { url = "https://files.pythonhosted.org/packages/9a/8d/1f5a45fbcb9a7d87809d460f09dc3399e3fbd31d7f3e14888345e9d29951/opentelemetry_api-1.33.1.tar.gz", hash = "sha256:1c6055fc0a2d3f23a50c7e17e16ef75ad489345fd3df1f8b8af7c0bbf8a109e8", size = 65002, upload-time = "2025-05-16T18:52:41.146Z" } 316 | wheels = [ 317 | { url = "https://files.pythonhosted.org/packages/05/44/4c45a34def3506122ae61ad684139f0bbc4e00c39555d4f7e20e0e001c8a/opentelemetry_api-1.33.1-py3-none-any.whl", hash = "sha256:4db83ebcf7ea93e64637ec6ee6fabee45c5cbe4abd9cf3da95c43828ddb50b83", size = 65771, upload-time = "2025-05-16T18:52:17.419Z" }, 318 | ] 319 | 320 | [[package]] 321 | name = "opentelemetry-sdk" 322 | version = "1.33.1" 323 | source = { registry = "https://pypi.org/simple" } 324 | dependencies = [ 325 | { name = "opentelemetry-api" }, 326 | { name = "opentelemetry-semantic-conventions" }, 327 | { name = "typing-extensions" }, 328 | ] 329 | sdist = { url = "https://files.pythonhosted.org/packages/67/12/909b98a7d9b110cce4b28d49b2e311797cffdce180371f35eba13a72dd00/opentelemetry_sdk-1.33.1.tar.gz", hash = "sha256:85b9fcf7c3d23506fbc9692fd210b8b025a1920535feec50bd54ce203d57a531", size = 161885, upload-time = "2025-05-16T18:52:52.832Z" } 330 | wheels = [ 331 | { url = "https://files.pythonhosted.org/packages/df/8e/ae2d0742041e0bd7fe0d2dcc5e7cce51dcf7d3961a26072d5b43cc8fa2a7/opentelemetry_sdk-1.33.1-py3-none-any.whl", hash = "sha256:19ea73d9a01be29cacaa5d6c8ce0adc0b7f7b4d58cc52f923e4413609f670112", size = 118950, upload-time = "2025-05-16T18:52:37.297Z" }, 332 | ] 333 | 334 | [[package]] 335 | name = "opentelemetry-semantic-conventions" 336 | version = "0.54b1" 337 | source = { registry = "https://pypi.org/simple" } 338 | dependencies = [ 339 | { name = "deprecated" }, 340 | { name = "opentelemetry-api" }, 341 | ] 342 | sdist = { url = "https://files.pythonhosted.org/packages/5b/2c/d7990fc1ffc82889d466e7cd680788ace44a26789809924813b164344393/opentelemetry_semantic_conventions-0.54b1.tar.gz", hash = "sha256:d1cecedae15d19bdaafca1e56b29a66aa286f50b5d08f036a145c7f3e9ef9cee", size = 118642, upload-time = "2025-05-16T18:52:53.962Z" } 343 | wheels = [ 344 | { url = "https://files.pythonhosted.org/packages/0a/80/08b1698c52ff76d96ba440bf15edc2f4bc0a279868778928e947c1004bdd/opentelemetry_semantic_conventions-0.54b1-py3-none-any.whl", hash = "sha256:29dab644a7e435b58d3a3918b58c333c92686236b30f7891d5e51f02933ca60d", size = 194938, upload-time = "2025-05-16T18:52:38.796Z" }, 345 | ] 346 | 347 | [[package]] 348 | name = "proto-plus" 349 | version = "1.26.1" 350 | source = { registry = "https://pypi.org/simple" } 351 | dependencies = [ 352 | { name = "protobuf" }, 353 | ] 354 | sdist = { url = "https://files.pythonhosted.org/packages/f4/ac/87285f15f7cce6d4a008f33f1757fb5a13611ea8914eb58c3d0d26243468/proto_plus-1.26.1.tar.gz", hash = "sha256:21a515a4c4c0088a773899e23c7bbade3d18f9c66c73edd4c7ee3816bc96a012", size = 56142, upload-time = "2025-03-10T15:54:38.843Z" } 355 | wheels = [ 356 | { url = "https://files.pythonhosted.org/packages/4e/6d/280c4c2ce28b1593a19ad5239c8b826871fc6ec275c21afc8e1820108039/proto_plus-1.26.1-py3-none-any.whl", hash = "sha256:13285478c2dcf2abb829db158e1047e2f1e8d63a077d94263c2b88b043c75a66", size = 50163, upload-time = "2025-03-10T15:54:37.335Z" }, 357 | ] 358 | 359 | [[package]] 360 | name = "protobuf" 361 | version = "5.29.4" 362 | source = { registry = "https://pypi.org/simple" } 363 | sdist = { url = "https://files.pythonhosted.org/packages/17/7d/b9dca7365f0e2c4fa7c193ff795427cfa6290147e5185ab11ece280a18e7/protobuf-5.29.4.tar.gz", hash = "sha256:4f1dfcd7997b31ef8f53ec82781ff434a28bf71d9102ddde14d076adcfc78c99", size = 424902, upload-time = "2025-03-19T21:23:24.25Z" } 364 | wheels = [ 365 | { url = "https://files.pythonhosted.org/packages/9a/b2/043a1a1a20edd134563699b0e91862726a0dc9146c090743b6c44d798e75/protobuf-5.29.4-cp310-abi3-win32.whl", hash = "sha256:13eb236f8eb9ec34e63fc8b1d6efd2777d062fa6aaa68268fb67cf77f6839ad7", size = 422709, upload-time = "2025-03-19T21:23:08.293Z" }, 366 | { url = "https://files.pythonhosted.org/packages/79/fc/2474b59570daa818de6124c0a15741ee3e5d6302e9d6ce0bdfd12e98119f/protobuf-5.29.4-cp310-abi3-win_amd64.whl", hash = "sha256:bcefcdf3976233f8a502d265eb65ea740c989bacc6c30a58290ed0e519eb4b8d", size = 434506, upload-time = "2025-03-19T21:23:11.253Z" }, 367 | { url = "https://files.pythonhosted.org/packages/46/de/7c126bbb06aa0f8a7b38aaf8bd746c514d70e6a2a3f6dd460b3b7aad7aae/protobuf-5.29.4-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:307ecba1d852ec237e9ba668e087326a67564ef83e45a0189a772ede9e854dd0", size = 417826, upload-time = "2025-03-19T21:23:13.132Z" }, 368 | { url = "https://files.pythonhosted.org/packages/a2/b5/bade14ae31ba871a139aa45e7a8183d869efe87c34a4850c87b936963261/protobuf-5.29.4-cp38-abi3-manylinux2014_aarch64.whl", hash = "sha256:aec4962f9ea93c431d5714ed1be1c93f13e1a8618e70035ba2b0564d9e633f2e", size = 319574, upload-time = "2025-03-19T21:23:14.531Z" }, 369 | { url = "https://files.pythonhosted.org/packages/46/88/b01ed2291aae68b708f7d334288ad5fb3e7aa769a9c309c91a0d55cb91b0/protobuf-5.29.4-cp38-abi3-manylinux2014_x86_64.whl", hash = "sha256:d7d3f7d1d5a66ed4942d4fefb12ac4b14a29028b209d4bfb25c68ae172059922", size = 319672, upload-time = "2025-03-19T21:23:15.839Z" }, 370 | { url = "https://files.pythonhosted.org/packages/12/fb/a586e0c973c95502e054ac5f81f88394f24ccc7982dac19c515acd9e2c93/protobuf-5.29.4-py3-none-any.whl", hash = "sha256:3fde11b505e1597f71b875ef2fc52062b6a9740e5f7c8997ce878b6009145862", size = 172551, upload-time = "2025-03-19T21:23:22.682Z" }, 371 | ] 372 | 373 | [[package]] 374 | name = "pyasn1" 375 | version = "0.6.1" 376 | source = { registry = "https://pypi.org/simple" } 377 | sdist = { url = "https://files.pythonhosted.org/packages/ba/e9/01f1a64245b89f039897cb0130016d79f77d52669aae6ee7b159a6c4c018/pyasn1-0.6.1.tar.gz", hash = "sha256:6f580d2bdd84365380830acf45550f2511469f673cb4a5ae3857a3170128b034", size = 145322, upload-time = "2024-09-10T22:41:42.55Z" } 378 | wheels = [ 379 | { url = "https://files.pythonhosted.org/packages/c8/f1/d6a797abb14f6283c0ddff96bbdd46937f64122b8c925cab503dd37f8214/pyasn1-0.6.1-py3-none-any.whl", hash = "sha256:0d632f46f2ba09143da3a8afe9e33fb6f92fa2320ab7e886e2d0f7672af84629", size = 83135, upload-time = "2024-09-11T16:00:36.122Z" }, 380 | ] 381 | 382 | [[package]] 383 | name = "pyasn1-modules" 384 | version = "0.4.2" 385 | source = { registry = "https://pypi.org/simple" } 386 | dependencies = [ 387 | { name = "pyasn1" }, 388 | ] 389 | sdist = { url = "https://files.pythonhosted.org/packages/e9/e6/78ebbb10a8c8e4b61a59249394a4a594c1a7af95593dc933a349c8d00964/pyasn1_modules-0.4.2.tar.gz", hash = "sha256:677091de870a80aae844b1ca6134f54652fa2c8c5a52aa396440ac3106e941e6", size = 307892, upload-time = "2025-03-28T02:41:22.17Z" } 390 | wheels = [ 391 | { url = "https://files.pythonhosted.org/packages/47/8d/d529b5d697919ba8c11ad626e835d4039be708a35b0d22de83a269a6682c/pyasn1_modules-0.4.2-py3-none-any.whl", hash = "sha256:29253a9207ce32b64c3ac6600edc75368f98473906e8fd1043bd6b5b1de2c14a", size = 181259, upload-time = "2025-03-28T02:41:19.028Z" }, 392 | ] 393 | 394 | [[package]] 395 | name = "pyparsing" 396 | version = "3.2.3" 397 | source = { registry = "https://pypi.org/simple" } 398 | sdist = { url = "https://files.pythonhosted.org/packages/bb/22/f1129e69d94ffff626bdb5c835506b3a5b4f3d070f17ea295e12c2c6f60f/pyparsing-3.2.3.tar.gz", hash = "sha256:b9c13f1ab8b3b542f72e28f634bad4de758ab3ce4546e4301970ad6fa77c38be", size = 1088608, upload-time = "2025-03-25T05:01:28.114Z" } 399 | wheels = [ 400 | { url = "https://files.pythonhosted.org/packages/05/e7/df2285f3d08fee213f2d041540fa4fc9ca6c2d44cf36d3a035bf2a8d2bcc/pyparsing-3.2.3-py3-none-any.whl", hash = "sha256:a749938e02d6fd0b59b356ca504a24982314bb090c383e3cf201c95ef7e2bfcf", size = 111120, upload-time = "2025-03-25T05:01:24.908Z" }, 401 | ] 402 | 403 | [[package]] 404 | name = "requests" 405 | version = "2.32.3" 406 | source = { registry = "https://pypi.org/simple" } 407 | dependencies = [ 408 | { name = "certifi" }, 409 | { name = "charset-normalizer" }, 410 | { name = "idna" }, 411 | { name = "urllib3" }, 412 | ] 413 | sdist = { url = "https://files.pythonhosted.org/packages/63/70/2bf7780ad2d390a8d301ad0b550f1581eadbd9a20f896afe06353c2a2913/requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760", size = 131218, upload-time = "2024-05-29T15:37:49.536Z" } 414 | wheels = [ 415 | { url = "https://files.pythonhosted.org/packages/f9/9b/335f9764261e915ed497fcdeb11df5dfd6f7bf257d4a6a2a686d80da4d54/requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6", size = 64928, upload-time = "2024-05-29T15:37:47.027Z" }, 416 | ] 417 | 418 | [[package]] 419 | name = "rsa" 420 | version = "4.9.1" 421 | source = { registry = "https://pypi.org/simple" } 422 | dependencies = [ 423 | { name = "pyasn1" }, 424 | ] 425 | sdist = { url = "https://files.pythonhosted.org/packages/da/8a/22b7beea3ee0d44b1916c0c1cb0ee3af23b700b6da9f04991899d0c555d4/rsa-4.9.1.tar.gz", hash = "sha256:e7bdbfdb5497da4c07dfd35530e1a902659db6ff241e39d9953cad06ebd0ae75", size = 29034, upload-time = "2025-04-16T09:51:18.218Z" } 426 | wheels = [ 427 | { url = "https://files.pythonhosted.org/packages/64/8d/0133e4eb4beed9e425d9a98ed6e081a55d195481b7632472be1af08d2f6b/rsa-4.9.1-py3-none-any.whl", hash = "sha256:68635866661c6836b8d39430f97a996acbd61bfa49406748ea243539fe239762", size = 34696, upload-time = "2025-04-16T09:51:17.142Z" }, 428 | ] 429 | 430 | [[package]] 431 | name = "typing-extensions" 432 | version = "4.13.2" 433 | source = { registry = "https://pypi.org/simple" } 434 | sdist = { url = "https://files.pythonhosted.org/packages/f6/37/23083fcd6e35492953e8d2aaaa68b860eb422b34627b13f2ce3eb6106061/typing_extensions-4.13.2.tar.gz", hash = "sha256:e6c81219bd689f51865d9e372991c540bda33a0379d5573cddb9a3a23f7caaef", size = 106967, upload-time = "2025-04-10T14:19:05.416Z" } 435 | wheels = [ 436 | { url = "https://files.pythonhosted.org/packages/8b/54/b1ae86c0973cc6f0210b53d508ca3641fb6d0c56823f288d108bc7ab3cc8/typing_extensions-4.13.2-py3-none-any.whl", hash = "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c", size = 45806, upload-time = "2025-04-10T14:19:03.967Z" }, 437 | ] 438 | 439 | [[package]] 440 | name = "uritemplate" 441 | version = "4.1.1" 442 | source = { registry = "https://pypi.org/simple" } 443 | sdist = { url = "https://files.pythonhosted.org/packages/d2/5a/4742fdba39cd02a56226815abfa72fe0aa81c33bed16ed045647d6000eba/uritemplate-4.1.1.tar.gz", hash = "sha256:4346edfc5c3b79f694bccd6d6099a322bbeb628dbf2cd86eea55a456ce5124f0", size = 273898, upload-time = "2021-10-13T11:15:14.84Z" } 444 | wheels = [ 445 | { url = "https://files.pythonhosted.org/packages/81/c0/7461b49cd25aeece13766f02ee576d1db528f1c37ce69aee300e075b485b/uritemplate-4.1.1-py2.py3-none-any.whl", hash = "sha256:830c08b8d99bdd312ea4ead05994a38e8936266f84b9a7878232db50b044e02e", size = 10356, upload-time = "2021-10-13T11:15:12.316Z" }, 446 | ] 447 | 448 | [[package]] 449 | name = "urllib3" 450 | version = "2.4.0" 451 | source = { registry = "https://pypi.org/simple" } 452 | sdist = { url = "https://files.pythonhosted.org/packages/8a/78/16493d9c386d8e60e442a35feac5e00f0913c0f4b7c217c11e8ec2ff53e0/urllib3-2.4.0.tar.gz", hash = "sha256:414bc6535b787febd7567804cc015fee39daab8ad86268f1310a9250697de466", size = 390672, upload-time = "2025-04-10T15:23:39.232Z" } 453 | wheels = [ 454 | { url = "https://files.pythonhosted.org/packages/6b/11/cc635220681e93a0183390e26485430ca2c7b5f9d33b15c74c2861cb8091/urllib3-2.4.0-py3-none-any.whl", hash = "sha256:4e16665048960a0900c702d4a66415956a584919c03361cac9f1df5c5dd7e813", size = 128680, upload-time = "2025-04-10T15:23:37.377Z" }, 455 | ] 456 | 457 | [[package]] 458 | name = "wrapt" 459 | version = "1.17.2" 460 | source = { registry = "https://pypi.org/simple" } 461 | sdist = { url = "https://files.pythonhosted.org/packages/c3/fc/e91cc220803d7bc4db93fb02facd8461c37364151b8494762cc88b0fbcef/wrapt-1.17.2.tar.gz", hash = "sha256:41388e9d4d1522446fe79d3213196bd9e3b301a336965b9e27ca2788ebd122f3", size = 55531, upload-time = "2025-01-14T10:35:45.465Z" } 462 | wheels = [ 463 | { url = "https://files.pythonhosted.org/packages/cd/f7/a2aab2cbc7a665efab072344a8949a71081eed1d2f451f7f7d2b966594a2/wrapt-1.17.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:ff04ef6eec3eee8a5efef2401495967a916feaa353643defcc03fc74fe213b58", size = 53308, upload-time = "2025-01-14T10:33:33.992Z" }, 464 | { url = "https://files.pythonhosted.org/packages/50/ff/149aba8365fdacef52b31a258c4dc1c57c79759c335eff0b3316a2664a64/wrapt-1.17.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:4db983e7bca53819efdbd64590ee96c9213894272c776966ca6306b73e4affda", size = 38488, upload-time = "2025-01-14T10:33:35.264Z" }, 465 | { url = "https://files.pythonhosted.org/packages/65/46/5a917ce85b5c3b490d35c02bf71aedaa9f2f63f2d15d9949cc4ba56e8ba9/wrapt-1.17.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:9abc77a4ce4c6f2a3168ff34b1da9b0f311a8f1cfd694ec96b0603dff1c79438", size = 38776, upload-time = "2025-01-14T10:33:38.28Z" }, 466 | { url = "https://files.pythonhosted.org/packages/ca/74/336c918d2915a4943501c77566db41d1bd6e9f4dbc317f356b9a244dfe83/wrapt-1.17.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0b929ac182f5ace000d459c59c2c9c33047e20e935f8e39371fa6e3b85d56f4a", size = 83776, upload-time = "2025-01-14T10:33:40.678Z" }, 467 | { url = "https://files.pythonhosted.org/packages/09/99/c0c844a5ccde0fe5761d4305485297f91d67cf2a1a824c5f282e661ec7ff/wrapt-1.17.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f09b286faeff3c750a879d336fb6d8713206fc97af3adc14def0cdd349df6000", size = 75420, upload-time = "2025-01-14T10:33:41.868Z" }, 468 | { url = "https://files.pythonhosted.org/packages/b4/b0/9fc566b0fe08b282c850063591a756057c3247b2362b9286429ec5bf1721/wrapt-1.17.2-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1a7ed2d9d039bd41e889f6fb9364554052ca21ce823580f6a07c4ec245c1f5d6", size = 83199, upload-time = "2025-01-14T10:33:43.598Z" }, 469 | { url = "https://files.pythonhosted.org/packages/9d/4b/71996e62d543b0a0bd95dda485219856def3347e3e9380cc0d6cf10cfb2f/wrapt-1.17.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:129a150f5c445165ff941fc02ee27df65940fcb8a22a61828b1853c98763a64b", size = 82307, upload-time = "2025-01-14T10:33:48.499Z" }, 470 | { url = "https://files.pythonhosted.org/packages/39/35/0282c0d8789c0dc9bcc738911776c762a701f95cfe113fb8f0b40e45c2b9/wrapt-1.17.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:1fb5699e4464afe5c7e65fa51d4f99e0b2eadcc176e4aa33600a3df7801d6662", size = 75025, upload-time = "2025-01-14T10:33:51.191Z" }, 471 | { url = "https://files.pythonhosted.org/packages/4f/6d/90c9fd2c3c6fee181feecb620d95105370198b6b98a0770cba090441a828/wrapt-1.17.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9a2bce789a5ea90e51a02dfcc39e31b7f1e662bc3317979aa7e5538e3a034f72", size = 81879, upload-time = "2025-01-14T10:33:52.328Z" }, 472 | { url = "https://files.pythonhosted.org/packages/8f/fa/9fb6e594f2ce03ef03eddbdb5f4f90acb1452221a5351116c7c4708ac865/wrapt-1.17.2-cp311-cp311-win32.whl", hash = "sha256:4afd5814270fdf6380616b321fd31435a462019d834f83c8611a0ce7484c7317", size = 36419, upload-time = "2025-01-14T10:33:53.551Z" }, 473 | { url = "https://files.pythonhosted.org/packages/47/f8/fb1773491a253cbc123c5d5dc15c86041f746ed30416535f2a8df1f4a392/wrapt-1.17.2-cp311-cp311-win_amd64.whl", hash = "sha256:acc130bc0375999da18e3d19e5a86403667ac0c4042a094fefb7eec8ebac7cf3", size = 38773, upload-time = "2025-01-14T10:33:56.323Z" }, 474 | { url = "https://files.pythonhosted.org/packages/a1/bd/ab55f849fd1f9a58ed7ea47f5559ff09741b25f00c191231f9f059c83949/wrapt-1.17.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:d5e2439eecc762cd85e7bd37161d4714aa03a33c5ba884e26c81559817ca0925", size = 53799, upload-time = "2025-01-14T10:33:57.4Z" }, 475 | { url = "https://files.pythonhosted.org/packages/53/18/75ddc64c3f63988f5a1d7e10fb204ffe5762bc663f8023f18ecaf31a332e/wrapt-1.17.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:3fc7cb4c1c744f8c05cd5f9438a3caa6ab94ce8344e952d7c45a8ed59dd88392", size = 38821, upload-time = "2025-01-14T10:33:59.334Z" }, 476 | { url = "https://files.pythonhosted.org/packages/48/2a/97928387d6ed1c1ebbfd4efc4133a0633546bec8481a2dd5ec961313a1c7/wrapt-1.17.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8fdbdb757d5390f7c675e558fd3186d590973244fab0c5fe63d373ade3e99d40", size = 38919, upload-time = "2025-01-14T10:34:04.093Z" }, 477 | { url = "https://files.pythonhosted.org/packages/73/54/3bfe5a1febbbccb7a2f77de47b989c0b85ed3a6a41614b104204a788c20e/wrapt-1.17.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5bb1d0dbf99411f3d871deb6faa9aabb9d4e744d67dcaaa05399af89d847a91d", size = 88721, upload-time = "2025-01-14T10:34:07.163Z" }, 478 | { url = "https://files.pythonhosted.org/packages/25/cb/7262bc1b0300b4b64af50c2720ef958c2c1917525238d661c3e9a2b71b7b/wrapt-1.17.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d18a4865f46b8579d44e4fe1e2bcbc6472ad83d98e22a26c963d46e4c125ef0b", size = 80899, upload-time = "2025-01-14T10:34:09.82Z" }, 479 | { url = "https://files.pythonhosted.org/packages/2a/5a/04cde32b07a7431d4ed0553a76fdb7a61270e78c5fd5a603e190ac389f14/wrapt-1.17.2-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc570b5f14a79734437cb7b0500376b6b791153314986074486e0b0fa8d71d98", size = 89222, upload-time = "2025-01-14T10:34:11.258Z" }, 480 | { url = "https://files.pythonhosted.org/packages/09/28/2e45a4f4771fcfb109e244d5dbe54259e970362a311b67a965555ba65026/wrapt-1.17.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:6d9187b01bebc3875bac9b087948a2bccefe464a7d8f627cf6e48b1bbae30f82", size = 86707, upload-time = "2025-01-14T10:34:12.49Z" }, 481 | { url = "https://files.pythonhosted.org/packages/c6/d2/dcb56bf5f32fcd4bd9aacc77b50a539abdd5b6536872413fd3f428b21bed/wrapt-1.17.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:9e8659775f1adf02eb1e6f109751268e493c73716ca5761f8acb695e52a756ae", size = 79685, upload-time = "2025-01-14T10:34:15.043Z" }, 482 | { url = "https://files.pythonhosted.org/packages/80/4e/eb8b353e36711347893f502ce91c770b0b0929f8f0bed2670a6856e667a9/wrapt-1.17.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:e8b2816ebef96d83657b56306152a93909a83f23994f4b30ad4573b00bd11bb9", size = 87567, upload-time = "2025-01-14T10:34:16.563Z" }, 483 | { url = "https://files.pythonhosted.org/packages/17/27/4fe749a54e7fae6e7146f1c7d914d28ef599dacd4416566c055564080fe2/wrapt-1.17.2-cp312-cp312-win32.whl", hash = "sha256:468090021f391fe0056ad3e807e3d9034e0fd01adcd3bdfba977b6fdf4213ea9", size = 36672, upload-time = "2025-01-14T10:34:17.727Z" }, 484 | { url = "https://files.pythonhosted.org/packages/15/06/1dbf478ea45c03e78a6a8c4be4fdc3c3bddea5c8de8a93bc971415e47f0f/wrapt-1.17.2-cp312-cp312-win_amd64.whl", hash = "sha256:ec89ed91f2fa8e3f52ae53cd3cf640d6feff92ba90d62236a81e4e563ac0e991", size = 38865, upload-time = "2025-01-14T10:34:19.577Z" }, 485 | { url = "https://files.pythonhosted.org/packages/ce/b9/0ffd557a92f3b11d4c5d5e0c5e4ad057bd9eb8586615cdaf901409920b14/wrapt-1.17.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6ed6ffac43aecfe6d86ec5b74b06a5be33d5bb9243d055141e8cabb12aa08125", size = 53800, upload-time = "2025-01-14T10:34:21.571Z" }, 486 | { url = "https://files.pythonhosted.org/packages/c0/ef/8be90a0b7e73c32e550c73cfb2fa09db62234227ece47b0e80a05073b375/wrapt-1.17.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:35621ae4c00e056adb0009f8e86e28eb4a41a4bfa8f9bfa9fca7d343fe94f998", size = 38824, upload-time = "2025-01-14T10:34:22.999Z" }, 487 | { url = "https://files.pythonhosted.org/packages/36/89/0aae34c10fe524cce30fe5fc433210376bce94cf74d05b0d68344c8ba46e/wrapt-1.17.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a604bf7a053f8362d27eb9fefd2097f82600b856d5abe996d623babd067b1ab5", size = 38920, upload-time = "2025-01-14T10:34:25.386Z" }, 488 | { url = "https://files.pythonhosted.org/packages/3b/24/11c4510de906d77e0cfb5197f1b1445d4fec42c9a39ea853d482698ac681/wrapt-1.17.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5cbabee4f083b6b4cd282f5b817a867cf0b1028c54d445b7ec7cfe6505057cf8", size = 88690, upload-time = "2025-01-14T10:34:28.058Z" }, 489 | { url = "https://files.pythonhosted.org/packages/71/d7/cfcf842291267bf455b3e266c0c29dcb675b5540ee8b50ba1699abf3af45/wrapt-1.17.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:49703ce2ddc220df165bd2962f8e03b84c89fee2d65e1c24a7defff6f988f4d6", size = 80861, upload-time = "2025-01-14T10:34:29.167Z" }, 490 | { url = "https://files.pythonhosted.org/packages/d5/66/5d973e9f3e7370fd686fb47a9af3319418ed925c27d72ce16b791231576d/wrapt-1.17.2-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8112e52c5822fc4253f3901b676c55ddf288614dc7011634e2719718eaa187dc", size = 89174, upload-time = "2025-01-14T10:34:31.702Z" }, 491 | { url = "https://files.pythonhosted.org/packages/a7/d3/8e17bb70f6ae25dabc1aaf990f86824e4fd98ee9cadf197054e068500d27/wrapt-1.17.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:9fee687dce376205d9a494e9c121e27183b2a3df18037f89d69bd7b35bcf59e2", size = 86721, upload-time = "2025-01-14T10:34:32.91Z" }, 492 | { url = "https://files.pythonhosted.org/packages/6f/54/f170dfb278fe1c30d0ff864513cff526d624ab8de3254b20abb9cffedc24/wrapt-1.17.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:18983c537e04d11cf027fbb60a1e8dfd5190e2b60cc27bc0808e653e7b218d1b", size = 79763, upload-time = "2025-01-14T10:34:34.903Z" }, 493 | { url = "https://files.pythonhosted.org/packages/4a/98/de07243751f1c4a9b15c76019250210dd3486ce098c3d80d5f729cba029c/wrapt-1.17.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:703919b1633412ab54bcf920ab388735832fdcb9f9a00ae49387f0fe67dad504", size = 87585, upload-time = "2025-01-14T10:34:36.13Z" }, 494 | { url = "https://files.pythonhosted.org/packages/f9/f0/13925f4bd6548013038cdeb11ee2cbd4e37c30f8bfd5db9e5a2a370d6e20/wrapt-1.17.2-cp313-cp313-win32.whl", hash = "sha256:abbb9e76177c35d4e8568e58650aa6926040d6a9f6f03435b7a522bf1c487f9a", size = 36676, upload-time = "2025-01-14T10:34:37.962Z" }, 495 | { url = "https://files.pythonhosted.org/packages/bf/ae/743f16ef8c2e3628df3ddfd652b7d4c555d12c84b53f3d8218498f4ade9b/wrapt-1.17.2-cp313-cp313-win_amd64.whl", hash = "sha256:69606d7bb691b50a4240ce6b22ebb319c1cfb164e5f6569835058196e0f3a845", size = 38871, upload-time = "2025-01-14T10:34:39.13Z" }, 496 | { url = "https://files.pythonhosted.org/packages/3d/bc/30f903f891a82d402ffb5fda27ec1d621cc97cb74c16fea0b6141f1d4e87/wrapt-1.17.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:4a721d3c943dae44f8e243b380cb645a709ba5bd35d3ad27bc2ed947e9c68192", size = 56312, upload-time = "2025-01-14T10:34:40.604Z" }, 497 | { url = "https://files.pythonhosted.org/packages/8a/04/c97273eb491b5f1c918857cd26f314b74fc9b29224521f5b83f872253725/wrapt-1.17.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:766d8bbefcb9e00c3ac3b000d9acc51f1b399513f44d77dfe0eb026ad7c9a19b", size = 40062, upload-time = "2025-01-14T10:34:45.011Z" }, 498 | { url = "https://files.pythonhosted.org/packages/4e/ca/3b7afa1eae3a9e7fefe499db9b96813f41828b9fdb016ee836c4c379dadb/wrapt-1.17.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e496a8ce2c256da1eb98bd15803a79bee00fc351f5dfb9ea82594a3f058309e0", size = 40155, upload-time = "2025-01-14T10:34:47.25Z" }, 499 | { url = "https://files.pythonhosted.org/packages/89/be/7c1baed43290775cb9030c774bc53c860db140397047cc49aedaf0a15477/wrapt-1.17.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:40d615e4fe22f4ad3528448c193b218e077656ca9ccb22ce2cb20db730f8d306", size = 113471, upload-time = "2025-01-14T10:34:50.934Z" }, 500 | { url = "https://files.pythonhosted.org/packages/32/98/4ed894cf012b6d6aae5f5cc974006bdeb92f0241775addad3f8cd6ab71c8/wrapt-1.17.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a5aaeff38654462bc4b09023918b7f21790efb807f54c000a39d41d69cf552cb", size = 101208, upload-time = "2025-01-14T10:34:52.297Z" }, 501 | { url = "https://files.pythonhosted.org/packages/ea/fd/0c30f2301ca94e655e5e057012e83284ce8c545df7661a78d8bfca2fac7a/wrapt-1.17.2-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9a7d15bbd2bc99e92e39f49a04653062ee6085c0e18b3b7512a4f2fe91f2d681", size = 109339, upload-time = "2025-01-14T10:34:53.489Z" }, 502 | { url = "https://files.pythonhosted.org/packages/75/56/05d000de894c4cfcb84bcd6b1df6214297b8089a7bd324c21a4765e49b14/wrapt-1.17.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:e3890b508a23299083e065f435a492b5435eba6e304a7114d2f919d400888cc6", size = 110232, upload-time = "2025-01-14T10:34:55.327Z" }, 503 | { url = "https://files.pythonhosted.org/packages/53/f8/c3f6b2cf9b9277fb0813418e1503e68414cd036b3b099c823379c9575e6d/wrapt-1.17.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:8c8b293cd65ad716d13d8dd3624e42e5a19cc2a2f1acc74b30c2c13f15cb61a6", size = 100476, upload-time = "2025-01-14T10:34:58.055Z" }, 504 | { url = "https://files.pythonhosted.org/packages/a7/b1/0bb11e29aa5139d90b770ebbfa167267b1fc548d2302c30c8f7572851738/wrapt-1.17.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:4c82b8785d98cdd9fed4cac84d765d234ed3251bd6afe34cb7ac523cb93e8b4f", size = 106377, upload-time = "2025-01-14T10:34:59.3Z" }, 505 | { url = "https://files.pythonhosted.org/packages/6a/e1/0122853035b40b3f333bbb25f1939fc1045e21dd518f7f0922b60c156f7c/wrapt-1.17.2-cp313-cp313t-win32.whl", hash = "sha256:13e6afb7fe71fe7485a4550a8844cc9ffbe263c0f1a1eea569bc7091d4898555", size = 37986, upload-time = "2025-01-14T10:35:00.498Z" }, 506 | { url = "https://files.pythonhosted.org/packages/09/5e/1655cf481e079c1f22d0cabdd4e51733679932718dc23bf2db175f329b76/wrapt-1.17.2-cp313-cp313t-win_amd64.whl", hash = "sha256:eaf675418ed6b3b31c7a989fd007fa7c3be66ce14e5c3b27336383604c9da85c", size = 40750, upload-time = "2025-01-14T10:35:03.378Z" }, 507 | { url = "https://files.pythonhosted.org/packages/2d/82/f56956041adef78f849db6b289b282e72b55ab8045a75abad81898c28d19/wrapt-1.17.2-py3-none-any.whl", hash = "sha256:b18f2d1533a71f069c7f82d524a52599053d4c7166e9dd374ae2136b7f40f7c8", size = 23594, upload-time = "2025-01-14T10:35:44.018Z" }, 508 | ] 509 | 510 | [[package]] 511 | name = "zipp" 512 | version = "3.21.0" 513 | source = { registry = "https://pypi.org/simple" } 514 | sdist = { url = "https://files.pythonhosted.org/packages/3f/50/bad581df71744867e9468ebd0bcd6505de3b275e06f202c2cb016e3ff56f/zipp-3.21.0.tar.gz", hash = "sha256:2c9958f6430a2040341a52eb608ed6dd93ef4392e02ffe219417c1b28b5dd1f4", size = 24545, upload-time = "2024-11-10T15:05:20.202Z" } 515 | wheels = [ 516 | { url = "https://files.pythonhosted.org/packages/b7/1a/7e4798e9339adc931158c9d69ecc34f5e6791489d469f5e50ec15e35f458/zipp-3.21.0-py3-none-any.whl", hash = "sha256:ac1bbe05fd2991f160ebce24ffbac5f6d11d83dc90891255885223d42b3cd931", size = 9630, upload-time = "2024-11-10T15:05:19.275Z" }, 517 | ] 518 | -------------------------------------------------------------------------------- /tests/gunicorn/.dockerignore: -------------------------------------------------------------------------------- 1 | .dockerignore 2 | *.md 3 | Dockerfile 4 | -------------------------------------------------------------------------------- /tests/gunicorn/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG PYTHON_VERSION 2 | ARG DEBIAN_NAME 3 | ARG PYTHON_DISTROLESS_IMAGE 4 | 5 | FROM python:${PYTHON_VERSION}-slim-${DEBIAN_NAME} AS builder 6 | 7 | WORKDIR /tmp 8 | COPY poetry.lock pyproject.toml ./ 9 | 10 | ARG VIRTUAL_ENV=/home/venv 11 | 12 | RUN pip --quiet --no-cache-dir install --upgrade pip && \ 13 | pip --quiet --no-cache-dir install poetry && \ 14 | poetry config virtualenvs.create false && \ 15 | python -m venv ${VIRTUAL_ENV} && \ 16 | . ${VIRTUAL_ENV}/bin/activate && \ 17 | poetry install --no-root --only main 18 | 19 | # ------------------------------------------------------------------ 20 | 21 | FROM ${PYTHON_DISTROLESS_IMAGE} 22 | 23 | ARG VIRTUAL_ENV=/home/venv 24 | 25 | WORKDIR /app 26 | COPY --chown=1000:1000 *.py /app/ 27 | COPY --chown=1000:1000 --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV} 28 | 29 | ENTRYPOINT ["/home/venv/bin/python", "run.py", "-b", "0.0.0.0:5000", "app:app"] 30 | -------------------------------------------------------------------------------- /tests/gunicorn/README.md: -------------------------------------------------------------------------------- 1 | # gitlab-distroless-python-test 2 | 3 | Simple gunicorn/flask app. Note the use of `run.py` to deal with entrypoint lack of shell shenanigans. 4 | 5 | This repo was converted from an initial pipenv-based one to use poetry, as poetry is capable of supporting both python 3.9 and 3.10, whereas the Pipfile does not support this. This caused a particular issue for this test, as Flask depends on `importlib-metadata`, which is built into 3.10 but not in 3.9. Pipfile.lock file issues ensued! 6 | 7 | --- 8 | 9 | ## Usage 10 | 11 | Flask: 12 | 13 | ```sh 14 | pip install poetry 15 | poetry install 16 | poetry run python app.py 17 | ``` 18 | 19 | Gunicorn: 20 | 21 | ```sh 22 | docker build --build-arg=PYTHON_VERSION=3.12 --build-arg=DEBIAN_NAME=bookworm --build-arg=PYTHON_DISTROLESS_IMAGE=al3xos/python-distroless:3.12-debian12 -t gunicorn-test . 23 | docker run --rm -p 5000:5000 gunicorn-test 24 | ``` 25 | -------------------------------------------------------------------------------- /tests/gunicorn/app.py: -------------------------------------------------------------------------------- 1 | from flask import Flask 2 | 3 | app = Flask(__name__) 4 | 5 | @app.route("/") 6 | def hello(): 7 | return "Hello there from flask/gunicorn" 8 | 9 | if __name__ == "__main__": 10 | app.run(host="0.0.0.0", debug=True) 11 | -------------------------------------------------------------------------------- /tests/gunicorn/poetry.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand. 2 | 3 | [[package]] 4 | name = "blinker" 5 | version = "1.9.0" 6 | description = "Fast, simple object-to-object and broadcast signaling" 7 | optional = false 8 | python-versions = ">=3.9" 9 | files = [ 10 | {file = "blinker-1.9.0-py3-none-any.whl", hash = "sha256:ba0efaa9080b619ff2f3459d1d500c57bddea4a6b424b60a91141db6fd2f08bc"}, 11 | {file = "blinker-1.9.0.tar.gz", hash = "sha256:b4ce2265a7abece45e7cc896e98dbebe6cead56bcf805a3d23136d145f5445bf"}, 12 | ] 13 | 14 | [[package]] 15 | name = "click" 16 | version = "8.1.8" 17 | description = "Composable command line interface toolkit" 18 | optional = false 19 | python-versions = ">=3.7" 20 | files = [ 21 | {file = "click-8.1.8-py3-none-any.whl", hash = "sha256:63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2"}, 22 | {file = "click-8.1.8.tar.gz", hash = "sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a"}, 23 | ] 24 | 25 | [package.dependencies] 26 | colorama = {version = "*", markers = "platform_system == \"Windows\""} 27 | 28 | [[package]] 29 | name = "colorama" 30 | version = "0.4.6" 31 | description = "Cross-platform colored terminal text." 32 | optional = false 33 | python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" 34 | files = [ 35 | {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, 36 | {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, 37 | ] 38 | 39 | [[package]] 40 | name = "flask" 41 | version = "3.1.0" 42 | description = "A simple framework for building complex web applications." 43 | optional = false 44 | python-versions = ">=3.9" 45 | files = [ 46 | {file = "flask-3.1.0-py3-none-any.whl", hash = "sha256:d667207822eb83f1c4b50949b1623c8fc8d51f2341d65f72e1a1815397551136"}, 47 | {file = "flask-3.1.0.tar.gz", hash = "sha256:5f873c5184c897c8d9d1b05df1e3d01b14910ce69607a117bd3277098a5836ac"}, 48 | ] 49 | 50 | [package.dependencies] 51 | blinker = ">=1.9" 52 | click = ">=8.1.3" 53 | importlib-metadata = {version = ">=3.6", markers = "python_version < \"3.10\""} 54 | itsdangerous = ">=2.2" 55 | Jinja2 = ">=3.1.2" 56 | Werkzeug = ">=3.1" 57 | 58 | [package.extras] 59 | async = ["asgiref (>=3.2)"] 60 | dotenv = ["python-dotenv"] 61 | 62 | [[package]] 63 | name = "gunicorn" 64 | version = "23.0.0" 65 | description = "WSGI HTTP Server for UNIX" 66 | optional = false 67 | python-versions = ">=3.7" 68 | files = [ 69 | {file = "gunicorn-23.0.0-py3-none-any.whl", hash = "sha256:ec400d38950de4dfd418cff8328b2c8faed0edb0d517d3394e457c317908ca4d"}, 70 | {file = "gunicorn-23.0.0.tar.gz", hash = "sha256:f014447a0101dc57e294f6c18ca6b40227a4c90e9bdb586042628030cba004ec"}, 71 | ] 72 | 73 | [package.dependencies] 74 | packaging = "*" 75 | 76 | [package.extras] 77 | eventlet = ["eventlet (>=0.24.1,!=0.36.0)"] 78 | gevent = ["gevent (>=1.4.0)"] 79 | setproctitle = ["setproctitle"] 80 | testing = ["coverage", "eventlet", "gevent", "pytest", "pytest-cov"] 81 | tornado = ["tornado (>=0.2)"] 82 | 83 | [[package]] 84 | name = "importlib-metadata" 85 | version = "8.6.1" 86 | description = "Read metadata from Python packages" 87 | optional = false 88 | python-versions = ">=3.9" 89 | files = [ 90 | {file = "importlib_metadata-8.6.1-py3-none-any.whl", hash = "sha256:02a89390c1e15fdfdc0d7c6b25cb3e62650d0494005c97d6f148bf5b9787525e"}, 91 | {file = "importlib_metadata-8.6.1.tar.gz", hash = "sha256:310b41d755445d74569f993ccfc22838295d9fe005425094fad953d7f15c8580"}, 92 | ] 93 | 94 | [package.dependencies] 95 | zipp = ">=3.20" 96 | 97 | [package.extras] 98 | check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1)"] 99 | cover = ["pytest-cov"] 100 | doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] 101 | enabler = ["pytest-enabler (>=2.2)"] 102 | perf = ["ipython"] 103 | test = ["flufl.flake8", "importlib_resources (>=1.3)", "jaraco.test (>=5.4)", "packaging", "pyfakefs", "pytest (>=6,!=8.1.*)", "pytest-perf (>=0.9.2)"] 104 | type = ["pytest-mypy"] 105 | 106 | [[package]] 107 | name = "itsdangerous" 108 | version = "2.2.0" 109 | description = "Safely pass data to untrusted environments and back." 110 | optional = false 111 | python-versions = ">=3.8" 112 | files = [ 113 | {file = "itsdangerous-2.2.0-py3-none-any.whl", hash = "sha256:c6242fc49e35958c8b15141343aa660db5fc54d4f13a1db01a3f5891b98700ef"}, 114 | {file = "itsdangerous-2.2.0.tar.gz", hash = "sha256:e0050c0b7da1eea53ffaf149c0cfbb5c6e2e2b69c4bef22c81fa6eb73e5f6173"}, 115 | ] 116 | 117 | [[package]] 118 | name = "jinja2" 119 | version = "3.1.5" 120 | description = "A very fast and expressive template engine." 121 | optional = false 122 | python-versions = ">=3.7" 123 | files = [ 124 | {file = "jinja2-3.1.5-py3-none-any.whl", hash = "sha256:aba0f4dc9ed8013c424088f68a5c226f7d6097ed89b246d7749c2ec4175c6adb"}, 125 | {file = "jinja2-3.1.5.tar.gz", hash = "sha256:8fefff8dc3034e27bb80d67c671eb8a9bc424c0ef4c0826edbff304cceff43bb"}, 126 | ] 127 | 128 | [package.dependencies] 129 | MarkupSafe = ">=2.0" 130 | 131 | [package.extras] 132 | i18n = ["Babel (>=2.7)"] 133 | 134 | [[package]] 135 | name = "markupsafe" 136 | version = "3.0.2" 137 | description = "Safely add untrusted strings to HTML/XML markup." 138 | optional = false 139 | python-versions = ">=3.9" 140 | files = [ 141 | {file = "MarkupSafe-3.0.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:7e94c425039cde14257288fd61dcfb01963e658efbc0ff54f5306b06054700f8"}, 142 | {file = "MarkupSafe-3.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9e2d922824181480953426608b81967de705c3cef4d1af983af849d7bd619158"}, 143 | {file = "MarkupSafe-3.0.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:38a9ef736c01fccdd6600705b09dc574584b89bea478200c5fbf112a6b0d5579"}, 144 | {file = "MarkupSafe-3.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bbcb445fa71794da8f178f0f6d66789a28d7319071af7a496d4d507ed566270d"}, 145 | {file = "MarkupSafe-3.0.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:57cb5a3cf367aeb1d316576250f65edec5bb3be939e9247ae594b4bcbc317dfb"}, 146 | {file = "MarkupSafe-3.0.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:3809ede931876f5b2ec92eef964286840ed3540dadf803dd570c3b7e13141a3b"}, 147 | {file = "MarkupSafe-3.0.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:e07c3764494e3776c602c1e78e298937c3315ccc9043ead7e685b7f2b8d47b3c"}, 148 | {file = "MarkupSafe-3.0.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:b424c77b206d63d500bcb69fa55ed8d0e6a3774056bdc4839fc9298a7edca171"}, 149 | {file = "MarkupSafe-3.0.2-cp310-cp310-win32.whl", hash = "sha256:fcabf5ff6eea076f859677f5f0b6b5c1a51e70a376b0579e0eadef8db48c6b50"}, 150 | {file = "MarkupSafe-3.0.2-cp310-cp310-win_amd64.whl", hash = "sha256:6af100e168aa82a50e186c82875a5893c5597a0c1ccdb0d8b40240b1f28b969a"}, 151 | {file = "MarkupSafe-3.0.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:9025b4018f3a1314059769c7bf15441064b2207cb3f065e6ea1e7359cb46db9d"}, 152 | {file = "MarkupSafe-3.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:93335ca3812df2f366e80509ae119189886b0f3c2b81325d39efdb84a1e2ae93"}, 153 | {file = "MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2cb8438c3cbb25e220c2ab33bb226559e7afb3baec11c4f218ffa7308603c832"}, 154 | {file = "MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a123e330ef0853c6e822384873bef7507557d8e4a082961e1defa947aa59ba84"}, 155 | {file = "MarkupSafe-3.0.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1e084f686b92e5b83186b07e8a17fc09e38fff551f3602b249881fec658d3eca"}, 156 | {file = "MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d8213e09c917a951de9d09ecee036d5c7d36cb6cb7dbaece4c71a60d79fb9798"}, 157 | {file = "MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:5b02fb34468b6aaa40dfc198d813a641e3a63b98c2b05a16b9f80b7ec314185e"}, 158 | {file = "MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:0bff5e0ae4ef2e1ae4fdf2dfd5b76c75e5c2fa4132d05fc1b0dabcd20c7e28c4"}, 159 | {file = "MarkupSafe-3.0.2-cp311-cp311-win32.whl", hash = "sha256:6c89876f41da747c8d3677a2b540fb32ef5715f97b66eeb0c6b66f5e3ef6f59d"}, 160 | {file = "MarkupSafe-3.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:70a87b411535ccad5ef2f1df5136506a10775d267e197e4cf531ced10537bd6b"}, 161 | {file = "MarkupSafe-3.0.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:9778bd8ab0a994ebf6f84c2b949e65736d5575320a17ae8984a77fab08db94cf"}, 162 | {file = "MarkupSafe-3.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:846ade7b71e3536c4e56b386c2a47adf5741d2d8b94ec9dc3e92e5e1ee1e2225"}, 163 | {file = "MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1c99d261bd2d5f6b59325c92c73df481e05e57f19837bdca8413b9eac4bd8028"}, 164 | {file = "MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e17c96c14e19278594aa4841ec148115f9c7615a47382ecb6b82bd8fea3ab0c8"}, 165 | {file = "MarkupSafe-3.0.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:88416bd1e65dcea10bc7569faacb2c20ce071dd1f87539ca2ab364bf6231393c"}, 166 | {file = "MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2181e67807fc2fa785d0592dc2d6206c019b9502410671cc905d132a92866557"}, 167 | {file = "MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:52305740fe773d09cffb16f8ed0427942901f00adedac82ec8b67752f58a1b22"}, 168 | {file = "MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ad10d3ded218f1039f11a75f8091880239651b52e9bb592ca27de44eed242a48"}, 169 | {file = "MarkupSafe-3.0.2-cp312-cp312-win32.whl", hash = "sha256:0f4ca02bea9a23221c0182836703cbf8930c5e9454bacce27e767509fa286a30"}, 170 | {file = "MarkupSafe-3.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:8e06879fc22a25ca47312fbe7c8264eb0b662f6db27cb2d3bbbc74b1df4b9b87"}, 171 | {file = "MarkupSafe-3.0.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ba9527cdd4c926ed0760bc301f6728ef34d841f405abf9d4f959c478421e4efd"}, 172 | {file = "MarkupSafe-3.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f8b3d067f2e40fe93e1ccdd6b2e1d16c43140e76f02fb1319a05cf2b79d99430"}, 173 | {file = "MarkupSafe-3.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:569511d3b58c8791ab4c2e1285575265991e6d8f8700c7be0e88f86cb0672094"}, 174 | {file = "MarkupSafe-3.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:15ab75ef81add55874e7ab7055e9c397312385bd9ced94920f2802310c930396"}, 175 | {file = "MarkupSafe-3.0.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f3818cb119498c0678015754eba762e0d61e5b52d34c8b13d770f0719f7b1d79"}, 176 | {file = "MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:cdb82a876c47801bb54a690c5ae105a46b392ac6099881cdfb9f6e95e4014c6a"}, 177 | {file = "MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:cabc348d87e913db6ab4aa100f01b08f481097838bdddf7c7a84b7575b7309ca"}, 178 | {file = "MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:444dcda765c8a838eaae23112db52f1efaf750daddb2d9ca300bcae1039adc5c"}, 179 | {file = "MarkupSafe-3.0.2-cp313-cp313-win32.whl", hash = "sha256:bcf3e58998965654fdaff38e58584d8937aa3096ab5354d493c77d1fdd66d7a1"}, 180 | {file = "MarkupSafe-3.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:e6a2a455bd412959b57a172ce6328d2dd1f01cb2135efda2e4576e8a23fa3b0f"}, 181 | {file = "MarkupSafe-3.0.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:b5a6b3ada725cea8a5e634536b1b01c30bcdcd7f9c6fff4151548d5bf6b3a36c"}, 182 | {file = "MarkupSafe-3.0.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:a904af0a6162c73e3edcb969eeeb53a63ceeb5d8cf642fade7d39e7963a22ddb"}, 183 | {file = "MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4aa4e5faecf353ed117801a068ebab7b7e09ffb6e1d5e412dc852e0da018126c"}, 184 | {file = "MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0ef13eaeee5b615fb07c9a7dadb38eac06a0608b41570d8ade51c56539e509d"}, 185 | {file = "MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d16a81a06776313e817c951135cf7340a3e91e8c1ff2fac444cfd75fffa04afe"}, 186 | {file = "MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:6381026f158fdb7c72a168278597a5e3a5222e83ea18f543112b2662a9b699c5"}, 187 | {file = "MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:3d79d162e7be8f996986c064d1c7c817f6df3a77fe3d6859f6f9e7be4b8c213a"}, 188 | {file = "MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:131a3c7689c85f5ad20f9f6fb1b866f402c445b220c19fe4308c0b147ccd2ad9"}, 189 | {file = "MarkupSafe-3.0.2-cp313-cp313t-win32.whl", hash = "sha256:ba8062ed2cf21c07a9e295d5b8a2a5ce678b913b45fdf68c32d95d6c1291e0b6"}, 190 | {file = "MarkupSafe-3.0.2-cp313-cp313t-win_amd64.whl", hash = "sha256:e444a31f8db13eb18ada366ab3cf45fd4b31e4db1236a4448f68778c1d1a5a2f"}, 191 | {file = "MarkupSafe-3.0.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:eaa0a10b7f72326f1372a713e73c3f739b524b3af41feb43e4921cb529f5929a"}, 192 | {file = "MarkupSafe-3.0.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:48032821bbdf20f5799ff537c7ac3d1fba0ba032cfc06194faffa8cda8b560ff"}, 193 | {file = "MarkupSafe-3.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1a9d3f5f0901fdec14d8d2f66ef7d035f2157240a433441719ac9a3fba440b13"}, 194 | {file = "MarkupSafe-3.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:88b49a3b9ff31e19998750c38e030fc7bb937398b1f78cfa599aaef92d693144"}, 195 | {file = "MarkupSafe-3.0.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cfad01eed2c2e0c01fd0ecd2ef42c492f7f93902e39a42fc9ee1692961443a29"}, 196 | {file = "MarkupSafe-3.0.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:1225beacc926f536dc82e45f8a4d68502949dc67eea90eab715dea3a21c1b5f0"}, 197 | {file = "MarkupSafe-3.0.2-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:3169b1eefae027567d1ce6ee7cae382c57fe26e82775f460f0b2778beaad66c0"}, 198 | {file = "MarkupSafe-3.0.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:eb7972a85c54febfb25b5c4b4f3af4dcc731994c7da0d8a0b4a6eb0640e1d178"}, 199 | {file = "MarkupSafe-3.0.2-cp39-cp39-win32.whl", hash = "sha256:8c4e8c3ce11e1f92f6536ff07154f9d49677ebaaafc32db9db4620bc11ed480f"}, 200 | {file = "MarkupSafe-3.0.2-cp39-cp39-win_amd64.whl", hash = "sha256:6e296a513ca3d94054c2c881cc913116e90fd030ad1c656b3869762b754f5f8a"}, 201 | {file = "markupsafe-3.0.2.tar.gz", hash = "sha256:ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0"}, 202 | ] 203 | 204 | [[package]] 205 | name = "packaging" 206 | version = "24.2" 207 | description = "Core utilities for Python packages" 208 | optional = false 209 | python-versions = ">=3.8" 210 | files = [ 211 | {file = "packaging-24.2-py3-none-any.whl", hash = "sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759"}, 212 | {file = "packaging-24.2.tar.gz", hash = "sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f"}, 213 | ] 214 | 215 | [[package]] 216 | name = "werkzeug" 217 | version = "3.1.3" 218 | description = "The comprehensive WSGI web application library." 219 | optional = false 220 | python-versions = ">=3.9" 221 | files = [ 222 | {file = "werkzeug-3.1.3-py3-none-any.whl", hash = "sha256:54b78bf3716d19a65be4fceccc0d1d7b89e608834989dfae50ea87564639213e"}, 223 | {file = "werkzeug-3.1.3.tar.gz", hash = "sha256:60723ce945c19328679790e3282cc758aa4a6040e4bb330f53d30fa546d44746"}, 224 | ] 225 | 226 | [package.dependencies] 227 | MarkupSafe = ">=2.1.1" 228 | 229 | [package.extras] 230 | watchdog = ["watchdog (>=2.3)"] 231 | 232 | [[package]] 233 | name = "zipp" 234 | version = "3.21.0" 235 | description = "Backport of pathlib-compatible object wrapper for zip files" 236 | optional = false 237 | python-versions = ">=3.9" 238 | files = [ 239 | {file = "zipp-3.21.0-py3-none-any.whl", hash = "sha256:ac1bbe05fd2991f160ebce24ffbac5f6d11d83dc90891255885223d42b3cd931"}, 240 | {file = "zipp-3.21.0.tar.gz", hash = "sha256:2c9958f6430a2040341a52eb608ed6dd93ef4392e02ffe219417c1b28b5dd1f4"}, 241 | ] 242 | 243 | [package.extras] 244 | check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1)"] 245 | cover = ["pytest-cov"] 246 | doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] 247 | enabler = ["pytest-enabler (>=2.2)"] 248 | test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-ignore-flaky"] 249 | type = ["pytest-mypy"] 250 | 251 | [metadata] 252 | lock-version = "2.0" 253 | python-versions = ">=3.9" 254 | content-hash = "de73347546d0f4abf5a591dfaad89224eea11385f2a52f04475c6df096889215" 255 | -------------------------------------------------------------------------------- /tests/gunicorn/pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.poetry] 2 | name = "gunicorn-test" 3 | version = "0.1.0" 4 | description = "" 5 | authors = ["Alex Moss "] 6 | 7 | [tool.poetry.dependencies] 8 | python = ">=3.9" 9 | Flask = "^3.0.0" 10 | gunicorn = "^23.0.0" 11 | 12 | [tool.poetry.dev-dependencies] 13 | 14 | [build-system] 15 | requires = ["poetry-core>=1.0.0"] 16 | build-backend = "poetry.core.masonry.api" 17 | -------------------------------------------------------------------------------- /tests/gunicorn/run.py: -------------------------------------------------------------------------------- 1 | import sys 2 | from gunicorn.app.wsgiapp import run 3 | 4 | if __name__ == '__main__': 5 | sys.exit(run()) 6 | -------------------------------------------------------------------------------- /tests/hello-world/.dockerignore: -------------------------------------------------------------------------------- 1 | .dockerignore 2 | Dockerfile 3 | -------------------------------------------------------------------------------- /tests/hello-world/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG PYTHON_VERSION 2 | ARG DEBIAN_NAME 3 | ARG PYTHON_DISTROLESS_IMAGE 4 | 5 | FROM python:${PYTHON_VERSION}-slim-${DEBIAN_NAME} AS build-env 6 | RUN mkdir /app 7 | COPY hello.py /app 8 | WORKDIR /app 9 | 10 | FROM ${PYTHON_DISTROLESS_IMAGE} 11 | 12 | WORKDIR /app 13 | COPY --chown=1000:1000 --from=build-env /app /app 14 | 15 | CMD ["hello.py"] 16 | -------------------------------------------------------------------------------- /tests/hello-world/hello.py: -------------------------------------------------------------------------------- 1 | 2 | if __name__ == '__main__': 3 | print('hello there') 4 | -------------------------------------------------------------------------------- /tests/kubernetes/.dockerignore: -------------------------------------------------------------------------------- 1 | .dockerignore 2 | *.yaml 3 | *.sh 4 | Dockerfile 5 | -------------------------------------------------------------------------------- /tests/kubernetes/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG PYTHON_VERSION 2 | ARG DEBIAN_NAME 3 | ARG PYTHON_DISTROLESS_IMAGE 4 | 5 | FROM python:${PYTHON_VERSION}-slim-${DEBIAN_NAME} AS builder 6 | 7 | RUN pip --quiet --no-cache-dir install pipenv 8 | COPY Pipfile Pipfile.lock ./ 9 | RUN PIPENV_VENV_IN_PROJECT=1 pipenv install --deploy 10 | 11 | # ------------------------------------------------------------------ 12 | 13 | FROM ${PYTHON_DISTROLESS_IMAGE} 14 | ARG PYTHON_VERSION 15 | 16 | WORKDIR /app 17 | COPY --chown=1000:1000 *.py . 18 | COPY --chown=1000:1000 --from=builder /.venv /.venv 19 | 20 | ENTRYPOINT [ "/.venv/bin/python", "app.py", "--namespace", "default" ] 21 | -------------------------------------------------------------------------------- /tests/kubernetes/Pipfile: -------------------------------------------------------------------------------- 1 | [[source]] 2 | name = "pypi" 3 | url = "https://pypi.org/simple" 4 | verify_ssl = true 5 | 6 | [dev-packages] 7 | 8 | [packages] 9 | kubernetes = "*" 10 | click = "*" 11 | 12 | [requires] 13 | python_version = "3" 14 | -------------------------------------------------------------------------------- /tests/kubernetes/Pipfile.lock: -------------------------------------------------------------------------------- 1 | { 2 | "_meta": { 3 | "hash": { 4 | "sha256": "4520669b93b183d5acd429e19caa805ce7727bb49a9ada0e76aa174ddd7c1de0" 5 | }, 6 | "pipfile-spec": 6, 7 | "requires": { 8 | "python_version": "3" 9 | }, 10 | "sources": [ 11 | { 12 | "name": "pypi", 13 | "url": "https://pypi.org/simple", 14 | "verify_ssl": true 15 | } 16 | ] 17 | }, 18 | "default": { 19 | "cachetools": { 20 | "hashes": [ 21 | "sha256:086ee420196f7b2ab9ca2db2520aca326318b68fe5ba8bc4d49cca91add450f2", 22 | "sha256:861f35a13a451f94e301ce2bec7cac63e881232ccce7ed67fab9b5df4d3beaa1" 23 | ], 24 | "markers": "python_version >= '3.7'", 25 | "version": "==5.3.2" 26 | }, 27 | "certifi": { 28 | "hashes": [ 29 | "sha256:539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082", 30 | "sha256:92d6037539857d8206b8f6ae472e8b77db8058fec5937a1ef3f54304089edbb9" 31 | ], 32 | "markers": "python_version >= '3.6'", 33 | "version": "==2023.7.22" 34 | }, 35 | "charset-normalizer": { 36 | "hashes": [ 37 | "sha256:06435b539f889b1f6f4ac1758871aae42dc3a8c0e24ac9e60c2384973ad73027", 38 | "sha256:06a81e93cd441c56a9b65d8e1d043daeb97a3d0856d177d5c90ba85acb3db087", 39 | "sha256:0a55554a2fa0d408816b3b5cedf0045f4b8e1a6065aec45849de2d6f3f8e9786", 40 | "sha256:0b2b64d2bb6d3fb9112bafa732def486049e63de9618b5843bcdd081d8144cd8", 41 | "sha256:10955842570876604d404661fbccbc9c7e684caf432c09c715ec38fbae45ae09", 42 | "sha256:122c7fa62b130ed55f8f285bfd56d5f4b4a5b503609d181f9ad85e55c89f4185", 43 | "sha256:1ceae2f17a9c33cb48e3263960dc5fc8005351ee19db217e9b1bb15d28c02574", 44 | "sha256:1d3193f4a680c64b4b6a9115943538edb896edc190f0b222e73761716519268e", 45 | "sha256:1f79682fbe303db92bc2b1136016a38a42e835d932bab5b3b1bfcfbf0640e519", 46 | "sha256:2127566c664442652f024c837091890cb1942c30937add288223dc895793f898", 47 | "sha256:22afcb9f253dac0696b5a4be4a1c0f8762f8239e21b99680099abd9b2b1b2269", 48 | "sha256:25baf083bf6f6b341f4121c2f3c548875ee6f5339300e08be3f2b2ba1721cdd3", 49 | "sha256:2e81c7b9c8979ce92ed306c249d46894776a909505d8f5a4ba55b14206e3222f", 50 | "sha256:3287761bc4ee9e33561a7e058c72ac0938c4f57fe49a09eae428fd88aafe7bb6", 51 | "sha256:34d1c8da1e78d2e001f363791c98a272bb734000fcef47a491c1e3b0505657a8", 52 | "sha256:37e55c8e51c236f95b033f6fb391d7d7970ba5fe7ff453dad675e88cf303377a", 53 | "sha256:3d47fa203a7bd9c5b6cee4736ee84ca03b8ef23193c0d1ca99b5089f72645c73", 54 | "sha256:3e4d1f6587322d2788836a99c69062fbb091331ec940e02d12d179c1d53e25fc", 55 | "sha256:42cb296636fcc8b0644486d15c12376cb9fa75443e00fb25de0b8602e64c1714", 56 | "sha256:45485e01ff4d3630ec0d9617310448a8702f70e9c01906b0d0118bdf9d124cf2", 57 | "sha256:4a78b2b446bd7c934f5dcedc588903fb2f5eec172f3d29e52a9096a43722adfc", 58 | "sha256:4ab2fe47fae9e0f9dee8c04187ce5d09f48eabe611be8259444906793ab7cbce", 59 | "sha256:4d0d1650369165a14e14e1e47b372cfcb31d6ab44e6e33cb2d4e57265290044d", 60 | "sha256:549a3a73da901d5bc3ce8d24e0600d1fa85524c10287f6004fbab87672bf3e1e", 61 | "sha256:55086ee1064215781fff39a1af09518bc9255b50d6333f2e4c74ca09fac6a8f6", 62 | "sha256:572c3763a264ba47b3cf708a44ce965d98555f618ca42c926a9c1616d8f34269", 63 | "sha256:573f6eac48f4769d667c4442081b1794f52919e7edada77495aaed9236d13a96", 64 | "sha256:5b4c145409bef602a690e7cfad0a15a55c13320ff7a3ad7ca59c13bb8ba4d45d", 65 | "sha256:6463effa3186ea09411d50efc7d85360b38d5f09b870c48e4600f63af490e56a", 66 | "sha256:65f6f63034100ead094b8744b3b97965785388f308a64cf8d7c34f2f2e5be0c4", 67 | "sha256:663946639d296df6a2bb2aa51b60a2454ca1cb29835324c640dafb5ff2131a77", 68 | "sha256:6897af51655e3691ff853668779c7bad41579facacf5fd7253b0133308cf000d", 69 | "sha256:68d1f8a9e9e37c1223b656399be5d6b448dea850bed7d0f87a8311f1ff3dabb0", 70 | "sha256:6ac7ffc7ad6d040517be39eb591cac5ff87416c2537df6ba3cba3bae290c0fed", 71 | "sha256:6b3251890fff30ee142c44144871185dbe13b11bab478a88887a639655be1068", 72 | "sha256:6c4caeef8fa63d06bd437cd4bdcf3ffefe6738fb1b25951440d80dc7df8c03ac", 73 | "sha256:6ef1d82a3af9d3eecdba2321dc1b3c238245d890843e040e41e470ffa64c3e25", 74 | "sha256:753f10e867343b4511128c6ed8c82f7bec3bd026875576dfd88483c5c73b2fd8", 75 | "sha256:7cd13a2e3ddeed6913a65e66e94b51d80a041145a026c27e6bb76c31a853c6ab", 76 | "sha256:7ed9e526742851e8d5cc9e6cf41427dfc6068d4f5a3bb03659444b4cabf6bc26", 77 | "sha256:7f04c839ed0b6b98b1a7501a002144b76c18fb1c1850c8b98d458ac269e26ed2", 78 | "sha256:802fe99cca7457642125a8a88a084cef28ff0cf9407060f7b93dca5aa25480db", 79 | "sha256:80402cd6ee291dcb72644d6eac93785fe2c8b9cb30893c1af5b8fdd753b9d40f", 80 | "sha256:8465322196c8b4d7ab6d1e049e4c5cb460d0394da4a27d23cc242fbf0034b6b5", 81 | "sha256:86216b5cee4b06df986d214f664305142d9c76df9b6512be2738aa72a2048f99", 82 | "sha256:87d1351268731db79e0f8e745d92493ee2841c974128ef629dc518b937d9194c", 83 | "sha256:8bdb58ff7ba23002a4c5808d608e4e6c687175724f54a5dade5fa8c67b604e4d", 84 | "sha256:8c622a5fe39a48f78944a87d4fb8a53ee07344641b0562c540d840748571b811", 85 | "sha256:8d756e44e94489e49571086ef83b2bb8ce311e730092d2c34ca8f7d925cb20aa", 86 | "sha256:8f4a014bc36d3c57402e2977dada34f9c12300af536839dc38c0beab8878f38a", 87 | "sha256:9063e24fdb1e498ab71cb7419e24622516c4a04476b17a2dab57e8baa30d6e03", 88 | "sha256:90d558489962fd4918143277a773316e56c72da56ec7aa3dc3dbbe20fdfed15b", 89 | "sha256:923c0c831b7cfcb071580d3f46c4baf50f174be571576556269530f4bbd79d04", 90 | "sha256:95f2a5796329323b8f0512e09dbb7a1860c46a39da62ecb2324f116fa8fdc85c", 91 | "sha256:96b02a3dc4381e5494fad39be677abcb5e6634bf7b4fa83a6dd3112607547001", 92 | "sha256:9f96df6923e21816da7e0ad3fd47dd8f94b2a5ce594e00677c0013018b813458", 93 | "sha256:a10af20b82360ab00827f916a6058451b723b4e65030c5a18577c8b2de5b3389", 94 | "sha256:a50aebfa173e157099939b17f18600f72f84eed3049e743b68ad15bd69b6bf99", 95 | "sha256:a981a536974bbc7a512cf44ed14938cf01030a99e9b3a06dd59578882f06f985", 96 | "sha256:a9a8e9031d613fd2009c182b69c7b2c1ef8239a0efb1df3f7c8da66d5dd3d537", 97 | "sha256:ae5f4161f18c61806f411a13b0310bea87f987c7d2ecdbdaad0e94eb2e404238", 98 | "sha256:aed38f6e4fb3f5d6bf81bfa990a07806be9d83cf7bacef998ab1a9bd660a581f", 99 | "sha256:b01b88d45a6fcb69667cd6d2f7a9aeb4bf53760d7fc536bf679ec94fe9f3ff3d", 100 | "sha256:b261ccdec7821281dade748d088bb6e9b69e6d15b30652b74cbbac25e280b796", 101 | "sha256:b2b0a0c0517616b6869869f8c581d4eb2dd83a4d79e0ebcb7d373ef9956aeb0a", 102 | "sha256:b4a23f61ce87adf89be746c8a8974fe1c823c891d8f86eb218bb957c924bb143", 103 | "sha256:bd8f7df7d12c2db9fab40bdd87a7c09b1530128315d047a086fa3ae3435cb3a8", 104 | "sha256:beb58fe5cdb101e3a055192ac291b7a21e3b7ef4f67fa1d74e331a7f2124341c", 105 | "sha256:c002b4ffc0be611f0d9da932eb0f704fe2602a9a949d1f738e4c34c75b0863d5", 106 | "sha256:c083af607d2515612056a31f0a8d9e0fcb5876b7bfc0abad3ecd275bc4ebc2d5", 107 | "sha256:c180f51afb394e165eafe4ac2936a14bee3eb10debc9d9e4db8958fe36afe711", 108 | "sha256:c235ebd9baae02f1b77bcea61bce332cb4331dc3617d254df3323aa01ab47bd4", 109 | "sha256:cd70574b12bb8a4d2aaa0094515df2463cb429d8536cfb6c7ce983246983e5a6", 110 | "sha256:d0eccceffcb53201b5bfebb52600a5fb483a20b61da9dbc885f8b103cbe7598c", 111 | "sha256:d965bba47ddeec8cd560687584e88cf699fd28f192ceb452d1d7ee807c5597b7", 112 | "sha256:db364eca23f876da6f9e16c9da0df51aa4f104a972735574842618b8c6d999d4", 113 | "sha256:ddbb2551d7e0102e7252db79ba445cdab71b26640817ab1e3e3648dad515003b", 114 | "sha256:deb6be0ac38ece9ba87dea880e438f25ca3eddfac8b002a2ec3d9183a454e8ae", 115 | "sha256:e06ed3eb3218bc64786f7db41917d4e686cc4856944f53d5bdf83a6884432e12", 116 | "sha256:e27ad930a842b4c5eb8ac0016b0a54f5aebbe679340c26101df33424142c143c", 117 | "sha256:e537484df0d8f426ce2afb2d0f8e1c3d0b114b83f8850e5f2fbea0e797bd82ae", 118 | "sha256:eb00ed941194665c332bf8e078baf037d6c35d7c4f3102ea2d4f16ca94a26dc8", 119 | "sha256:eb6904c354526e758fda7167b33005998fb68c46fbc10e013ca97f21ca5c8887", 120 | "sha256:eb8821e09e916165e160797a6c17edda0679379a4be5c716c260e836e122f54b", 121 | "sha256:efcb3f6676480691518c177e3b465bcddf57cea040302f9f4e6e191af91174d4", 122 | "sha256:f27273b60488abe721a075bcca6d7f3964f9f6f067c8c4c605743023d7d3944f", 123 | "sha256:f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5", 124 | "sha256:fb69256e180cb6c8a894fee62b3afebae785babc1ee98b81cdf68bbca1987f33", 125 | "sha256:fd1abc0d89e30cc4e02e4064dc67fcc51bd941eb395c502aac3ec19fab46b519", 126 | "sha256:ff8fa367d09b717b2a17a052544193ad76cd49979c805768879cb63d9ca50561" 127 | ], 128 | "markers": "python_full_version >= '3.7.0'", 129 | "version": "==3.3.2" 130 | }, 131 | "click": { 132 | "hashes": [ 133 | "sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28", 134 | "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de" 135 | ], 136 | "index": "pypi", 137 | "markers": "python_version >= '3.7'", 138 | "version": "==8.1.7" 139 | }, 140 | "google-auth": { 141 | "hashes": [ 142 | "sha256:79905d6b1652187def79d491d6e23d0cbb3a21d3c7ba0dbaa9c8a01906b13ff3", 143 | "sha256:d4bbc92fe4b8bfd2f3e8d88e5ba7085935da208ee38a134fc280e7ce682a05f2" 144 | ], 145 | "markers": "python_version >= '3.7'", 146 | "version": "==2.23.4" 147 | }, 148 | "idna": { 149 | "hashes": [ 150 | "sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4", 151 | "sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2" 152 | ], 153 | "markers": "python_version >= '3.5'", 154 | "version": "==3.4" 155 | }, 156 | "kubernetes": { 157 | "hashes": [ 158 | "sha256:10f56f8160dcb73647f15fafda268e7f60cf7dbc9f8e46d52fcd46d3beb0c18d", 159 | "sha256:1468069a573430fb1cb5ad22876868f57977930f80a6749405da31cd6086a7e9" 160 | ], 161 | "index": "pypi", 162 | "markers": "python_version >= '3.6'", 163 | "version": "==28.1.0" 164 | }, 165 | "oauthlib": { 166 | "hashes": [ 167 | "sha256:8139f29aac13e25d502680e9e19963e83f16838d48a0d71c287fe40e7067fbca", 168 | "sha256:9859c40929662bec5d64f34d01c99e093149682a3f38915dc0655d5a633dd918" 169 | ], 170 | "markers": "python_version >= '3.6'", 171 | "version": "==3.2.2" 172 | }, 173 | "pyasn1": { 174 | "hashes": [ 175 | "sha256:87a2121042a1ac9358cabcaf1d07680ff97ee6404333bacca15f76aa8ad01a57", 176 | "sha256:97b7290ca68e62a832558ec3976f15cbf911bf5d7c7039d8b861c2a0ece69fde" 177 | ], 178 | "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'", 179 | "version": "==0.5.0" 180 | }, 181 | "pyasn1-modules": { 182 | "hashes": [ 183 | "sha256:5bd01446b736eb9d31512a30d46c1ac3395d676c6f3cafa4c03eb54b9925631c", 184 | "sha256:d3ccd6ed470d9ffbc716be08bd90efbd44d0734bc9303818f7336070984a162d" 185 | ], 186 | "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'", 187 | "version": "==0.3.0" 188 | }, 189 | "python-dateutil": { 190 | "hashes": [ 191 | "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86", 192 | "sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9" 193 | ], 194 | "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", 195 | "version": "==2.8.2" 196 | }, 197 | "pyyaml": { 198 | "hashes": [ 199 | "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5", 200 | "sha256:062582fca9fabdd2c8b54a3ef1c978d786e0f6b3a1510e0ac93ef59e0ddae2bc", 201 | "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df", 202 | "sha256:1635fd110e8d85d55237ab316b5b011de701ea0f29d07611174a1b42f1444741", 203 | "sha256:184c5108a2aca3c5b3d3bf9395d50893a7ab82a38004c8f61c258d4428e80206", 204 | "sha256:18aeb1bf9a78867dc38b259769503436b7c72f7a1f1f4c93ff9a17de54319b27", 205 | "sha256:1d4c7e777c441b20e32f52bd377e0c409713e8bb1386e1099c2415f26e479595", 206 | "sha256:1e2722cc9fbb45d9b87631ac70924c11d3a401b2d7f410cc0e3bbf249f2dca62", 207 | "sha256:1fe35611261b29bd1de0070f0b2f47cb6ff71fa6595c077e42bd0c419fa27b98", 208 | "sha256:28c119d996beec18c05208a8bd78cbe4007878c6dd15091efb73a30e90539696", 209 | "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290", 210 | "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9", 211 | "sha256:42f8152b8dbc4fe7d96729ec2b99c7097d656dc1213a3229ca5383f973a5ed6d", 212 | "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6", 213 | "sha256:4fb147e7a67ef577a588a0e2c17b6db51dda102c71de36f8549b6816a96e1867", 214 | "sha256:50550eb667afee136e9a77d6dc71ae76a44df8b3e51e41b77f6de2932bfe0f47", 215 | "sha256:510c9deebc5c0225e8c96813043e62b680ba2f9c50a08d3724c7f28a747d1486", 216 | "sha256:5773183b6446b2c99bb77e77595dd486303b4faab2b086e7b17bc6bef28865f6", 217 | "sha256:596106435fa6ad000c2991a98fa58eeb8656ef2325d7e158344fb33864ed87e3", 218 | "sha256:6965a7bc3cf88e5a1c3bd2e0b5c22f8d677dc88a455344035f03399034eb3007", 219 | "sha256:69b023b2b4daa7548bcfbd4aa3da05b3a74b772db9e23b982788168117739938", 220 | "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0", 221 | "sha256:704219a11b772aea0d8ecd7058d0082713c3562b4e271b849ad7dc4a5c90c13c", 222 | "sha256:7e07cbde391ba96ab58e532ff4803f79c4129397514e1413a7dc761ccd755735", 223 | "sha256:81e0b275a9ecc9c0c0c07b4b90ba548307583c125f54d5b6946cfee6360c733d", 224 | "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28", 225 | "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4", 226 | "sha256:9046c58c4395dff28dd494285c82ba00b546adfc7ef001486fbf0324bc174fba", 227 | "sha256:9eb6caa9a297fc2c2fb8862bc5370d0303ddba53ba97e71f08023b6cd73d16a8", 228 | "sha256:a0cd17c15d3bb3fa06978b4e8958dcdc6e0174ccea823003a106c7d4d7899ac5", 229 | "sha256:afd7e57eddb1a54f0f1a974bc4391af8bcce0b444685d936840f125cf046d5bd", 230 | "sha256:b1275ad35a5d18c62a7220633c913e1b42d44b46ee12554e5fd39c70a243d6a3", 231 | "sha256:b786eecbdf8499b9ca1d697215862083bd6d2a99965554781d0d8d1ad31e13a0", 232 | "sha256:ba336e390cd8e4d1739f42dfe9bb83a3cc2e80f567d8805e11b46f4a943f5515", 233 | "sha256:baa90d3f661d43131ca170712d903e6295d1f7a0f595074f151c0aed377c9b9c", 234 | "sha256:bc1bf2925a1ecd43da378f4db9e4f799775d6367bdb94671027b73b393a7c42c", 235 | "sha256:bd4af7373a854424dabd882decdc5579653d7868b8fb26dc7d0e99f823aa5924", 236 | "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34", 237 | "sha256:bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43", 238 | "sha256:c8098ddcc2a85b61647b2590f825f3db38891662cfc2fc776415143f599bb859", 239 | "sha256:d2b04aac4d386b172d5b9692e2d2da8de7bfb6c387fa4f801fbf6fb2e6ba4673", 240 | "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54", 241 | "sha256:d858aa552c999bc8a8d57426ed01e40bef403cd8ccdd0fc5f6f04a00414cac2a", 242 | "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b", 243 | "sha256:f003ed9ad21d6a4713f0a9b5a7a0a79e08dd0f221aff4525a2be4c346ee60aab", 244 | "sha256:f22ac1c3cac4dbc50079e965eba2c1058622631e526bd9afd45fedd49ba781fa", 245 | "sha256:faca3bdcf85b2fc05d06ff3fbc1f83e1391b3e724afa3feba7d13eeab355484c", 246 | "sha256:fca0e3a251908a499833aa292323f32437106001d436eca0e6e7833256674585", 247 | "sha256:fd1592b3fdf65fff2ad0004b5e363300ef59ced41c2e6b3a99d4089fa8c5435d", 248 | "sha256:fd66fc5d0da6d9815ba2cebeb4205f95818ff4b79c3ebe268e75d961704af52f" 249 | ], 250 | "markers": "python_version >= '3.6'", 251 | "version": "==6.0.1" 252 | }, 253 | "requests": { 254 | "hashes": [ 255 | "sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f", 256 | "sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1" 257 | ], 258 | "markers": "python_version >= '3.7'", 259 | "version": "==2.31.0" 260 | }, 261 | "requests-oauthlib": { 262 | "hashes": [ 263 | "sha256:2577c501a2fb8d05a304c09d090d6e47c306fef15809d102b327cf8364bddab5", 264 | "sha256:75beac4a47881eeb94d5ea5d6ad31ef88856affe2332b9aafb52c6452ccf0d7a" 265 | ], 266 | "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", 267 | "version": "==1.3.1" 268 | }, 269 | "rsa": { 270 | "hashes": [ 271 | "sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7", 272 | "sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21" 273 | ], 274 | "markers": "python_version >= '3.6' and python_version < '4'", 275 | "version": "==4.9" 276 | }, 277 | "six": { 278 | "hashes": [ 279 | "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926", 280 | "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254" 281 | ], 282 | "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", 283 | "version": "==1.16.0" 284 | }, 285 | "urllib3": { 286 | "hashes": [ 287 | "sha256:34b97092d7e0a3a8cf7cd10e386f401b3737364026c45e622aa02903dffe0f07", 288 | "sha256:f8ecc1bba5667413457c529ab955bf8c67b45db799d159066261719e328580a0" 289 | ], 290 | "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'", 291 | "version": "==1.26.18" 292 | }, 293 | "websocket-client": { 294 | "hashes": [ 295 | "sha256:084072e0a7f5f347ef2ac3d8698a5e0b4ffbfcab607628cadabc650fc9a83a24", 296 | "sha256:b3324019b3c28572086c4a319f91d1dcd44e6e11cd340232978c684a7650d0df" 297 | ], 298 | "markers": "python_version >= '3.8'", 299 | "version": "==1.6.4" 300 | } 301 | }, 302 | "develop": {} 303 | } 304 | -------------------------------------------------------------------------------- /tests/kubernetes/app.py: -------------------------------------------------------------------------------- 1 | import click 2 | import logging 3 | from kubernetes import config, client, watch 4 | 5 | logging.basicConfig(level=logging.INFO, format='[%(levelname)s] %(message)s') 6 | 7 | @click.command() 8 | @click.option('--namespace', '-n', required=True, type=str) 9 | def list_pods(namespace: str): 10 | 11 | logging.info(f"Listing deployments for [{namespace}]") 12 | 13 | client = k8s_client() 14 | 15 | w = watch.Watch() 16 | for event in w.stream(client.list_namespaced_deployment, namespace=namespace, _request_timeout=3600): 17 | logging.info(f"Event: {event['type']} {event['object'].metadata.name}") 18 | 19 | logging.info("Ended") 20 | 21 | 22 | def k8s_client(): 23 | try: 24 | config.load_kube_config() 25 | except config.ConfigException: 26 | config.load_incluster_config() 27 | 28 | return client.AppsV1Api() 29 | 30 | 31 | if __name__ == "__main__": 32 | list_pods() 33 | -------------------------------------------------------------------------------- /tests/kubernetes/k8s.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: ServiceAccount 4 | metadata: 5 | name: distroless-python-test 6 | namespace: default 7 | --- 8 | apiVersion: rbac.authorization.k8s.io/v1 9 | kind: Role 10 | metadata: 11 | name: distroless-python-test 12 | namespace: default 13 | rules: 14 | - apiGroups: 15 | - "apps" 16 | resources: 17 | - deployments 18 | verbs: 19 | - get 20 | - list 21 | - watch 22 | --- 23 | apiVersion: rbac.authorization.k8s.io/v1 24 | kind: RoleBinding 25 | metadata: 26 | name: distroless-python-test 27 | namespace: default 28 | roleRef: 29 | apiGroup: rbac.authorization.k8s.io 30 | kind: Role 31 | name: distroless-python-test 32 | subjects: 33 | - kind: ServiceAccount 34 | name: distroless-python-test 35 | namespace: default 36 | --- 37 | kind: Deployment 38 | apiVersion: apps/v1 39 | metadata: 40 | name: distroless-python-test-${PYTHON_MINOR}-${OS_VERSION} 41 | namespace: default 42 | labels: 43 | app: distroless-python-test-${PYTHON_MINOR}-${OS_VERSION} 44 | spec: 45 | replicas: 1 46 | selector: 47 | matchLabels: 48 | app: distroless-python-test-${PYTHON_MINOR}-${OS_VERSION} 49 | minReadySeconds: 10 50 | template: 51 | metadata: 52 | labels: 53 | app: distroless-python-test-${PYTHON_MINOR}-${OS_VERSION} 54 | spec: 55 | serviceAccount: distroless-python-test 56 | restartPolicy: Always 57 | terminationGracePeriodSeconds: 1 58 | securityContext: 59 | runAsNonRoot: true 60 | runAsUser: 1000 61 | containers: 62 | - name: distroless-python-test 63 | image: ${IMAGE_TAG} 64 | imagePullPolicy: Never 65 | resources: 66 | requests: 67 | memory: 100Mi 68 | limits: 69 | memory: 100Mi 70 | securityContext: 71 | readOnlyRootFilesystem: true 72 | -------------------------------------------------------------------------------- /tests/kubernetes/kind.yaml: -------------------------------------------------------------------------------- 1 | kind: Cluster 2 | apiVersion: kind.x-k8s.io/v1alpha4 3 | networking: 4 | apiServerAddress: "0.0.0.0" 5 | apiServerPort: 6443 6 | -------------------------------------------------------------------------------- /tests/kubernetes/test_kubernetes.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -eouE pipefail 3 | 4 | if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then 5 | echo "-> [ERROR] This script should be sourced, not run directly" 6 | exit 1 7 | fi 8 | 9 | function test_kubernetes_image() { 10 | 11 | local image_tag=$1 12 | local assertion=$2 13 | 14 | if [[ ${CI_SERVER:-} == "yes" ]]; then 15 | _console_msg "Installing Kind ..." INFO 16 | curl -sLo ./kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-amd64 17 | chmod +x ./kind 18 | mv ./kind /usr/local/bin/kind 19 | fi 20 | 21 | # using kind helps us minimise our dependencies on another cluster existing somewhere 22 | _console_msg "Creating Kind cluster ..." INFO 23 | 24 | CLUSTER=distroless-test-"${CI_PIPELINE_ID}" 25 | kind create cluster --name="${CLUSTER}" --config=./tests/kubernetes/kind.yaml --wait=60s 26 | if [[ ${CI_SERVER:-} == "yes" ]]; then 27 | _console_msg "Configure kubectl context when using kind inside gitlab-ci dind ..." INFO 28 | kubectl config set-cluster kind-"${CLUSTER}" --server=https://docker:6443 --insecure-skip-tls-verify=true 29 | kubectl config use-context kind-"${CLUSTER}" 30 | fi 31 | kubectl cluster-info 32 | 33 | _console_msg "Loading image into kind for deployment ..." INFO 34 | 35 | export IMAGE_TAG="${image_tag}" 36 | kind load docker-image "${IMAGE_TAG}" --name="${CLUSTER}" 37 | 38 | _console_msg "Deploying into kind cluster ..." INFO 39 | 40 | envsubst "\$IMAGE_TAG \$PYTHON_MINOR \$OS_VERSION" < ./tests/kubernetes/k8s.yaml | kubectl apply -n=default -f - 41 | kubectl rollout status deploy/distroless-python-test-"${PYTHON_MINOR}"-"${OS_VERSION}" -n=default --timeout=180s 42 | kubectl get pods -n=default 43 | sleep 10 44 | 45 | output=$(kubectl logs -l=app=distroless-python-test-"${PYTHON_MINOR}"-"${OS_VERSION}" -n=default) 46 | 47 | if [[ $(echo "${output}" | grep -c "${assertion}") -eq 0 ]]; then 48 | _console_msg "Test failed: [${output}] did not contain [${assertion}]" ERROR 49 | failures=$((failures + 1)) 50 | else 51 | _console_msg "Test passed: Output [${output}]" INFO 52 | fi 53 | 54 | kind delete cluster --name="${CLUSTER}" 55 | 56 | } 57 | -------------------------------------------------------------------------------- /tests/pandas/.dockerignore: -------------------------------------------------------------------------------- 1 | .dockerignore 2 | Dockerfile 3 | -------------------------------------------------------------------------------- /tests/pandas/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG PYTHON_BUILDER_IMAGE 2 | ARG PYTHON_DISTROLESS_IMAGE 3 | 4 | FROM ${PYTHON_BUILDER_IMAGE} AS builder 5 | 6 | WORKDIR /app 7 | COPY requirements.txt . 8 | 9 | RUN pip install --no-cache-dir -r requirements.txt 10 | 11 | 12 | FROM ${PYTHON_DISTROLESS_IMAGE} 13 | 14 | WORKDIR /app 15 | COPY --chown=1000:1000 *.py . 16 | COPY --chown=1000:1000 --from=builder /home/monty/.local /home/monty/.local 17 | 18 | CMD ["bamboo.py"] 19 | -------------------------------------------------------------------------------- /tests/pandas/bamboo.py: -------------------------------------------------------------------------------- 1 | import pandas as pd 2 | 3 | 4 | def dataframe_example(): 5 | data = { 6 | "odds": [1, 3, 5, 7], 7 | "evens": [2, 4, 6, 8], 8 | } 9 | df = pd.DataFrame(data) 10 | return df.loc[0]["evens"] 11 | 12 | 13 | if __name__ == "__main__": 14 | print(f'The Mainframe says: {dataframe_example()}') 15 | -------------------------------------------------------------------------------- /tests/pandas/requirements.txt: -------------------------------------------------------------------------------- 1 | -i https://pypi.org/simple 2 | pandas==2.2.3 3 | -------------------------------------------------------------------------------- /tests/test_helper.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -ouE pipefail 3 | 4 | if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then 5 | echo "-> [ERROR] This script should be sourced, not run directly" 6 | exit 1 7 | fi 8 | 9 | 10 | function build_test_image() { 11 | local image_tag=$1 12 | local test_name=$2 13 | 14 | _console_msg "Building test image [${test_name}]" INFO 15 | 16 | pushd "$(dirname "${BASH_SOURCE[0]}")/${test_name}" >/dev/null || exit 17 | 18 | docker build \ 19 | --build-arg PYTHON_VERSION="${PYTHON_VERSION}" \ 20 | --build-arg DEBIAN_NAME="${DEBIAN_NAME}" \ 21 | --build-arg PYTHON_BUILDER_IMAGE="${PYTHON_INTERMEDIATE_BUILDER_IMAGE}-${CI_PIPELINE_ID}-intermediate" \ 22 | --build-arg PYTHON_DISTROLESS_IMAGE="${PYTHON_INTERMEDIATE_DISTROLESS_IMAGE}-${CI_PIPELINE_ID}-intermediate" \ 23 | -t "${image_tag}" . 24 | 25 | if [[ "${?}" -gt 0 ]]; then 26 | _console_msg "Build FAILED" ERROR 27 | failures=$((failures + 1)) 28 | fi 29 | 30 | popd >/dev/null || exit 31 | 32 | } 33 | 34 | 35 | function test_docker_output() { 36 | local image_tag=$1 37 | local assertion=$2 38 | local args=${3:-} 39 | 40 | _console_msg "Testing image output for [${image_tag}]" INFO 41 | 42 | if [[ -z ${args} ]]; then 43 | output=$(docker run --rm "${image_tag}") 44 | else 45 | output=$(docker run --rm "${image_tag}" "${args}") 46 | fi 47 | 48 | if [[ $(echo "${output}" | grep -c "${assertion}") -eq 0 ]]; then 49 | _console_msg "Test failed: [$assertion] not found in output [$output]" ERROR 50 | failures=$((failures + 1)) 51 | else 52 | _console_msg "Test passed: Output [${output}]" INFO 53 | fi 54 | } 55 | 56 | 57 | function test_docker_http() { 58 | local image_tag=$1 59 | local assertion=$2 60 | 61 | _console_msg "Testing http output for [${image_tag}]" INFO 62 | 63 | if [[ ${CI_SERVER:-} == "yes" ]]; then 64 | export HOSTNAME=docker 65 | else 66 | export HOSTNAME=localhost 67 | fi 68 | 69 | docker rm -f distroless-test >/dev/null 2>&1 || true 70 | docker run --rm --detach --name=distroless-test -p 5000:5000 "${image_tag}" 71 | sleep 5 # CI needs a bit of time ... yawn 72 | 73 | echo "---------------------- STARTUP LOGS ----------------------" 74 | if [[ $(docker ps | grep -c distroless-test) -gt 0 ]]; then 75 | docker logs distroless-test 76 | else 77 | docker run --rm --name=distroless-test -p 5000:5000 "${image_tag}" 78 | fi 79 | echo "---------------------- STARTUP LOGS ----------------------" 80 | 81 | output=$(curl -iks http://${HOSTNAME}:5000/) 82 | 83 | if [[ $(echo "${output}" | grep -c "${assertion}") -eq 0 ]]; then 84 | _console_msg "Test failed: [$assertion] not found in output [$output]" ERROR 85 | failures=$((failures + 1)) 86 | fi 87 | 88 | if [[ $(echo "${output}" | grep -c "200 OK") -eq 0 ]]; then 89 | _console_msg "Test failed: HTTP 200 return code not received" ERROR 90 | failures=$((failures + 1)) 91 | fi 92 | 93 | _console_msg "Test passed: ${output}" INFO 94 | 95 | docker rm -f distroless-test >/dev/null 2>&1 || true 96 | 97 | } 98 | 99 | 100 | function _console_msg() { 101 | 102 | local msg=${1} 103 | local level=${2:-} 104 | local ts=${3:-} 105 | 106 | if [[ -z ${level} ]]; then level=INFO; fi 107 | if [[ -n ${ts} ]]; then ts=" [$(date +"%Y-%m-%d %H:%M")]"; fi 108 | 109 | echo "" 110 | 111 | if [[ ${level} == "ERROR" ]] || [[ ${level} == "CRIT" ]] || [[ ${level} == "FATAL" ]]; then 112 | (echo 2>&1) 113 | (echo >&2 "-> [${level}]${ts} ${msg}") 114 | else 115 | (echo "-> [${level}]${ts} ${msg}") 116 | fi 117 | 118 | echo "" 119 | 120 | } 121 | --------------------------------------------------------------------------------