Commit 6b4dc238 authored by Pedro Oliveira's avatar Pedro Oliveira

fix PyPi publish

parent 5a45b31d
...@@ -6,7 +6,7 @@ on: ...@@ -6,7 +6,7 @@ on:
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-18.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python - name: Set up Python
...@@ -16,7 +16,7 @@ jobs: ...@@ -16,7 +16,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install setuptools wheel twine pip install setuptools wheel twine auditwheel
sudo apt install libpcap-dev sudo apt install libpcap-dev
- name: Build and publish - name: Build and publish
env: env:
...@@ -24,4 +24,7 @@ jobs: ...@@ -24,4 +24,7 @@ jobs:
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: | run: |
python setup.py sdist bdist_wheel python setup.py sdist bdist_wheel
auditwheel repair dist/*.whl
mv wheelhouse/* dist
rm dist/*.whl
twine upload dist/* twine upload dist/*
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment