Skip to content

Commit 130e1a6

Browse files
bretambroseBret Ambrose
andauthored
Setup update (#658)
* Remove deprecated direct invocations of setup.py in favor of build; misc updates * Update builder version to maybe fix clang version assertion --------- Co-authored-by: Bret Ambrose <bambrose@amazon.com>
1 parent 481857a commit 130e1a6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
chmod a+x builder
9494
./builder build -p ${{ env.PACKAGE_NAME }}
9595
- name: configure AWS credentials (MQTT5)
96-
uses: aws-actions/configure-aws-credentials@v2
96+
uses: aws-actions/configure-aws-credentials@v4
9797
with:
9898
role-to-assume: ${{ env.CI_MQTT5_ROLE }}
9999
aws-region: ${{ env.AWS_DEFAULT_REGION }}
@@ -129,7 +129,7 @@ jobs:
129129
chmod a+x builder
130130
./builder build -p ${{ env.PACKAGE_NAME }}
131131
- name: configure AWS credentials (MQTT5)
132-
uses: aws-actions/configure-aws-credentials@v2
132+
uses: aws-actions/configure-aws-credentials@v4
133133
with:
134134
role-to-assume: ${{ env.CI_MQTT5_ROLE }}
135135
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:

0 commit comments

Comments
 (0)