diff --git a/.github/workflows/release_publish.yml b/.github/workflows/release_publish.yml new file mode 100644 index 00000000..fd83a7b9 --- /dev/null +++ b/.github/workflows/release_publish.yml @@ -0,0 +1,21 @@ +name: release_publish +on: + # workflow_dispatch: + release: + types: [published] +jobs: + pypi_publish: + name: Deploy to pypi + runs-on: ubuntu-latest + steps: + - name: Check out repo + uses: actions/checkout@v2 + + - name: Build + run: python setup.py sdist bdist_wheel + + - name: Publish to Pypi + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/renderapi/image_pyramid.py b/renderapi/image_pyramid.py index ac2ca8e9..e92b3e96 100644 --- a/renderapi/image_pyramid.py +++ b/renderapi/image_pyramid.py @@ -1,4 +1,4 @@ -from collections import MutableMapping +from collections.abc import MutableMapping from .errors import RenderError import logging from .utils import NullHandler diff --git a/renderapi/transform/utils.py b/renderapi/transform/utils.py index 15b0ce5c..9c33b0f1 100644 --- a/renderapi/transform/utils.py +++ b/renderapi/transform/utils.py @@ -1,4 +1,4 @@ -from collections import Iterable +from collections.abc import Iterable from renderapi.errors import RenderError from .leaf import AffineModel, Polynomial2DTransform from .transform import TransformList, ReferenceTransform