Robert Schweikert
5985fcd1d7
- 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
115 lines
3.6 KiB
RPMSpec
115 lines
3.6 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.51.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-PyYAML >= 4.2
|
|
Requires: python-boto3 >= 1.5
|
|
Requires: python-docopt >= 0.6.2
|
|
Requires: python-jsonschema >= 3.0
|
|
Requires: python-six >= 1.11
|
|
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.1}
|
|
BuildRequires: %{python_module boto3 >= 1.5}
|
|
BuildRequires: %{python_module coverage >= 4.4.0}
|
|
BuildRequires: %{python_module docopt >= 0.6.2}
|
|
BuildRequires: %{python_module jsonschema >= 3.0}
|
|
BuildRequires: %{python_module parameterized >= 0.6.1}
|
|
BuildRequires: %{python_module pytest >= 3.0.7}
|
|
BuildRequires: %{python_module pytest-cov >= 2.4.0}
|
|
BuildRequires: %{python_module requests >= 2.20.0}
|
|
BuildRequires: %{python_module six >= 1.11}
|
|
%if %{with python2}
|
|
BuildRequires: python-enum34 >= 1.1
|
|
%endif
|
|
# /SECTION
|
|
%ifpython2
|
|
Requires: python-enum34 >= 1.1
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
AWS SAM Translator is a library that transform SAM
|
|
templates into AWS CloudFormation templates
|
|
|
|
%prep
|
|
%setup -q -n serverless-application-model-%{version}
|
|
%patch0 -p1
|
|
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}/*
|
|
|
|
%changelog
|