Skip to content

Commit 5d1e66d

Browse files
author
Bret Ambrose
committed
Remove deprecated direct invocations of setup.py in favor of build; misc updates
1 parent 086aaf3 commit 5d1e66d

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
5858
python builder.pyz build -p ${{ env.PACKAGE_NAME }}
5959
- name: configure AWS credentials (MQTT5)
60-
uses: aws-actions/configure-aws-credentials@v2
60+
uses: aws-actions/configure-aws-credentials@v4
6161
with:
6262
role-to-assume: ${{ env.CI_MQTT5_ROLE }}
6363
aws-region: ${{ env.AWS_DEFAULT_REGION }}
@@ -130,7 +130,7 @@ jobs:
130130
chmod a+x builder
131131
./builder build -p ${{ env.PACKAGE_NAME }}
132132
- name: configure AWS credentials (MQTT5)
133-
uses: aws-actions/configure-aws-credentials@v2
133+
uses: aws-actions/configure-aws-credentials@v4
134134
with:
135135
role-to-assume: ${{ env.CI_MQTT5_ROLE }}
136136
aws-region: ${{ env.AWS_DEFAULT_REGION }}
@@ -202,7 +202,7 @@ jobs:
202202
chmod a+x builder
203203
./builder build -p ${{ env.PACKAGE_NAME }}
204204
- name: configure AWS credentials (MQTT5)
205-
uses: aws-actions/configure-aws-credentials@v2
205+
uses: aws-actions/configure-aws-credentials@v4
206206
with:
207207
role-to-assume: ${{ env.CI_MQTT5_ROLE }}
208208
aws-region: ${{ env.AWS_DEFAULT_REGION }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
force: true
6969

7070
- name: configure AWS credentials (Release)
71-
uses: aws-actions/configure-aws-credentials@v2
71+
uses: aws-actions/configure-aws-credentials@v4
7272
with:
7373
role-to-assume: arn:aws:iam::180635532705:role/CI_V2_RELEASE_S3_ROLE
7474
aws-region: us-east-1

codebuild/cd/publish-to-prod-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ phases:
1111
- sudo apt-get install python3 python3-pip -y
1212
- export PATH=$PATH:$HOME/.local/bin
1313
- python3 -m pip install --user --upgrade pip
14-
- python3 -m pip install --user --upgrade twine setuptools wheel awscli PyOpenSSL six
14+
- python3 -m pip install --user --upgrade twine awscli build setuptools
1515
- echo "\nBuild version data:"
1616
- echo "\nPython Version:"; python3 --version
1717
pre_build:
@@ -24,7 +24,7 @@ phases:
2424
build:
2525
commands:
2626
- echo Build started on `date`
27-
- python3 setup.py sdist bdist_wheel
27+
- python3 -m build
2828
- python3 -m twine upload -r pypi dist/*
2929
post_build:
3030
commands:

codebuild/cd/publish-to-test-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ phases:
1111
- sudo apt-get install python3 python3-pip -y
1212
- export PATH=$PATH:$HOME/.local/bin
1313
- python3 -m pip install --user --upgrade pip
14-
- python3 -m pip install --user --upgrade twine setuptools wheel awscli PyOpenSSL six
14+
- python3 -m pip install --user --upgrade twine awscli build setuptools
1515
- echo "\nBuild version data:"
1616
- echo "\nPython Version:"; python3 --version
1717
pre_build:
@@ -24,7 +24,7 @@ phases:
2424
build:
2525
commands:
2626
- echo Build started on `date`
27-
- python3 setup.py sdist bdist_wheel
27+
- python3 -m build
2828
- python3 -m twine upload -r testpypi dist/*
2929
post_build:
3030
commands:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ def _load_version():
4242
install_requires=[
4343
'awscrt==0.27.4',
4444
],
45-
python_requires='>=3.7',
45+
python_requires='>=3.8',
4646
)

0 commit comments

Comments
 (0)