From 785acd6c35fd4ff86d8caf9b91f22bf510330808 Mon Sep 17 00:00:00 2001 From: thopp-tudelft Date: Tue, 1 Nov 2022 14:48:49 +0100 Subject: [PATCH 1/2] use collections abstract base classes from submodule with python 3.10 the abstract base classes Iterable and MutableMapping are no longer duplicated in the base module, this use has been deprecated since python 3.4 these are now imported from collections.abc instead --- renderapi/image_pyramid.py | 2 +- renderapi/transform/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 From 4315f249ee524da817d05ae8301e7282c8a77aa6 Mon Sep 17 00:00:00 2001 From: Russel Torres Date: Fri, 14 Jul 2023 10:37:12 -0700 Subject: [PATCH 2/2] actions: add publish on release action --- .github/workflows/release_publish.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/release_publish.yml 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 }}