only publish python 3

This commit is contained in:
Edwin Eefting 2023-08-29 15:53:49 +02:00
parent 62f078eaec
commit a12b651d17
No known key found for this signature in database
GPG Key ID: 0F3C35D8E9887737

View File

@ -20,20 +20,20 @@ jobs:
with:
python-version: '3.x'
- name: Set up Python 2.x
uses: actions/setup-python@v2
with:
python-version: '2.x'
# - name: Set up Python 2.x
# uses: actions/setup-python@v2
# with:
# python-version: '2.x'
- name: Install dependencies 3.x
run: |
python -m pip install --upgrade pip
pip3 install setuptools wheel twine
- name: Install dependencies 2.x
run: |
python2 -m pip install --upgrade pip
pip2 install setuptools wheel twine
# - name: Install dependencies 2.x
# run: |
# python2 -m pip install --upgrade pip
# pip2 install setuptools wheel twine
- name: Build and publish
env:
@ -41,6 +41,6 @@ jobs:
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
python3 setup.py sdist bdist_wheel
python2 setup.py sdist bdist_wheel
# python2 setup.py sdist bdist_wheel
twine check dist/*
twine upload dist/*