From 52b989212ef72d7e1e02d90075bfcabe2febfc95 Mon Sep 17 00:00:00 2001 From: Cooper Lees Date: Wed, 1 Jan 2020 16:24:30 -0800 Subject: [PATCH] Move to Version 20.1.0 + add Upload GitHub Action (#103) - Update changelog - Add action to upload to PyPI on release creation --- .github/workflows/pypi_upload.yml | 33 +++++++++++++++++++++++++++++++ README.rst | 6 ++++++ bugbear.py | 2 +- setup.cfg | 2 +- 4 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/pypi_upload.yml diff --git a/.github/workflows/pypi_upload.yml b/.github/workflows/pypi_upload.yml new file mode 100644 index 0000000..32a91d4 --- /dev/null +++ b/.github/workflows/pypi_upload.yml @@ -0,0 +1,33 @@ +name: pypi_upload + +on: + release: + types: [created] + +jobs: + upload: + name: PyPI Upload + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + + - name: Install latest pip, setuptools, twine + wheel + run: | + python -m pip install --upgrade pip setuptools twine wheel + + - name: Build sdist + wheel + run: | + python setup.py bdist_wheel + python setup.py sdist + + - name: Upload to PyPI via Twine + env: + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + run: | + twine upload --verbose -u '__token__' dist/* diff --git a/README.rst b/README.rst index 8362f86..adc10d3 100644 --- a/README.rst +++ b/README.rst @@ -228,6 +228,12 @@ MIT Change Log ---------- +20.1.0 +~~~~~~ + +* Warn about continue/return/break in finally block (#100) +* Removed a colon from the descriptive message in B008. (#96) + 19.8.0 ~~~~~~ diff --git a/bugbear.py b/bugbear.py index 98eacbb..27ca894 100644 --- a/bugbear.py +++ b/bugbear.py @@ -9,7 +9,7 @@ import pycodestyle -__version__ = "19.8.0" +__version__ = "20.1.0" LOG = logging.getLogger("flake8.bugbear") diff --git a/setup.cfg b/setup.cfg index 03569e3..ffab554 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bdist_wheel] -python-tag = py35.py36.py37 +python-tag = py36.py37.py38 [flake8] # Keep in sync with .flake8. This copy here is needed for source packages