Skip to content

Commit

Permalink
fixed workflow for publishing to pypi
Browse files Browse the repository at this point in the history
Install missing python3-gobject dependency. Also, remove check for
diff for now since the generator produces unordered output, e.g.
the functions and classes might be in different order.

Signed-off-by: Michael Engel <[email protected]>
  • Loading branch information
engelmi committed Jan 19, 2024
1 parent 521af98 commit 9cf1f26
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:

- name: Install dependencies
run: |
dnf install python3-gobject
python3 -m ensurepip --default-pip
python3 -m pip install --upgrade pip setuptools wheel build
python3 -m pip install -r src/bindings/generator/requirements.txt
Expand All @@ -74,16 +75,6 @@ jobs:
run: |
./build-scripts/generate-bindings.sh python
- name: Check for changes in generated python code
run: |
git config --global --add safe.directory $(pwd)
git diff --exit-code src/bindings/python/
- name: Prompt rebuilding python bindings
if: ${{ failure() }}
run: |
echo "Changes in D-Bus API spec detected. Please generated them."
- name: Build python bindings package
run: |
./build-scripts/build-bindings.sh python
Expand Down

0 comments on commit 9cf1f26

Please sign in to comment.