From 3bd5054634446cec9fa2152e7dc6fa66ed2c4fa8 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Sun, 24 Jan 2021 23:40:10 -0800 Subject: [PATCH] lambda: move to extra_plugins folder --- src/ocrmypdf/extra_plugins/__init__.py | 0 .../awslambda.py} | 23 ++++--------------- 2 files changed, 5 insertions(+), 18 deletions(-) create mode 100644 src/ocrmypdf/extra_plugins/__init__.py rename src/ocrmypdf/{_lambda_plugin.py => extra_plugins/awslambda.py} (80%) diff --git a/src/ocrmypdf/extra_plugins/__init__.py b/src/ocrmypdf/extra_plugins/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/src/ocrmypdf/_lambda_plugin.py b/src/ocrmypdf/extra_plugins/awslambda.py similarity index 80% rename from src/ocrmypdf/_lambda_plugin.py rename to src/ocrmypdf/extra_plugins/awslambda.py index 1cab2f61..3a5f802d 100644 --- a/src/ocrmypdf/_lambda_plugin.py +++ b/src/ocrmypdf/extra_plugins/awslambda.py @@ -1,22 +1,9 @@ -# © 2021 James R Barlow: https://github.com/jbarlow83 +# © 2021 James R. Barlow: github.com/jbarlow83 # -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in all -# copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -# SOFTWARE. +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + """Alternate executor to support OCRmyPDF in AWS Lambda"""