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 1115993 from home:glaubitz:branches:devel:languages:python:aws - Update to version 1.76.0 * chore: Update integration test file to use nodejs18 by @GavinZZ in #3332 * [fix] Auth Override not working with DefinitionBody fix by @paulhcsun in #3328 * fix: Kafka Auth Mechanism "SERVER_ROOT_CA_CERTIFICATE" and other Auth can't be used together by @ConnorRobertson in #3341 * chore(schema): update by @github-actions in #3343 * chore(schema): update by @github-actions in #3344 * Release 1.76.0 (to main) by @GavinZZ in #3359 - from version 1.75.0 * chore: fix authorizers.get() dip by @aaythapa in #3285 * chore: change api key resource's value property by @aaythapa in #3286 * fix: fix integ test by @aaythapa in #3292 * chore(schema): update by @github-actions in #3291 * chore: add support for pydantic 2.x by @yan12125 in #3282 * Merge main to develop by @ssenchenko in #3296 * fix: Add setup and teardown markers to make companion stack by @gracelu0 in #3301 * chore(schema): update by @github-actions in #3298 * [fix]: Add RuleName to EventBridgeRuleEventProperties by @paulhcsun in #3304 * chore: Upgrade ruff/black/mypy and fix violations by @aahung in #3300 * Revert Validator Removal by @awood45 in #3307 * feat: Add TimeoutInMillis Property to API Event Source by @gracelu0 in #3310 * chore(schema): update by @github-actions in #3312 * chore(schema): update by @github-actions in #3314 * fix: Support both 'VPCEndpointIds' and 'VpcEndpointIds' by @GavinZZ in #3315 * fix: Fix availability dip in PropagateTags property by @GavinZZ in #3316 * chore: Remove Validation on DeletionPolicy and UpdateReplacePolicy by @GavinZZ in #3317 * chore: Update docs by @ssenchenko in #3319 * chore: Update Lambda node runtime envs in integ tests by @GavinZZ in #3320 * chore: Update docs (#3322) by @andy2mrqz in #3323 * chore(schema): update by @github-actions in #3324 OBS-URL: https://build.opensuse.org/request/show/1115993 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=46
2023-10-06 13:13:55 +00:00
Version: 1.76.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