Skip to content

Commit

Permalink
Move to Version 20.1.0 + add Upload GitHub Action (#103)
Browse files Browse the repository at this point in the history
- Update changelog
- Add action to upload to PyPI on release creation
  • Loading branch information
cooperlees authored Jan 2, 2020
1 parent aef4e17 commit 52b9892
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pypi_upload.yml
Original file line number Diff line number Diff line change
@@ -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/*
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion bugbear.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import pycodestyle


__version__ = "19.8.0"
__version__ = "20.1.0"

LOG = logging.getLogger("flake8.bugbear")

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bdist_wheel]
python-tag = py35.py36.py37
python-tag = py36.py37.py38

This comment has been minimized.

Copy link
@asottile

asottile Oct 22, 2021

Member

by the way this is a bit redundant -- for pure python tags any future version is compatible with older versions (so this only needs to be py36)


[flake8]
# Keep in sync with .flake8. This copy here is needed for source packages
Expand Down

0 comments on commit 52b9892

Please sign in to comment.