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
This commit is contained in:
Robert Schweikert 2019-01-21 13:03:46 +00:00 committed by Git OBS Bridge
commit 61a2a86c3e
6 changed files with 133 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -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

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1334795a85077cd5741822149260f90104fb2a01699171c9e9567c0db76ed74d
size 86049

View File

@ -0,0 +1,8 @@
-------------------------------------------------------------------
Mon Jan 21 12:42:29 UTC 2019 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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

View File

@ -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