From 96366511239ae2397ccda2b8b159728c28a6454bdab90904661ac9a1061096d3 Mon Sep 17 00:00:00 2001
From: John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
Date: Fri, 2 Dec 2022 12:37:06 +0000
Subject: [PATCH] Accepting request 1035705 from
 home:dgarcia:branches:devel:languages:python:aws

- Remove python_module macro definition
- Update to 1.54.0
  * chore: fix custom domain integration tests for feature toggle by @hnnasit
    in #2517
  * Revert "chore: fix custom domain integration tests for feature toggle" by
    @hnnasit in #2518
  * Release 1.52.0 (to develop) by @aws-sam-cli-bot in #2523
  * Release 1.53.0 (to develop) by @aws-sam-cli-bot in #2530
  * chore: rerun failing tests by @hoffa in #2527
  * docs: update PR template by @hoffa in #2531
  * chore: run tests with GitHub workflow by @hoffa in #2535
  * chore: pylint fix by @GavinZZ in #2538
  * chore: remove AppVeyor by @hoffa in #2539
  * Add Integration Test Deployer Logging Improvements by @awood45 in #2543
  * Upgrade Pylint Version and Fix Pylint Issues by @GavinZZ in #2540
  * Add ability to set State of EventBridge Rule by @sebastiankasprzak in #2524
  * Add Integ Test Skip Flag for EventBus by @awood45 in #2545
  * chore: Enable more pylint rules and fixes pylint issues by @GavinZZ in
    #2544
  * chore: add CodeQL by @hoffa in #2541
  * Enable more pylint rules and fixes pylint issues by @GavinZZ in #2547
  * fix: Correct kafka property names in generated event source mapping by
    @aahung in #2549
  * Enable more pylint rules and fixes pylint issues by @GavinZZ in #2548
  * chore: Add transform test creation script by @GavinZZ in #2551
  * chore: Add JSON formatter and format all JSON files in tests by @aahung in
    #2553
  * Do not change input file and exit if hardcoded partition used by @GavinZZ
    in #2554
  * feat: replace DependsOn to connector by its generated logical IDs by @hoffa

OBS-URL: https://build.opensuse.org/request/show/1035705
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=36
---
 python-aws-sam-translator.changes          | 61 ++++++++++++++++++++++
 python-aws-sam-translator.spec             |  8 ++-
 serverless-application-model-1.53.0.tar.gz |  3 --
 serverless-application-model-1.54.0.tar.gz |  3 ++
 4 files changed, 70 insertions(+), 5 deletions(-)
 delete mode 100644 serverless-application-model-1.53.0.tar.gz
 create mode 100644 serverless-application-model-1.54.0.tar.gz

diff --git a/python-aws-sam-translator.changes b/python-aws-sam-translator.changes
index 9eb22c2..264c917 100644
--- a/python-aws-sam-translator.changes
+++ b/python-aws-sam-translator.changes
@@ -1,3 +1,64 @@
+-------------------------------------------------------------------
+Mon Nov 14 16:29:17 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
+
+- Remove python_module macro definition
+- Update to 1.54.0
+  * chore: fix custom domain integration tests for feature toggle by @hnnasit
+    in #2517
+  * Revert "chore: fix custom domain integration tests for feature toggle" by
+    @hnnasit in #2518
+  * Release 1.52.0 (to develop) by @aws-sam-cli-bot in #2523
+  * Release 1.53.0 (to develop) by @aws-sam-cli-bot in #2530
+  * chore: rerun failing tests by @hoffa in #2527
+  * docs: update PR template by @hoffa in #2531
+  * chore: run tests with GitHub workflow by @hoffa in #2535
+  * chore: pylint fix by @GavinZZ in #2538
+  * chore: remove AppVeyor by @hoffa in #2539
+  * Add Integration Test Deployer Logging Improvements by @awood45 in #2543
+  * Upgrade Pylint Version and Fix Pylint Issues by @GavinZZ in #2540
+  * Add ability to set State of EventBridge Rule by @sebastiankasprzak in #2524
+  * Add Integ Test Skip Flag for EventBus by @awood45 in #2545
+  * chore: Enable more pylint rules and fixes pylint issues by @GavinZZ in
+    #2544
+  * chore: add CodeQL by @hoffa in #2541
+  * Enable more pylint rules and fixes pylint issues by @GavinZZ in #2547
+  * fix: Correct kafka property names in generated event source mapping by
+    @aahung in #2549
+  * Enable more pylint rules and fixes pylint issues by @GavinZZ in #2548
+  * chore: Add transform test creation script by @GavinZZ in #2551
+  * chore: Add JSON formatter and format all JSON files in tests by @aahung in
+    #2553
+  * Do not change input file and exit if hardcoded partition used by @GavinZZ
+    in #2554
+  * feat: replace DependsOn to connector by its generated logical IDs by @hoffa
+    in #2537
+  * chore: use connector logical ID for DependsOn in integ test by @hoffa in
+    #2559
+  * Enable mypy --strict for future code by @xazhao in #2558
+  * Bug fix: Fix DisableExecuteApiEndpoint bug fix by @aaythapa in #2560
+  * Add ability to set Name of EventBridge Rule by @sebastiankasprzak in #2525
+  * Remove unrecognized pylint options by @GavinZZ in #2555
+  * chore: Make PropertyType and related validator typed by @aahung in #2562
+  * chore: Make intrinsics helper functions typed by @aahung in #2563
+  * chore: Type improvements initiated from adding all by @aahung in #2564
+  * feat: Add support to Fn::GetAtt X.Y when looking up IAM role in serveā€¦ by
+    @aahung in #2567
+  * docs: new README by @hoffa in #2565
+  * docs: use sam sync instead of sam deploy by @hoffa in #2569
+  * docs: add SAM workshop, minor polish to README by @hoffa in #2571
+  * chore: add Gitpod config, docs polish by @hoffa in #2573
+  * Bug fix: Fix generated Lambda permission's SourceARN when $default path is
+    used in HTTP API by @aaythapa in #2574
+  * Better test for type of a variable by @kddejong in #2520
+  * chore: Add yaml formatter and format yaml files in tests/ by @aahung in
+    #2577
+  * chore: Explicitly make our test yamls yaml 1.1 by @aahung in #2579
+  * chore: clean up docs by @hoffa in #2580
+  * docs: development guidelines by @hoffa in #2582
+  * docs: add "add types" guideline by @hoffa in #2584
+  * chore: add development guidelines to checklist by @hoffa in #2585
+  * feat: Add ScheduleV2 for AWS::Scheduler::Schedule by @aahung
+
 -------------------------------------------------------------------
 Thu Oct 27 09:58:47 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
 
diff --git a/python-aws-sam-translator.spec b/python-aws-sam-translator.spec
index 9b3bd16..e843eaa 100644
--- a/python-aws-sam-translator.spec
+++ b/python-aws-sam-translator.spec
@@ -16,7 +16,6 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 # Disable tests on SLE-12 due to issues with Python 3.4
 # see: https://github.com/awslabs/serverless-application-model/issues/1255
 %if 0%{?suse_version} < 1500
@@ -28,7 +27,7 @@
 %define skip_python2 1
 %endif
 Name:           python-aws-sam-translator
-Version:        1.53.0
+Version:        1.54.0
 Release:        0
 Summary:        AWS SAM template to AWS CloudFormation template translator
 License:        Apache-2.0
@@ -55,6 +54,7 @@ BuildRequires:  %{python_module jsonschema >= 3.2}
 BuildRequires:  %{python_module parameterized >= 0.7.4}
 BuildRequires:  %{python_module pytest >= 3.0.7}
 BuildRequires:  %{python_module pytest-cov >= 2.10.1}
+BuildRequires:  %{python_module pytest-rerunfailures}
 BuildRequires:  %{python_module requests >= 2.24.0}
 %python_subpackages
 
@@ -65,6 +65,10 @@ templates into AWS CloudFormation templates
 %prep
 %autosetup -p1 -n serverless-application-model-%{version}
 sed -i -e 's:~=:>=:g' requirements/base.txt
+# Remove the __init__.py file from bin to avoid installation of this
+# folder in python_sitelib
+# https://github.com/aws/serverless-application-model/issues/2588
+rm bin/__init__.py
 
 %build
 %python_build
diff --git a/serverless-application-model-1.53.0.tar.gz b/serverless-application-model-1.53.0.tar.gz
deleted file mode 100644
index f71328d..0000000
--- a/serverless-application-model-1.53.0.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:79b2117a14207c440ac1a8a5c48072038ea417dc0afe2e93e2c5ebbce8973d12
-size 1158682
diff --git a/serverless-application-model-1.54.0.tar.gz b/serverless-application-model-1.54.0.tar.gz
new file mode 100644
index 0000000..0e72050
--- /dev/null
+++ b/serverless-application-model-1.54.0.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bd637223e5e922950757d5026d7598d0da050e87a1c9685bdf53028e624467e2
+size 1004760