Skip to content

Commit

Permalink
Merge pull request #64 from Adnuntius/pypi-publish-workflow
Browse files Browse the repository at this point in the history
API Tools V1.21.5
  • Loading branch information
mileshampson authored Nov 21, 2023
2 parents b236b4d + 1c87719 commit dc0ccdc
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
pip install flake8 python-dateutil requests requests_toolbelt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
# Stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# Stop the build for less important categories. This can be set to warning only with --exit-zero if required.
# Also stop the build for some less important categories (can set to warning only with --exit-zero if required)
flake8 . --count --max-complexity=10 --max-line-length=120 --statistics
- name: Run the test suite
run: |
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Upload Python Package to PyPi
on:
release:
types: [published]
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPITOKEN }}
2 changes: 1 addition & 1 deletion adnuntius/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.21.4"
__version__ = "1.21.5"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
README = (HERE / "README.md").read_text()
setup(
name="adnuntius",
version="1.21.4",
version="1.21.5",
description="Interface and tools for using the Adnuntius API",
long_description="Interface and tools for using the Adnuntius API",
url="https://github.com/Adnuntius/api-tools",
Expand Down

0 comments on commit dc0ccdc

Please sign in to comment.