Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
scripts/build: update building mechanism
Browse files Browse the repository at this point in the history
Pure `setup.py` is deprecated:

Ref: https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html

Signed-off-by: Charles Oliveira <[email protected]>
  • Loading branch information
chaws committed Apr 24, 2024
1 parent 19e9895 commit 918032e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ jobs:
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
VERSION: ${{ github.ref_name }}
run: |
python -m pip install --upgrade pip build
./scripts/build "$VERSION"
./scripts/upload
4 changes: 2 additions & 2 deletions scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ v="${tag:1}"

# Build pip package
rm -rf build/ dist/ *.egg-info/
python3 setup.py sdist bdist_wheel
python3 -m build

# test
tar=$(mktemp tar.XXXXXXXXX)
Expand All @@ -19,5 +19,5 @@ cleanup() {

git ls-tree -r --name-only HEAD | grep -v '\.tar$' | sort > "$git"

tar taf dist/squad-linaro-plugins-${v}.tar.gz | cut -d / -f 2- | grep -v '\(/$\|^$\|PKG-INFO\|egg-info\)' | sort > "$tar"
tar taf dist/squad_linaro_plugins-${v}.tar.gz | cut -d / -f 2- | grep -v '\(/$\|^$\|PKG-INFO\|egg-info\)' | sort > "$tar"
diff -u "$tar" "$git"

0 comments on commit 918032e

Please sign in to comment.