Skip to content

Commit

Permalink
Introduce pyproject.toml
Browse files Browse the repository at this point in the history
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')
```
  • Loading branch information
Steven Aerts committed Feb 6, 2024
1 parent 2ee0ff4 commit 00a3008
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "setuptools-rust", "gimme_aws_creds"]
build-backend = "setuptools.build_meta"

0 comments on commit 00a3008

Please sign in to comment.