commit 61a2a86c3ef8dc3c951dc40ab194929c565e4e187de2a23dbe1909e300081278 Author: Robert Schweikert Date: Mon Jan 21 13:03:46 2019 +0000 Accepting request 667596 from home:glaubitz:branches:devel:languages:python:aws - Additional dependency required for cfn-lint (fate#326950, fate#326961) OBS-URL: https://build.opensuse.org/request/show/667596 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ast_drop-compatible-releases-operator.patch b/ast_drop-compatible-releases-operator.patch new file mode 100644 index 0000000..5c6ff61 --- /dev/null +++ b/ast_drop-compatible-releases-operator.patch @@ -0,0 +1,13 @@ +diff -Nru aws-sam-translator-1.9.0.orig/requirements/base.txt aws-sam-translator-1.9.0/requirements/base.txt +--- aws-sam-translator-1.9.0.orig/requirements/base.txt 2018-11-29 18:53:32.000000000 +0100 ++++ aws-sam-translator-1.9.0/requirements/base.txt 2019-01-21 13:38:19.566088857 +0100 +@@ -1,5 +1,5 @@ +-boto3~=1.5 +-enum34~=1.1; python_version<"3.4" +-jsonschema~=2.6 +-six~=1.11 ++boto3>=1.5 ++enum34>=1.1; python_version<"3.4" ++jsonschema>=2.6 ++six>=1.11 + diff --git a/aws-sam-translator-1.9.0.tar.gz b/aws-sam-translator-1.9.0.tar.gz new file mode 100644 index 0000000..b7d2bf2 --- /dev/null +++ b/aws-sam-translator-1.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1334795a85077cd5741822149260f90104fb2a01699171c9e9567c0db76ed74d +size 86049 diff --git a/python-aws-sam-translator.changes b/python-aws-sam-translator.changes new file mode 100644 index 0000000..470e004 --- /dev/null +++ b/python-aws-sam-translator.changes @@ -0,0 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 21 12:42:29 UTC 2019 - John Paul Adrian Glaubitz + +- Initial build + + Version 1.9.0 +- Add patch to drop compatible releases operator from setup.py, + required for SLES12 as the setuptools version is too old + + ast_drop-compatible-releases-operator.patch diff --git a/python-aws-sam-translator.spec b/python-aws-sam-translator.spec new file mode 100644 index 0000000..1c34a19 --- /dev/null +++ b/python-aws-sam-translator.spec @@ -0,0 +1,85 @@ +# +# spec file for package python-aws-sam-translator +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-aws-sam-translator +Version: 1.9.0 +Release: 0 +License: Apache-2.0 +Summary: AWS SAM template to AWS CloudFormation template translator +Url: https://github.com/awslabs/serverless-application-model +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/a/aws-sam-translator/aws-sam-translator-%{version}.tar.gz +Patch: ast_drop-compatible-releases-operator.patch +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module boto3 >= 1.5} +BuildRequires: %{python_module boto3 < 2.0} +BuildRequires: %{python_module jsonschema >= 2.6} +BuildRequires: %{python_module jsonschema < 3.0} +BuildRequires: %{python_module six >= 1.11} +BuildRequires: %{python_module six < 2.0} +# /SECTION +BuildRequires: fdupes +Requires: python-boto3 >= 1.5 +Requires: python-boto3 < 2.0 +Requires: python-jsonschema >= 2.6 +Requires: python-jsonschema < 3.0 +Requires: python-six >= 1.11 +Requires: python-six < 2.0 +Suggests: python-enum34 >= 1.1 +Suggests: python-enum34 < 2.0 +Suggests: python-coverage >= 4.4.0 +Suggests: python-flake8 >= 3.3.0 +Suggests: python-tox >= 2.2.1 +Suggests: python-pytest-cov >= 2.4.0 +Suggests: python-pylint >= 1.7.2 +Suggests: python-PyYAML == 3.12 +Suggests: python-pytest >= 3.0.7 +Suggests: python-py >= 1.4.33 +Suggests: python-mock >= 2.0.0 +Suggests: python-nose >= 1.3.7 +Suggests: python-parameterized >= 0.6.1 +Suggests: python-requests >= 2.11.1 +Suggests: python-docopt >= 0.6.2 +BuildArch: noarch + +%python_subpackages + +%description +AWS SAM Translator is a library that transform SAM +templates into AWS CloudFormation templates + +%prep +%setup -q -n aws-sam-translator-%{version} +%patch -p1 + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/* + +%changelog