Skip to content

Commit

Permalink
Merge pull request #70 from bento-platform/gha-auto-release
Browse files Browse the repository at this point in the history
Break: GitHub Actions auto-release + Django dependency version bump
  • Loading branch information
davidlougheed authored Oct 7, 2022
2 parents a1e0b00 + f508053 commit c0776cf
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/setup-python@v2
name: Set up Python
with:
python-version: 3.9
python-version: '3.10'
- name: Install flake8
run: python -m pip install flake8
- name: Run linter
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release PyPI Package
on:
release:

types: [published]

jobs:
publish:
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Install build dependencies
run: python -m pip install build --user

- name: Build
run: python -m build --sdist --wheel --outdir dist/ .

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.6, 3.9 ]
python-version: [ '3.8', '3.10' ]
services:
redis:
image: redis
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.6, 3.9 ]
python-version: [ '3.8', '3.10' ]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
Expand Down
2 changes: 1 addition & 1 deletion bento_lib/package.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = bento_lib
version = 3.2.0
version = 4.0.0
authors = David Lougheed, Paul Pillot
author_emails = [email protected], [email protected]
2 changes: 2 additions & 0 deletions pypackage.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build-system]
requires = ["setuptools", "wheel"]
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
appdirs==1.4.4
asgiref==3.4.1
asgiref==3.5.2
attrs==21.2.0
backports.entry-points-selectable==1.1.0
certifi==2021.5.30
certifi==2022.9.24
chardet==4.0.0
charset-normalizer==2.0.4
click==8.0.1
codecov==2.1.12
coverage==5.5
distlib==0.3.2
Django==3.2.13
Django==4.1.1
djangorestframework==3.12.4
entrypoints==0.3
filelock==3.0.12
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
name=config["package"]["name"],
version=config["package"]["version"],

python_requires=">=3.6",
python_requires=">=3.8",
install_requires=[
"jsonschema>=3.2.0,<4",
"psycopg2-binary>=2.8.6,<3.0",
Expand All @@ -23,7 +23,7 @@
],
extras_require={
"flask": ["Flask>=2.0.1,<3"],
"django": ["Django>=3.2.7,<4", "djangorestframework>=3.12.4,<3.13"]
"django": ["Django>=4.1.1,<5", "djangorestframework>=3.13.1,<3.15"]
},

author=config["package"]["authors"],
Expand Down

0 comments on commit c0776cf

Please sign in to comment.