python-aws-sam-translator/python-aws-sam-translator.spec

116 lines
4.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-aws-sam-translator
#
Accepting request 1096714 from home:glaubitz:branches:devel:languages:python:aws - Update to 1.68.0 * chore: Upgrade ruff to 0.0.263 and enable more rules by @aahung in (#3127) * docs: mention what transform tests are by @hoffa in (#3129) * chore(schema): update by @github-actions in (#3131) * Merge main to develop by @ssenchenko in (#3136) * feat: actionable error on non-ARN policy by @hoffa in (#3132) * chore(schema): update by @github-actions in (#3137) * feat(SimpleTable): add PointInTimeRecoverySpecification by @hoffa in (#3138) * chore(schema): update by @github-actions in (#3139) * chore: mark test_request_parameters_open_api as @nonblocking by @hoffa in #(3141) * chore(schema): update by @github-actions in (#3143) * docs: remove automatic type/bug label by @hoffa in (#3147) * chore(schema): update by @github-actions in (#3148) * chore: update bundled managed policies by @hoffa in (#3149) * chore(schema): update by @github-actions in (#3150) * AppSync Api -> Lambda connector by @ssenchenko in (#3145) * Revert "feat: actionable error on non-ARN policy (#3132)" by @hoffa in (#3153) * chore: add Policies test with every type by @hoffa in (#3155) * Release 1.68.0 (to main) by @GavinZZ in (#3185) - from version 1.67.0 * chore(schema): update by @github-actions in (#3104) * chore: Enable termination protection for companion stacks by @GavinZZ in (#3105) * chore(schema): update by @github-actions in (#3108) * fix: Availability Dip Fix for MergeDefinitions property by @GavinZZ in (#3115) * chore(schema): update by @github-actions in (#3116) * chore: bundle aws-cn AWS managed policies by @hoffa in (#3117) * Merge main to develop by @xazhao in (#3119) * fix: Add ScheduleV2 OmitName to omit generated Name in Scheduler::Schedule by @aahung in (#3120) * chore: Use importlib.metadata to get package version by @aahung in (#3121) OBS-URL: https://build.opensuse.org/request/show/1096714 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=40
2023-07-05 12:16:14 +00:00
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# 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
%bcond_with test
%else
%bcond_without test
%endif
%if 0%{?suse_version} >= 1500
%define skip_python2 1
%endif
Name: python-aws-sam-translator
Accepting request 1131004 from home:glaubitz:branches:devel:languages:python:aws - Update to version 1.81.0 * fix: skip SAR tests if python version > 3.10 by @aaythapa in #3379 * chore(schema): update by @github-actions in #3376 * fix: Set to Py27Dict if components is explicitly set to None by @GavinZZ in #3373 * Fix GitHub Action Issues in Python 3.10 and 3.11 by @GavinZZ in #3380 * Merge main to develop by @aaythapa in #3383 * chore(schema): update by @github-actions in #3384 * feat: appsync datasource to eventbus connector by @paulhcsun in #3311 * chore(schema): update by @github-actions in #3389 * feat: Support Ignore Globals resource attribute by @GavinZZ in #3386 * Merge main to develop by @ConnorRobertson in #3391 * Fix: Raise Error When UpdateReplacePolicy is not correctly defined. by @ConnorRobertson in #3392 * chore(schema): update by @github-actions in #3395 * Add an error when AuthorizationScopes is not used with Authorizer by @xazhao in #3394 * fix: skip statemachine test by @aaythapa in #3397 * fix: LayerVersion cannot be the target of DependsOn due to being hashed during transformation by @ConnorRobertson in #3396 * Release 1.81.0 (to main) by @ConnorRobertson in #3431 * Revert "Release 1.81.0 (to main)" by @ConnorRobertson in #3432 * Revert "Revert "Release 1.81.0 (to main)"" by @GavinZZ in #3437 * fix: Revert the version back to 1.80 by @GavinZZ in #3438 * Release 1.81.0 (to main) by @GavinZZ in #3439 - from version 1.80.0 * Added S3 onFailure destination for MSK and SelfManagedKafka(3b53f8f) * Add support for Advanced logging in SAM(625913c) * chore: bump version to 1.80.0(e2d6f37) * Merge branch 'main' into release-v1.80.0(733a376) * Merge pull request(cb11c8e) #3419 from aws/release-v1.80.0 - from version 1.79.0 OBS-URL: https://build.opensuse.org/request/show/1131004 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=48
2023-12-06 12:16:43 +00:00
Version: 1.81.0
Release: 0
Summary: AWS SAM template to AWS CloudFormation template translator
License: Apache-2.0
URL: https://github.com/awslabs/serverless-application-model
Source: https://github.com/awslabs/serverless-application-model/archive/v%{version}.tar.gz#/serverless-application-model-%{version}.tar.gz
Accepting request 1109527 from home:glaubitz:branches:devel:languages:python:aws - Update to version 1.74.0 * fix:RuntimeManagementConfig by @ConnorRobertson in #3274 * chore: update schema by @ConnorRobertson in #3276 * Merge main to develop by @ConnorRobertson in #3278 * chore: switch to SimpleTable in gql integ tests by @ssenchenko in #3279 * chore: Update Lambda envs in integ tests by @ssenchenko in #3280 * fix: Fix Propagate Tags when Tags is defined in Globals by @GavinZZ in #3284 * feat: Input transformer for AWS::Serverless::Function.EventBridgeRule by @ConnorRobertson in #3283 * Release 1.74.0 (to main) by @xazhao in #3329 - from version 1.73.0 * chore(schema): update by @github-actions in #3267 * chore(schema): update by @github-actions in #3266 * ci: fail tests on warnings by @hoffa in #3248 * chore(schema): update by @github-actions in #3272 * Release 1.73.0 (to main) by @ssenchenko in #3295 - from version 1.72.0 * Merge main to develop by @GavinZZ in #3226 * fix: read from default boto3 session if present. by @sriram-mv in #3224 * chore(schema): update by @github-actions in #3227 * chore: use auto-generated CFN docs from CDK by @hoffa in #3219 * docs: update schema diagram by @hoffa in #3229 * docs: add schema workflow badge by @hoffa in #3230 * chore: update SAM schema docs by @hoffa in #3232 * chore: remove SAM schema docs automation by @hoffa in #3233 * chore(schema): update by @github-actions in #3234 * docs: update schema diagram by @hoffa in #3235 * chore(schema): update by @github-actions in #3238 * chore(schema): update by @github-actions in #3239 * chore(schema): update by @github-actions in #3241 * Set runtime for resolvers which use generated code by @ssenchenko in #3240 * Merge main to develop by @hoffa in #3243 * chore(schema): update by @github-actions in #3244 * chore(schema): update by @github-actions in #3247 * optional table-arn for ddb datasource by @ssenchenko in #3250 * chore: update managed policies by @hoffa in #3251 * chore(schema): update by @github-actions in #3252 * allow intrinsics for some less important fields by @ssenchenko in #3253 * add "graphqlapi:createdBy": "SAM" tag by @ssenchenko in #3254 * chore(schema): update by @github-actions in #3255 * chore: remove legacy schema validation code by @hoffa in #3257 * chore: json schema docs update by @ssenchenko in #3256 * chore(schema): update by @github-actions in #3259 * Release 1.72.0 (to main) by @ConnorRobertson in #3277 - Drop patch to skip network tests * skip-tests-require-network.patch - Update and Rewrite skip list for failing tests OBS-URL: https://build.opensuse.org/request/show/1109527 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=44
2023-09-07 11:51:05 +00:00
#Patch0: skip-tests-require-network.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Accepting request 1031518 from home:dgarcia:branches:devel:languages:python:aws - Update to 1.53.0 * Verify profile variables have been replaced (#264) * Fix integ tests for feature toggle related to custom domain (#266) * feat: Event filtering for MQ, MSK, SMK (#134) (#265) * Fixed indentation in custom_domains_edge yaml file (#273) * Always copy profile (#274) * Increase api_with_authorizer retry delay (#275) * Add retry-once to connector tests (#276) * Use node14 runtime in connector integ tests (#278) * add a step to clean up unused network interfaces in the precreated subnets * Do not retry on SkipTest (#280) - Update to 1.52.0 * fix: Update Slack Invite link by @jfuss in #2490 * feat: adding support for SSM Parameters (string) as Type by @LautaroJayat in #2469 * chore: Updated maintainers by @lucashuy in #2494 * Release 1.51.0 (to develop) by @aws-sam-cli-bot in #2500 * docs: update README by @hoffa in #2501 * feat: Add State Property to EventBridgeRule EventSource in Function by @nallenscott in #2497 * feat: Added UserAttributeUpdateSettings to Cognito by @lucashuy in #2503 * chore: Use pre-created SAR app during integration tests by @mndeveci in #2507 * chore: Add test name to request logging and remove default region from pytest.ini by @qingchm in #2513 * chore: Only do request logging when internal flag is provided by @qingchm in #2514 OBS-URL: https://build.opensuse.org/request/show/1031518 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=34
2022-11-14 13:22:43 +00:00
Requires: python-boto3 >= 1.19.5
Requires: python-jsonschema >= 3.2
Accepting request 1096714 from home:glaubitz:branches:devel:languages:python:aws - Update to 1.68.0 * chore: Upgrade ruff to 0.0.263 and enable more rules by @aahung in (#3127) * docs: mention what transform tests are by @hoffa in (#3129) * chore(schema): update by @github-actions in (#3131) * Merge main to develop by @ssenchenko in (#3136) * feat: actionable error on non-ARN policy by @hoffa in (#3132) * chore(schema): update by @github-actions in (#3137) * feat(SimpleTable): add PointInTimeRecoverySpecification by @hoffa in (#3138) * chore(schema): update by @github-actions in (#3139) * chore: mark test_request_parameters_open_api as @nonblocking by @hoffa in #(3141) * chore(schema): update by @github-actions in (#3143) * docs: remove automatic type/bug label by @hoffa in (#3147) * chore(schema): update by @github-actions in (#3148) * chore: update bundled managed policies by @hoffa in (#3149) * chore(schema): update by @github-actions in (#3150) * AppSync Api -> Lambda connector by @ssenchenko in (#3145) * Revert "feat: actionable error on non-ARN policy (#3132)" by @hoffa in (#3153) * chore: add Policies test with every type by @hoffa in (#3155) * Release 1.68.0 (to main) by @GavinZZ in (#3185) - from version 1.67.0 * chore(schema): update by @github-actions in (#3104) * chore: Enable termination protection for companion stacks by @GavinZZ in (#3105) * chore(schema): update by @github-actions in (#3108) * fix: Availability Dip Fix for MergeDefinitions property by @GavinZZ in (#3115) * chore(schema): update by @github-actions in (#3116) * chore: bundle aws-cn AWS managed policies by @hoffa in (#3117) * Merge main to develop by @xazhao in (#3119) * fix: Add ScheduleV2 OmitName to omit generated Name in Scheduler::Schedule by @aahung in (#3120) * chore: Use importlib.metadata to get package version by @aahung in (#3121) OBS-URL: https://build.opensuse.org/request/show/1096714 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=40
2023-07-05 12:16:14 +00:00
Requires: python-pydantic >= 1.8
Requires: (python-typing_extensions >= 4.4.0 if python-base < 3.7)
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
%if 0%{?suse_version} < 1500
BuildRequires: python
%endif
# SECTION test requirements
Accepting request 1031518 from home:dgarcia:branches:devel:languages:python:aws - Update to 1.53.0 * Verify profile variables have been replaced (#264) * Fix integ tests for feature toggle related to custom domain (#266) * feat: Event filtering for MQ, MSK, SMK (#134) (#265) * Fixed indentation in custom_domains_edge yaml file (#273) * Always copy profile (#274) * Increase api_with_authorizer retry delay (#275) * Add retry-once to connector tests (#276) * Use node14 runtime in connector integ tests (#278) * add a step to clean up unused network interfaces in the precreated subnets * Do not retry on SkipTest (#280) - Update to 1.52.0 * fix: Update Slack Invite link by @jfuss in #2490 * feat: adding support for SSM Parameters (string) as Type by @LautaroJayat in #2469 * chore: Updated maintainers by @lucashuy in #2494 * Release 1.51.0 (to develop) by @aws-sam-cli-bot in #2500 * docs: update README by @hoffa in #2501 * feat: Add State Property to EventBridgeRule EventSource in Function by @nallenscott in #2497 * feat: Added UserAttributeUpdateSettings to Cognito by @lucashuy in #2503 * chore: Use pre-created SAR app during integration tests by @mndeveci in #2507 * chore: Add test name to request logging and remove default region from pytest.ini by @qingchm in #2513 * chore: Only do request logging when internal flag is provided by @qingchm in #2514 OBS-URL: https://build.opensuse.org/request/show/1031518 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=34
2022-11-14 13:22:43 +00:00
BuildRequires: %{python_module PyYAML >= 5.4}
BuildRequires: %{python_module boto3 >= 1.19.5}
BuildRequires: %{python_module coverage >= 5.3}
BuildRequires: %{python_module docopt >= 0.6.2}
Accepting request 1031518 from home:dgarcia:branches:devel:languages:python:aws - Update to 1.53.0 * Verify profile variables have been replaced (#264) * Fix integ tests for feature toggle related to custom domain (#266) * feat: Event filtering for MQ, MSK, SMK (#134) (#265) * Fixed indentation in custom_domains_edge yaml file (#273) * Always copy profile (#274) * Increase api_with_authorizer retry delay (#275) * Add retry-once to connector tests (#276) * Use node14 runtime in connector integ tests (#278) * add a step to clean up unused network interfaces in the precreated subnets * Do not retry on SkipTest (#280) - Update to 1.52.0 * fix: Update Slack Invite link by @jfuss in #2490 * feat: adding support for SSM Parameters (string) as Type by @LautaroJayat in #2469 * chore: Updated maintainers by @lucashuy in #2494 * Release 1.51.0 (to develop) by @aws-sam-cli-bot in #2500 * docs: update README by @hoffa in #2501 * feat: Add State Property to EventBridgeRule EventSource in Function by @nallenscott in #2497 * feat: Added UserAttributeUpdateSettings to Cognito by @lucashuy in #2503 * chore: Use pre-created SAR app during integration tests by @mndeveci in #2507 * chore: Add test name to request logging and remove default region from pytest.ini by @qingchm in #2513 * chore: Only do request logging when internal flag is provided by @qingchm in #2514 OBS-URL: https://build.opensuse.org/request/show/1031518 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=34
2022-11-14 13:22:43 +00:00
BuildRequires: %{python_module jsonschema >= 3.2}
BuildRequires: %{python_module parameterized >= 0.7.4}
Accepting request 1096714 from home:glaubitz:branches:devel:languages:python:aws - Update to 1.68.0 * chore: Upgrade ruff to 0.0.263 and enable more rules by @aahung in (#3127) * docs: mention what transform tests are by @hoffa in (#3129) * chore(schema): update by @github-actions in (#3131) * Merge main to develop by @ssenchenko in (#3136) * feat: actionable error on non-ARN policy by @hoffa in (#3132) * chore(schema): update by @github-actions in (#3137) * feat(SimpleTable): add PointInTimeRecoverySpecification by @hoffa in (#3138) * chore(schema): update by @github-actions in (#3139) * chore: mark test_request_parameters_open_api as @nonblocking by @hoffa in #(3141) * chore(schema): update by @github-actions in (#3143) * docs: remove automatic type/bug label by @hoffa in (#3147) * chore(schema): update by @github-actions in (#3148) * chore: update bundled managed policies by @hoffa in (#3149) * chore(schema): update by @github-actions in (#3150) * AppSync Api -> Lambda connector by @ssenchenko in (#3145) * Revert "feat: actionable error on non-ARN policy (#3132)" by @hoffa in (#3153) * chore: add Policies test with every type by @hoffa in (#3155) * Release 1.68.0 (to main) by @GavinZZ in (#3185) - from version 1.67.0 * chore(schema): update by @github-actions in (#3104) * chore: Enable termination protection for companion stacks by @GavinZZ in (#3105) * chore(schema): update by @github-actions in (#3108) * fix: Availability Dip Fix for MergeDefinitions property by @GavinZZ in (#3115) * chore(schema): update by @github-actions in (#3116) * chore: bundle aws-cn AWS managed policies by @hoffa in (#3117) * Merge main to develop by @xazhao in (#3119) * fix: Add ScheduleV2 OmitName to omit generated Name in Scheduler::Schedule by @aahung in (#3120) * chore: Use importlib.metadata to get package version by @aahung in (#3121) OBS-URL: https://build.opensuse.org/request/show/1096714 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=40
2023-07-05 12:16:14 +00:00
BuildRequires: %{python_module pydantic >= 1.8}
BuildRequires: %{python_module pytest >= 3.0.7}
Accepting request 1031518 from home:dgarcia:branches:devel:languages:python:aws - Update to 1.53.0 * Verify profile variables have been replaced (#264) * Fix integ tests for feature toggle related to custom domain (#266) * feat: Event filtering for MQ, MSK, SMK (#134) (#265) * Fixed indentation in custom_domains_edge yaml file (#273) * Always copy profile (#274) * Increase api_with_authorizer retry delay (#275) * Add retry-once to connector tests (#276) * Use node14 runtime in connector integ tests (#278) * add a step to clean up unused network interfaces in the precreated subnets * Do not retry on SkipTest (#280) - Update to 1.52.0 * fix: Update Slack Invite link by @jfuss in #2490 * feat: adding support for SSM Parameters (string) as Type by @LautaroJayat in #2469 * chore: Updated maintainers by @lucashuy in #2494 * Release 1.51.0 (to develop) by @aws-sam-cli-bot in #2500 * docs: update README by @hoffa in #2501 * feat: Add State Property to EventBridgeRule EventSource in Function by @nallenscott in #2497 * feat: Added UserAttributeUpdateSettings to Cognito by @lucashuy in #2503 * chore: Use pre-created SAR app during integration tests by @mndeveci in #2507 * chore: Add test name to request logging and remove default region from pytest.ini by @qingchm in #2513 * chore: Only do request logging when internal flag is provided by @qingchm in #2514 OBS-URL: https://build.opensuse.org/request/show/1031518 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=34
2022-11-14 13:22:43 +00:00
BuildRequires: %{python_module pytest-cov >= 2.10.1}
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
2022-12-02 12:37:06 +00:00
BuildRequires: %{python_module pytest-rerunfailures}
Accepting request 1031518 from home:dgarcia:branches:devel:languages:python:aws - Update to 1.53.0 * Verify profile variables have been replaced (#264) * Fix integ tests for feature toggle related to custom domain (#266) * feat: Event filtering for MQ, MSK, SMK (#134) (#265) * Fixed indentation in custom_domains_edge yaml file (#273) * Always copy profile (#274) * Increase api_with_authorizer retry delay (#275) * Add retry-once to connector tests (#276) * Use node14 runtime in connector integ tests (#278) * add a step to clean up unused network interfaces in the precreated subnets * Do not retry on SkipTest (#280) - Update to 1.52.0 * fix: Update Slack Invite link by @jfuss in #2490 * feat: adding support for SSM Parameters (string) as Type by @LautaroJayat in #2469 * chore: Updated maintainers by @lucashuy in #2494 * Release 1.51.0 (to develop) by @aws-sam-cli-bot in #2500 * docs: update README by @hoffa in #2501 * feat: Add State Property to EventBridgeRule EventSource in Function by @nallenscott in #2497 * feat: Added UserAttributeUpdateSettings to Cognito by @lucashuy in #2503 * chore: Use pre-created SAR app during integration tests by @mndeveci in #2507 * chore: Add test name to request logging and remove default region from pytest.ini by @qingchm in #2513 * chore: Only do request logging when internal flag is provided by @qingchm in #2514 OBS-URL: https://build.opensuse.org/request/show/1031518 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=34
2022-11-14 13:22:43 +00:00
BuildRequires: %{python_module requests >= 2.24.0}
%python_subpackages
%description
AWS SAM Translator is a library that transform SAM
templates into AWS CloudFormation templates
%prep
Accepting request 1031518 from home:dgarcia:branches:devel:languages:python:aws - Update to 1.53.0 * Verify profile variables have been replaced (#264) * Fix integ tests for feature toggle related to custom domain (#266) * feat: Event filtering for MQ, MSK, SMK (#134) (#265) * Fixed indentation in custom_domains_edge yaml file (#273) * Always copy profile (#274) * Increase api_with_authorizer retry delay (#275) * Add retry-once to connector tests (#276) * Use node14 runtime in connector integ tests (#278) * add a step to clean up unused network interfaces in the precreated subnets * Do not retry on SkipTest (#280) - Update to 1.52.0 * fix: Update Slack Invite link by @jfuss in #2490 * feat: adding support for SSM Parameters (string) as Type by @LautaroJayat in #2469 * chore: Updated maintainers by @lucashuy in #2494 * Release 1.51.0 (to develop) by @aws-sam-cli-bot in #2500 * docs: update README by @hoffa in #2501 * feat: Add State Property to EventBridgeRule EventSource in Function by @nallenscott in #2497 * feat: Added UserAttributeUpdateSettings to Cognito by @lucashuy in #2503 * chore: Use pre-created SAR app during integration tests by @mndeveci in #2507 * chore: Add test name to request logging and remove default region from pytest.ini by @qingchm in #2513 * chore: Only do request logging when internal flag is provided by @qingchm in #2514 OBS-URL: https://build.opensuse.org/request/show/1031518 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=34
2022-11-14 13:22:43 +00:00
%autosetup -p1 -n serverless-application-model-%{version}
sed -i -e 's:~=:>=:g' requirements/base.txt
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
2022-12-02 12:37:06 +00:00
# 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
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
mkdir -p %{buildroot}%{_bindir}
install -D -m 755 bin/sam-translate.py %{buildroot}%{_bindir}/sam-translate
%python_clone -a %{buildroot}%{_bindir}/sam-translate
%if %{with test}
%check
export LANG=en_US.UTF8
Accepting request 1109527 from home:glaubitz:branches:devel:languages:python:aws - Update to version 1.74.0 * fix:RuntimeManagementConfig by @ConnorRobertson in #3274 * chore: update schema by @ConnorRobertson in #3276 * Merge main to develop by @ConnorRobertson in #3278 * chore: switch to SimpleTable in gql integ tests by @ssenchenko in #3279 * chore: Update Lambda envs in integ tests by @ssenchenko in #3280 * fix: Fix Propagate Tags when Tags is defined in Globals by @GavinZZ in #3284 * feat: Input transformer for AWS::Serverless::Function.EventBridgeRule by @ConnorRobertson in #3283 * Release 1.74.0 (to main) by @xazhao in #3329 - from version 1.73.0 * chore(schema): update by @github-actions in #3267 * chore(schema): update by @github-actions in #3266 * ci: fail tests on warnings by @hoffa in #3248 * chore(schema): update by @github-actions in #3272 * Release 1.73.0 (to main) by @ssenchenko in #3295 - from version 1.72.0 * Merge main to develop by @GavinZZ in #3226 * fix: read from default boto3 session if present. by @sriram-mv in #3224 * chore(schema): update by @github-actions in #3227 * chore: use auto-generated CFN docs from CDK by @hoffa in #3219 * docs: update schema diagram by @hoffa in #3229 * docs: add schema workflow badge by @hoffa in #3230 * chore: update SAM schema docs by @hoffa in #3232 * chore: remove SAM schema docs automation by @hoffa in #3233 * chore(schema): update by @github-actions in #3234 * docs: update schema diagram by @hoffa in #3235 * chore(schema): update by @github-actions in #3238 * chore(schema): update by @github-actions in #3239 * chore(schema): update by @github-actions in #3241 * Set runtime for resolvers which use generated code by @ssenchenko in #3240 * Merge main to develop by @hoffa in #3243 * chore(schema): update by @github-actions in #3244 * chore(schema): update by @github-actions in #3247 * optional table-arn for ddb datasource by @ssenchenko in #3250 * chore: update managed policies by @hoffa in #3251 * chore(schema): update by @github-actions in #3252 * allow intrinsics for some less important fields by @ssenchenko in #3253 * add "graphqlapi:createdBy": "SAM" tag by @ssenchenko in #3254 * chore(schema): update by @github-actions in #3255 * chore: remove legacy schema validation code by @hoffa in #3257 * chore: json schema docs update by @ssenchenko in #3256 * chore(schema): update by @github-actions in #3259 * Release 1.72.0 (to main) by @ConnorRobertson in #3277 - Drop patch to skip network tests * skip-tests-require-network.patch - Update and Rewrite skip list for failing tests OBS-URL: https://build.opensuse.org/request/show/1109527 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=44
2023-09-07 11:51:05 +00:00
donttest="test_plugin_accepts_different_sar_client or test_plugin_accepts_flags or"
donttest="$donttest test_plugin_accepts_parameters or test_plugin_default_values or"
donttest="$donttest test_plugin_invalid_configuration_raises_exception or test_plugin_must_setup_correct_name or"
donttest="$donttest test_must_process_applications or test_must_process_applications_validate or"
donttest="$donttest test_process_invalid_applications or test_process_invalid_applications_validate or"
donttest="$donttest test_resolve_intrinsics or test_sar_service_calls or test_sar_success_one_app or"
donttest="$donttest test_sar_throttling_doesnt_stop_processing or test_sleep_between_sar_checks or"
donttest="$donttest test_unexpected_sar_error_stops_processing or test_time_limit_exceeds_between_combined_sar_calls or"
donttest="$donttest test_is_service_supported_positive_4_ec2"
%pytest -k "not ($donttest)"
%endif
%post
%python_install_alternative sam-translate
%postun
%python_uninstall_alternative sam-translate
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/sam-translate
Accepting request 1031518 from home:dgarcia:branches:devel:languages:python:aws - Update to 1.53.0 * Verify profile variables have been replaced (#264) * Fix integ tests for feature toggle related to custom domain (#266) * feat: Event filtering for MQ, MSK, SMK (#134) (#265) * Fixed indentation in custom_domains_edge yaml file (#273) * Always copy profile (#274) * Increase api_with_authorizer retry delay (#275) * Add retry-once to connector tests (#276) * Use node14 runtime in connector integ tests (#278) * add a step to clean up unused network interfaces in the precreated subnets * Do not retry on SkipTest (#280) - Update to 1.52.0 * fix: Update Slack Invite link by @jfuss in #2490 * feat: adding support for SSM Parameters (string) as Type by @LautaroJayat in #2469 * chore: Updated maintainers by @lucashuy in #2494 * Release 1.51.0 (to develop) by @aws-sam-cli-bot in #2500 * docs: update README by @hoffa in #2501 * feat: Add State Property to EventBridgeRule EventSource in Function by @nallenscott in #2497 * feat: Added UserAttributeUpdateSettings to Cognito by @lucashuy in #2503 * chore: Use pre-created SAR app during integration tests by @mndeveci in #2507 * chore: Add test name to request logging and remove default region from pytest.ini by @qingchm in #2513 * chore: Only do request logging when internal flag is provided by @qingchm in #2514 OBS-URL: https://build.opensuse.org/request/show/1031518 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=34
2022-11-14 13:22:43 +00:00
%{python_sitelib}/samtranslator
%{python_sitelib}/aws_sam_translator-%{version}*-info
%changelog