- 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
116 lines
4.3 KiB
RPMSpec
116 lines
4.3 KiB
RPMSpec
#
|
|
# spec file for package python-aws-sam-translator
|
|
#
|
|
# 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
|
|
Version: 1.74.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
|
|
#Patch0: skip-tests-require-network.patch
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-boto3 >= 1.19.5
|
|
Requires: python-jsonschema >= 3.2
|
|
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
|
|
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}
|
|
BuildRequires: %{python_module jsonschema >= 3.2}
|
|
BuildRequires: %{python_module parameterized >= 0.7.4}
|
|
BuildRequires: %{python_module pydantic >= 1.8}
|
|
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
|
|
|
|
%description
|
|
AWS SAM Translator is a library that transform SAM
|
|
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
|
|
|
|
%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
|
|
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
|
|
%{python_sitelib}/samtranslator
|
|
%{python_sitelib}/aws_sam_translator-%{version}*-info
|
|
|
|
%changelog
|