Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 1 addition & 42 deletions .github/workflows/pypi-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- uses: actions/setup-python@v6
with:
python-version: 3.10
python-version: "3.10"
architecture: x64

- name: Autobump version
Expand Down Expand Up @@ -46,44 +46,3 @@ jobs:
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload --verbose -u '__token__' dist/*
virt_stats:
name: Virt Stats PyPI Upload
runs-on: ubuntu-latest
defaults:
run:
working-directory: libvirt

steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v3
with:
python-version: 3.8
architecture: x64

- name: Autobump version
run: |
# from refs/tags/v1.2.3 get 1.2.3
VERSION=${GITHUB_REF/refs\/tags\//}
PLACEHOLDER='version="develop"'
VERSION_FILE='setup.py'

# grep ensures the placeholder is there. If grep doesn't find the placeholder
# it exits with exit code 1 and github actions aborts the build.
grep "$PLACEHOLDER" "$VERSION_FILE"

sed -i "s/$PLACEHOLDER/version=\"${VERSION}\"/g" "$VERSION_FILE"

- name: Install pypa/build and twine
run: |
python -m pip install build twine

- name: Build a binary wheel and a source tarball
run: |
python -m build --sdist --wheel --outdir dist/ .

- name: Upload to PyPI via Twine
env:
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload --verbose -u '__token__' dist/*
3 changes: 0 additions & 3 deletions libvirt/.gitignore

This file was deleted.

101 changes: 0 additions & 101 deletions libvirt/CONTRIBUTING.md

This file was deleted.

19 changes: 0 additions & 19 deletions libvirt/Pipfile

This file was deleted.

Loading