From 00a30082cbb85f0940e9a9087d2fbc5d5db1831e Mon Sep 17 00:00:00 2001 From: Steven Aerts Date: Tue, 6 Feb 2024 10:31:02 +0100 Subject: [PATCH] Introduce pyproject.toml Using a more modern setuptools build pipeline, removing warnings in the generated files: ``` /usr/local/bin/gimme-aws-creds:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html __import__('pkg_resources').run_script('gimme-aws-creds==2.7.2', 'gimme-aws-creds') ``` --- Dockerfile | 3 +-- README.md | 2 +- pyproject.toml | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 pyproject.toml diff --git a/Dockerfile b/Dockerfile index 493882e7..3a521bbd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,7 @@ RUN apk --update add libgcc ENV PACKAGES="gcc musl-dev python3-dev libffi-dev openssl-dev cargo" RUN apk --update add $PACKAGES \ - && pip install --upgrade pip setuptools-rust \ - && python setup.py install \ + && python -m pip install .\ && apk del --purge $PACKAGES ENTRYPOINT ["/usr/local/bin/gimme-aws-creds"] diff --git a/README.md b/README.md index 40049ed5..79d8dd57 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ __OR__ Install the gimme-aws-creds package if you have already cloned the source: ```bash -python3 setup.py install +python -m pip install . ``` __OR__ diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..223b5c00 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "setuptools-rust", "gimme_aws_creds"] +build-backend = "setuptools.build_meta"