Skip to content

Rewrite if k in d to try d[k] except keyerror #7

Rewrite if k in d to try d[k] except keyerror

Rewrite if k in d to try d[k] except keyerror #7

Workflow file for this run

name: Deploy package to PyPI.
on:
push:
tags:
- "*"
jobs:
publish:
name: Publish to PyPI.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Build package.
run: |
python -m pip install --upgrade pip build twine
python -m build --sdist && python -m build --wheel
- name: Publish.
run: |
twine upload ./dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}