1
0
python-aws-sam-translator/python-aws-sam-translator.spec
Robert Schweikert 2011303b27 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

104 lines
3.4 KiB
RPMSpec

#
# 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
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
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(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 pytest >= 3.0.7}
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
%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
# 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
%{python_sitelib}/samtranslator
%{python_sitelib}/aws_sam_translator-%{version}*-info
%changelog