Hello community,
here is the log from the commit of package python-aws-sam-translator for
openSUSE:Factory checked in at 2020-05-08 23:06:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-aws-sam-translator (Old)
and /work/SRC/openSUSE:Factory/.python-aws-sam-translator.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-aws-sam-translator"
Fri May 8 23:06:44 2020 rev:6 rq:801242 version:1.22.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-aws-sam-translator/python-aws-sam-translator.changes
2019-11-24 00:29:00.187219450 +0100
+++
/work/SRC/openSUSE:Factory/.python-aws-sam-translator.new.2738/python-aws-sam-translator.changes
2020-05-08 23:06:46.698037106 +0200
@@ -1,0 +2,13 @@
+Mon May 4 07:16:01 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Update to 1.22.0:
+ * Many parsing changes to enumerate, fixes for new syntax
+- Fix the saml-translate binary to be executable
+
+-------------------------------------------------------------------
+Mon May 4 07:13:21 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Fix build without python2
+- Do not ship generic folder with tests in sitelib
+
+-------------------------------------------------------------------
Old:
----
serverless-application-model-1.11.0.tar.gz
New:
----
serverless-application-model-1.22.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-aws-sam-translator.spec ++++++
--- /var/tmp/diff_new_pack.smsFdZ/_old 2020-05-08 23:06:49.202042222 +0200
+++ /var/tmp/diff_new_pack.smsFdZ/_new 2020-05-08 23:06:49.206042230 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-aws-sam-translator
#
-# Copyright (c) 2019 SUSE LLC
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,7 @@
#
+%{?!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
@@ -23,46 +24,45 @@
%else
%bcond_without test
%endif
-
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_without python2
Name: python-aws-sam-translator
-Version: 1.11.0
+Version: 1.22.0
Release: 0
Summary: AWS SAM template to AWS CloudFormation template translator
License: Apache-2.0
-Group: Development/Languages/Python
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
-%if 0%{?suse_version} < 1500
-BuildRequires: python
-%endif
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
+BuildArch: noarch
+%if 0%{?suse_version} < 1500
+BuildRequires: python
+%endif
# SECTION test requirements
-BuildRequires: %{python_module PyYAML >= 4.2}
+BuildRequires: %{python_module PyYAML >= 5.1}
BuildRequires: %{python_module boto3 >= 1.5}
BuildRequires: %{python_module coverage >= 4.4.0}
-BuildRequires: %{python_module jsonschema >= 2.6}
+BuildRequires: %{python_module docopt >= 0.6.2}
+BuildRequires: %{python_module jsonschema >= 3.0}
BuildRequires: %{python_module mock >= 2.0.0}
BuildRequires: %{python_module parameterized >= 0.6.1}
-BuildRequires: %{python_module py >= 1.4.33}
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
-Requires: python-PyYAML >= 4.2
-Requires: python-boto3 >= 1.5
-Requires: python-docopt >= 0.6.2
-Requires: python-jsonschema >= 2.6
-Requires: python-six >= 1.11
%ifpython2
Requires: python-enum34 >= 1.1
%endif
-BuildArch: noarch
-
%python_subpackages
%description
@@ -71,17 +71,19 @@
%prep
%setup -q -n serverless-application-model-%{version}
-sed -i -e '1s|#!/usr/bin/env python2|#!/usr/bin/python3|' bin/sam-translate.py
+sed -i -e '1s|#!%{_bindir}/env python2|#!%{_bindir}/python3|'
bin/sam-translate.py
+sed -i -e 's:~=:>=:g' requirements/base.txt
%build
%python_build
%install
%python_install
+%python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
%python_expand %fdupes %{buildroot}%{$python_sitelib}
mkdir -p %{buildroot}%{_bindir}
-install -D -m 644 bin/sam-translate.py %{buildroot}%{_bindir}/sam-translate
+install -D -m 755 bin/sam-translate.py %{buildroot}%{_bindir}/sam-translate
%if %{with test}
%check
++++++ serverless-application-model-1.11.0.tar.gz ->
serverless-application-model-1.22.0.tar.gz ++++++
++++ 181044 lines of diff (skipped)