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

104 lines
3.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-aws-sam-translator
#
# Copyright (c) 2022 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/
#
%{?!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
%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 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
Version: 1.53.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 1004975 from home:glaubitz:branches:devel:languages:python:aws - Update to 1.51.0 * chore: Add missing import and add partition into base test for integration test by @qingchm in #2463 * Release 1.49.0 (to develop) by @aws-sam-cli-bot in #2465 * Revert "chore: Add missing import and add partition into base test for integration test" by @qingchm in #2466 * Update methods in Metrics class to accept timestamp by @hawflau in #2470 * Release 1.50.0 (to develop) by @aws-sam-cli-bot in #2471 * feat: Add State Property to Schedule EventSource in StateMachine by @konoui in #2468 * Test: Upgrade integration test cases lambda resources runtimes to nodejs14.x by @moelasmar in #2474 * Add validation for S3 NotificationConfiguration in Serverless Functin… by @hawflau in #2473 * chore: Change FeatureToggleAppConfigConfigProvider to accept AppConfig client, so SAM-T can send a monitored client. by @moelasmar in #2480 * chore: Add basic mypy check (no behavior change) by @aahung in #2488 * chore: Integration test improvements with ApiKey skips and retry time by @qingchm in #2487 - from version 1.50.0 * chore: Skip self managed kafka tests by @qingchm in #2461 * chore: Add required skipifs for integration tests by @qingchm in #2462 * feat: Support ConsumerGroupId for Kafka events - from version 1.49.0 * Fix EventSource Schedule passes Enabled to State by @lightpriest in #1666 * chore: Add capability to disable S3 Events integration test cases. by @moelasmar in #2454 * chore: Add region skip condition and retry for http test by @qingchm in #2455 * Add validation for swagger security when ApiKeyRequired OBS-URL: https://build.opensuse.org/request/show/1004975 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=32
2022-09-24 09:22:57 +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
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}
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}
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
%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 975199 from home:pgajdos:python - version update to 1.45.0 * Feat FURL by @jonife @valerena in #2370 * Feat /tmp config by @slowpokesnail in #2362 * Fix no allowed origin by @c2tarun in #2180 * Raise InvalidEventException when RestApiId/ApiId is not resolved to a string by @aahung in #2213 * Raise a validation exception if the responses section in an openApi definition path is not a dictionary object by @moelasmar in #2214 * chore: Add auto PR labeler by @jfuss in #2219 * Fix DestinationConfig in streaming event sources by @hawflau in #2215 * fix: handle non-dict DefinitionBody path item in _openapi_postprocess by @torresxb1 in #2216 * Run unit tests in parallel by @aahung in #2222 * Handle when HttpApi resource doesn't have properties by @aahung in #2221 * Chore: Only add labels on open of PRs by @jfuss in #2225 * feat: Lambda URLs by @mndeveci in #2231 * Revert "feat: Lambda URLs (#2229)" by @mndeveci in #2233 * Handle when function http event auth is not a string by @aahung in #2234 * chore: bump version to 1.42.0 by @mndeveci in #2235 * Revert "chore: bump version to 1.42.0" by @CoshUS in #2237 * release: 1.42.0 by @mndeveci in #2243 * fix: open api set_path_default_authorizer by @mndeveci in #2248 * Validate swagger path item objects by @aahung in #2251 * Validate swagger method value is a valid dict before processing by @aahung in #2250 * fix: fix validation errors log message that calls join on a string by @torresxb1 in #2245 * [FOSS] hot fix and improvement by @mingkun2020 in #2207 * fix: Check type of resource type is a string by @mildaniel in #2252 * fix: open api set_path_default_authorizer (#2248) by @mndeveci in #2262 * fix: open api set_path_default_authorizer (#2248) by @mndeveci in #2261 * Do not abort SAR loop on throttling by @marekaiv in #2240 * Improve error message for an invalid ResourcePolicy element by @marekaiv in #2271 * Fixing DisableExecuteApiEndpoint property for REST and adding integ t… by @sattigar in #2272 * fix: Py27hash fix by @torresxb1 in #2182 OBS-URL: https://build.opensuse.org/request/show/975199 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=30
2022-06-01 10:50:29 +00:00
# test_is_service_supported_positive_4_ec2:
# samtranslator/region_configuration.py:52: NoRegionFound
# test_errors_13_error_definitionuri:
# AssertionError: Expected 7 errors, found 9
%pytest -k 'not (test_is_service_supported_positive_4_ec2 or test_errors_13_error_definitionuri or test_py27_hash)'
%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