Skip to content

Commit

Permalink
Update deployment of source code from Python 3.11 manylinux
Browse files Browse the repository at this point in the history
  • Loading branch information
iosonofabio committed Dec 14, 2023
1 parent 5487696 commit bb68e27
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
container: quay.io/pypa/manylinux2014_x86_64
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand All @@ -30,7 +30,7 @@ jobs:
- name: Deploy source and manylinux wheels
env:
PYTHON_VERSION: ${{ matrix.python-version }}
SOURCE_VERSION: 3.7
SOURCE_VERSION: 3.11
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD_PYPI: ${{ secrets.PYPI_PASSWORD }}
TWINE_PASSWORD_TESTPYPI: ${{ secrets.TESTPYPI_PASSWORD }}
Expand All @@ -47,7 +47,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand Down
24 changes: 14 additions & 10 deletions deploywheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,28 @@ echo "HTSEQ_VERSION: ${HTSEQ_VERSION}"
echo "HTSEQ_WHEEL_FILE: ${HTSEQ_WHEEL_FILE}"

ERRS=0

for PYBIN in ${PYBINS}; do
${PYBIN}/pip install twine
PYVER=$(basename $(dirname ${PYBIN}))
echo "PYVER=$PYVER"
echo "TWINE_REPOSITORY=$TWINE_REPOSITORY"
echo "TWINE_USERNAME=$TWINE_USERNAME"
echo "TWINE_PASSWORD=$TWINE_PASSWORD"
${PYBIN}/pip install twine
#echo "TWINE_USERNAME=$TWINE_USERNAME"
#echo "TWINE_PASSWORD=$TWINE_PASSWORD"

if [ x$SOURCE_VERSION == x$PYTHON_VERSION ]; then
echo "Deploy source code"
${PYBIN}/twine upload --repository-url "${TWINE_REPOSITORY}" -u "${TWINE_USERNAME}" -p "${TWINE_PASSWORD}" /io/wheelhouse/HTSeq-${HTSEQ_VERSION}.tar.gz
if [ $? != 0 ]; then
ERRS=1
fi
fi

echo "Deploy binary wheel"
${PYBIN}/twine upload --repository-url "${TWINE_REPOSITORY}" -u "${TWINE_USERNAME}" -p "${TWINE_PASSWORD}" ${HTSEQ_WHEEL_FILE}
if [ $? != 0 ]; then
ERRS=1
fi
done

echo "Deploy source code only from one version"
if [ x$SOURCE_VERSION == x$PYTHON_VERSION ]; then
${PYBIN}/twine upload --repository-url "${TWINE_REPOSITORY}" -u "${TWINE_USERNAME}" -p "${TWINE_PASSWORD}" /io/wheelhouse/HTSeq-${HTSEQ_VERSION}.tar.gz
if [ $? != 0 ]; then
ERRS=1
fi
fi
exit $ERRS

0 comments on commit bb68e27

Please sign in to comment.