1
0

8 Commits

Author SHA256 Message Date
48056668d6 Accepting request 1315501 from devel:languages:python:aws
OBS-URL: https://build.opensuse.org/request/show/1315501
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cfn-lint?expand=0&rev=29
2025-11-04 17:43:42 +00:00
685437a6ba - Update to 1.40.4
* Patch boto process to cover shap mismatch boto to schema
  * Update CloudFormation schemas to `2025-10-31`
- from version 1.40.3
  * Update CloudFormation schemas to `2025-10-27`

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-cfn-lint?expand=0&rev=61
2025-11-04 13:18:36 +00:00
f19bc8dc65 Accepting request 1311542 from devel:languages:python:aws
OBS-URL: https://build.opensuse.org/request/show/1311542
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cfn-lint?expand=0&rev=28
2025-10-16 15:38:53 +00:00
6f60f8c3c3 - Update to 1.40.2
* Update the `UpdatePolicy` schema
  * Update gitsync schema parameter types
  * State Machine Unit Test: Fix another StartAt typo
  * Update CloudFormation schemas to `2025-10-13`
- from 1.40.1
  * Update `nodejs18.x` lifecycle dates in `LmbdRuntimeLifecycle.json` to
    match official AWS Docs
  * Update integration tests
  * State Machine Unit Test: Fix `StartAt` typo
  * Update CloudFormation schemas to `2025-10-09`
  * Remove format patching for Cloud9 `ImageId`
- from version 1.40.0
  * increase sqs MaximumMessageSize maximum value
  * chore(deps): bump actions/setup-python from 5 to 6
  * chore(deps): bump pyinstaller from 6.15.0 to 6.16.0 in /requirements
  * Migrate from MarkedLoader to (C)SafeLoader
  * Update CloudFormation schemas to 2025-09-29
- from version 1.39.1
  * Remove rule (E3056)
  * Update CloudFormation schemas to `2025-08-26`
  * Reformat format keyword in some json files
  * Update StateMachine map to support legacy `Iterator`
  * Add output to Statemachine choice
  * Update SAM transform URI replacement to allow `Fn::If`
  * SAM transform comma lists to array
  * Update (I3510) to skip dynamic references
- from version 1.39.0
  * Optimize rule filtering performance
  * Improved handling of directories for --list-templates

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-cfn-lint?expand=0&rev=59
2025-10-15 20:04:36 +00:00
e02e0ac30d Accepting request 1250521 from devel:languages:python:aws
OBS-URL: https://build.opensuse.org/request/show/1250521
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cfn-lint?expand=0&rev=27
2025-03-06 13:48:58 +00:00
36c723b75d - Update to 1.27.0
* Update rule W8003 to include always false
  * Pass parameters to ForEachCollection processing
  * Add Assign to appropriate state machine options
  * Replace parameters when both transforms are used
  * Allow for debug in .cfnlintrc file
  * Add rule E1041 to validate Ref format
  * Update rule E2015 to have the Default value be a str
  * Cleanup boto patching and include min/max
  * Add rule E3501 to validate AWS::SQS::Queue properties based on the queue type
  * Add rule E3502 to validate AWS::SQS::Queue DLQ types match
  * Add TRUE to list of strings that can be boolean true
  * Allow asterisks for rule I3042
  * Update I1022 to allow functions
  * Add rule W1051 to validate if dynamic reference when ARN
  * Provide configuration for exceptions to E3019
  * Deprecate py3.8
  * Update lambda eol dates

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-cfn-lint?expand=0&rev=57
2025-03-06 03:05:40 +00:00
56e2809a76 Accepting request 1226387 from devel:languages:python:aws
- Update to 1.20.0, summary of the changes:
  ###### Features
  * Switch from `awsType` to `cfnLint` @kddejong
  * Add `dependentExcluded` keyword to json schema validation
  * Add `requiredXor` keyword to json schema validation
  * Allow for integration the configuration of additional registry schemas
  * Add in `enum` values from botocore
  * Add many JSON schemas to provide additional validation
  * Add json schema for CW Alarm period when in the AWS namespace
  * Include launch template security group schema
  ##### Fixes
  * Enhanced monitoring can be configured on aurora clusters
  * Update `Fn::FindInMap` resolver to handle `Ref` to psedueparams
  * Create a new jsonschema keyword `enumCaseInsensitive`
  * Add `additionalProperties` false to IAM conditions
  * Expand boto auto detection to include sub properties
  * Add logic for `AWS::EC2::Subnet.Id` format
  * Update language extensions `Fn::ForEach` for empty lists
  * Support Python 3.13
  * Make an exception for DocDB Cluster Port return type
  * Dynamically determine Account ID during transform
  * Move `requireXor` to `SpotFleetRequestConfigData`
  * Bring back stateful resources json
  * Add `MinActiveInstancesPercent` to `AutoScalingRollingUpdate`
  * Update `requiredXor` for Vpc and Subnets
  * Exception for lambda authorizer uri
  * Allow for secretsmanager dynamic refs in `Parameter` defaults
  * Move KMS validation for `SSESpecification` on Tables
  * Return Symbol instead of None on Fn::Equals logic
  * Remove handlers and tagging/permissions from specs

OBS-URL: https://build.opensuse.org/request/show/1226387
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cfn-lint?expand=0&rev=26
2024-11-26 19:55:56 +00:00
1bd1e7e257 - Update to 5.0.16, partial changes:
* EC2: create_network_acl_entry() now supports the Ipv6CidrBlock-parameter
  * GuardDuty: create_detector() now supports the Features-parameter
  * RDS: modify_option_groups() now correctly parses OptionsToInclude
  * SNS: publish() and publish_batch now support MessageStructure=json
  * WAFv2: associate_web_acl() now allows any resource to be associated
  * DynamoDB: get/delete/update_item() now validates all provided keys exist
  * S3: put_object() now support conditional writes
  * CognitoIDP: Enhanced support for MFA flows/challenges
  * DynamoDB: update_item() now validates empty string sets
  * EC2: describe_snapshots() now supports the kms-key-id filter
  * EC2: run_instances() now supports the parameter Ipv6AddressCount
  * ECS: Tasks can now be created with unknown security groups
  * IAM: generate_credentials_report() now shows active certificates
  * KMS: sign() now supports Alias ARNs
  * Route53: list_resource_record_sets() now validates record names
  * S3: create_bucket() now has additional LocationConstraint-validation
  * S3: delete_objects() now respects BucketPolicy and ObjectLocks
  * S3: head_object() now handles Range-parameter correctly
  * SageMaker: search() now supports the CONTAINS filter
  * SNS: Signature of HTTP Messages are now valid
  * SQS: delete_message_batch() now validates there's at least one entry
  * ACM-PCA: create_certificate_authority() now uses the provided Subject
  * Athena: The default work group now has the correct configuration
  * Autoscaling: update_group() now validates that the Group exists
  * Batch: now supports parameters in Job commands
  * CloudFormation: describe_stacks() now returns export names in the Outputs
  * CloudFormation: AWS::Events::Rule's now also creates/deletes Targets
  * CognitoIDP: sign_up() now returns CodeDeliveryDetails
  * EventBridge: create_connection() now creates a KMS Secret

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-cfn-lint?expand=0&rev=55
2024-11-26 02:33:38 +00:00
4 changed files with 325 additions and 14 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9ec412debea53bda9c05662d204f29efae21371997ef0bd298ff79aa88ab92bc
size 4565534

3
cfn-lint-1.40.4.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,313 @@
-------------------------------------------------------------------
Tue Nov 4 07:18:48 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 1.40.4
* Patch boto process to cover shap mismatch boto to schema
* Update CloudFormation schemas to `2025-10-31`
- from version 1.40.3
* Update CloudFormation schemas to `2025-10-27`
-------------------------------------------------------------------
Wed Oct 15 10:21:54 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 1.40.2
* Update the `UpdatePolicy` schema
* Update gitsync schema parameter types
* State Machine Unit Test: Fix another StartAt typo
* Update CloudFormation schemas to `2025-10-13`
- from 1.40.1
* Update `nodejs18.x` lifecycle dates in `LmbdRuntimeLifecycle.json` to
match official AWS Docs
* Update integration tests
* State Machine Unit Test: Fix `StartAt` typo
* Update CloudFormation schemas to `2025-10-09`
* Remove format patching for Cloud9 `ImageId`
- from version 1.40.0
* increase sqs MaximumMessageSize maximum value
* chore(deps): bump actions/setup-python from 5 to 6
* chore(deps): bump pyinstaller from 6.15.0 to 6.16.0 in /requirements
* Migrate from MarkedLoader to (C)SafeLoader
* Update CloudFormation schemas to 2025-09-29
- from version 1.39.1
* Remove rule (E3056)
* Update CloudFormation schemas to `2025-08-26`
* Reformat format keyword in some json files
* Update StateMachine map to support legacy `Iterator`
* Add output to Statemachine choice
* Update SAM transform URI replacement to allow `Fn::If`
* SAM transform comma lists to array
* Update (I3510) to skip dynamic references
- from version 1.39.0
* Optimize rule filtering performance
* Improved handling of directories for --list-templates
* chore(deps): bump actions/checkout from 4 to 5
* Update CloudFormation schemas to `2025-08-18`
- from version 1.38.3
* Update CloudFormation schemas to `2025-08-12`
- from version 1.38.2
* Fix unit testing with lambda EOL date changes
* Remove `AmazonGuardDutyFullAccess` from ManagedPolicies
* chore(deps): bump pyinstaller from 6.14.2 to 6.15.0 in /requirements
* Update `CreationPolicy` `StartFleet` type
* Update CloudFormation schemas to `2025-08-04`
- from version 1.38.1
* Add `--list-templates` advanced / debugging parameter
* Add to context to allow exceptions
* Update CloudFormation schemas to `2025-07-30`
- from version 1.38.0
* Improve condition processing
* Update CloudFormation schemas to 2025-07-14
- from version 1.37.2
* Fix template check when using cli
- from version 1.37.1
* Create API for just taking a config
* chore(deps): bump pyinstaller from 6.14.1 to 6.14.2 in /requirements
* Update CloudFormation schemas to `2025-07-07`
- from version 1.37.0
* Update CloudFormation schemas to 2025-06-30
* Validate deployment files
- from version 1.36.1
* Allow `*` for resource partition
* Update regex dynamic ref for ssm
* Update CloudFormation schemas to `2025-06-19`
- from version 1.36.0
* Don't decode when `TemplateURL` is dynamic reference
* Break out requirements into separate files
* chore(deps): bump pyinstaller from 6.13.0 to 6.14.0 in /requirements
* chore(deps): bump pyinstaller from 6.14.0 to 6.14.1 in /requirements
* Better logic of FindInMap resolution when ref isn't resolved
* chore(deps): bump setuptools from 80.8.0 to 80.9.0 in /requirements
* Update CloudFormation schemas to 2025-06-11
* Create an API for linting a file by path
- from version 1.35.4
* Update CloudFormation schemas to `2025-06-02`
- from version 1.35.3
* Undo change (#4138)
- from version 1.35.2
* Stdin overrides `.cfnlintrc` when determining templates
* Add in more custom schema information to the docs
* Fix outdated GitHub source URLs
* Update CloudFormation schemas to `2025-05-21`
- from version 1.35.1
* Gracefully exit of a override schema patch fails
* Allow for `Fn::Transform` with other properties
* Update CloudFormation schemas to `2025-05-07`
- from version 1.35.0
* Make intrinsic functions configurable
* Add `Assign` to `Jsonata` choices
* Create a schema manager for non resource schemas
* Update CloudFormation schemas to `2025-05-06`
- from version 1.34.2
* Unschedule v0 maintenance work
* Add in `anyOf` for properties that are ipv4 and ipv6
* Update CloudFormation schemas to `2025-04-24`
- from version 1.34.1
* Fix property restrictions when using lambda
* Update context when resolving IFs
* Update CloudFormation schemas to `2025-04-21`
- from version 1.34.0
* Fix Cidr type in `AWS::EC2::IPAMPool`
* Allow `Fn::GetAtt` to an object when using short form
* Add isolated regions
* Keep resolution errors to the fn
* Update CloudFormation schemas to `2025-04-16`
- from version 1.33.2
* Switch (E3683) to (E3684) for health check protocol
* Add `Items` to map function in state machine definition
- from version 1.33.1
* Case insensitive pattern for `AWS::SSM::Parameter` `Name`
* Fix context handling `None` for filename
- from version 1.33.0
* New rule (E3062) to validate `DBInstanceClass` against Engine
* Several state mach schema improvements
* New rule (E3681) to validate `AWS::ElasticLoadBalancingV2::TargetGroup`
`TargetType` property restrictions
* New rule (E3683) to validate `AWS::ElasticLoadBalancingV2::TargetGroup`
`Protocol` property restrictions
* Allow for /example in SSM Param Name
* Update CloudFormation schemas to `2025-04-08`
- from version 1.32.4
* Update to (PEP 639)
* `StorageEncrypted` can be used on aurora `AWS::RDS::DBInstance`
* Update CloudFormation schemas to `2025-04-04`
- from version 1.32.3
* Add an additional `+` for `AWS::SSM::Parameter` `Name`
- from version 1.32.2
* Add `Assign` into `Choice` for state machines
* Create a `pattern` for a `AWS::SSM::Parameter` `Name`
* Fix SAM transform to validate that `Properties` is a dict
* Update CloudFormation schemas to `2025-04-02`
- from version 1.32.1
* Change state machine schema based on query language
* Commonize how SAM transform checks are done
* Update CloudFormation schemas to `2025-03-24`
* Deal with JSONata differences in choices
- from version 1.32.0
* Update IAM Resource policy pattern
* Update rule (W3037) to limit services and actions when using a resource policy
* Add rule (E3514) to validate resource policy resource ARNs
* Update CloudFormation schemas to `2025-03-20`
* Change transform check in (W3037)
- from version 1.31.3
* Update (I3510) to lower case resource names
- from version 1.31.2
* Update (I3510) to only validate at least one resource is matched
- from version 1.31.1
* Update (I3510) to not fail on resources that start with asterisk
* Fix merge for yaml parsing
* Add rule (W1100) to validate if using YAML merge which requires the AWS cli to deploy
- from version 1.31.0
* Update CloudFormation schemas to `2025-03-17`
* New rule (I3510) to validate action and resources match
* Update (W3037) to skip non strings
* Update (I3510) to not alert on asterisk resources
* Update (W3037) to use regex when `?` or `*` in action
- from version 1.30.0
* Allow conditions in foreach
* Allow `_` in condition names
* Remove experimental from (W3037)
* Add in `pattern` for CodePipeline action names
* Support GetAtts for nested stacks and outputs
* Add rule (I2003) to validate `AllowedPattern`
* Validate identity base SIDs
- from version 1.29.1
* Update CloudFormation schemas to `2025-03-10`
* Update (E3701) to keep artifact names uniquely by the resource name
- from version 1.29.0
* Add rule (W3660) to validate mixing API body definitions in `AWS::ApiGateway::*`
resources
* Add rule (E3505) to validate timeouts when connection `AWS::Lambda::Function`
and `AWS::SQS::Queue`
* Add rule (E3636) to validate `AWS::CodeBuild::Project` s3 locations
* Add rule (E3061) to validate `AWS::S3::Bucket` tiering configurations
* Deprecate (E2540) for new v1 version rules
* Deprecate (E2541) for new v1 version rules
* Add rule (E3700) to validate `AWS::CodePipeline::Pipeline` `Source` actions
are only in the first stage
* Add rule (E3701) to validate `AWS::CodePipeline::Pipeline` artifact names shared
between `InputArtifacts` and `OutputArtifacts`
* Add rule (E3702) to validate `AWS::CodePipeline::Pipeline` counts for `InputArtifacts`,
`OutputArtifacts` based on action type
* Add rule (E3703) to validate `AWS::CodePipeline::Pipeline` configuration of an action
* Additional general schema updates to complete the rest of the validation in rules
(E2540) and (E2541)
* Update CloudFormation schemas to `2025-03-07`
* Add `Condition` to `Choice` in state machine
- from version 1.28.0
* Add `uniqueKeys` for `Sid` in IAM policies
* Create ipv4 and ipv6 network formats
* Add rule (E3059) to validate if `AWS::EC2::Subnet` CIDRs are in a `AWS::EC2::VPC`
* Add rule (E3060) to validate if `AWS::EC2::Subnet` CIDRs overlap with each other
* Update CloudFormation schemas to `2025-03-04`
- Update BuildRequires and Requires from requirements/*.txt
-------------------------------------------------------------------
Mon Mar 3 11:19:54 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Update to 1.27.0
* Update rule W8003 to include always false
* Pass parameters to ForEachCollection processing
* Add Assign to appropriate state machine options
* Replace parameters when both transforms are used
* Allow for debug in .cfnlintrc file
* Add rule E1041 to validate Ref format
* Update rule E2015 to have the Default value be a str
* Cleanup boto patching and include min/max
* Add rule E3501 to validate AWS::SQS::Queue properties based on the queue type
* Add rule E3502 to validate AWS::SQS::Queue DLQ types match
* Add TRUE to list of strings that can be boolean true
* Allow asterisks for rule I3042
* Update I1022 to allow functions
* Add rule W1051 to validate if dynamic reference when ARN
* Provide configuration for exceptions to E3019
* Deprecate py3.8
* Update lambda eol dates
-------------------------------------------------------------------
Tue Nov 26 02:31:48 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.20.0, summary of the changes:
###### Features
* Switch from `awsType` to `cfnLint` @kddejong
* Add `dependentExcluded` keyword to json schema validation
* Add `requiredXor` keyword to json schema validation
* Allow for integration the configuration of additional registry schemas
* Add in `enum` values from botocore
* Add many JSON schemas to provide additional validation
* Add json schema for CW Alarm period when in the AWS namespace
* Include launch template security group schema
##### Fixes
* Enhanced monitoring can be configured on aurora clusters
* Update `Fn::FindInMap` resolver to handle `Ref` to psedueparams
* Create a new jsonschema keyword `enumCaseInsensitive`
* Add `additionalProperties` false to IAM conditions
* Expand boto auto detection to include sub properties
* Add logic for `AWS::EC2::Subnet.Id` format
* Update language extensions `Fn::ForEach` for empty lists
* Support Python 3.13
* Make an exception for DocDB Cluster Port return type
* Dynamically determine Account ID during transform
* Move `requireXor` to `SpotFleetRequestConfigData`
* Bring back stateful resources json
* Add `MinActiveInstancesPercent` to `AutoScalingRollingUpdate`
* Update `requiredXor` for Vpc and Subnets
* Exception for lambda authorizer uri
* Allow for secretsmanager dynamic refs in `Parameter` defaults
* Move KMS validation for `SSESpecification` on Tables
* Return Symbol instead of None on Fn::Equals logic
* Remove handlers and tagging/permissions from specs
* GetAtts to array returns a string
* Allow `Fn::Length` in `Fn::Select`
* Allow resource version to be an `integer`
* Generate schema artifacts on release
* Require at least one element in LSI `if`
* Continue on template decode errors
* Update getatt resolution for better regional support
* Fix sub regex resolver to always return a string
* Fix an issue with endless loops in Fn::Sub
* Add start to SSM json schemas
* SAM transform replace AutoPublishCodeSha256
* Use region when looking for a resolver being satisfied
* Force resolve validation to not use strict types
* Allow ICMP to have `FromPort` other than -1 with `ToPort` -1
* Switch type comparison in BaseFn to use is_types_compatible
* Allow `Transform` section to have the full transform def
* Fix JSON based tags for many types
* Handle `Fn::Transform`s inside Mappings
* Allow Ref AWS::NoValue in FindInMap parameters
* Update policy principal validation logic
* Add Fn::Cidr as Fn::Join supported function
* Don't issue dynamicref issues in other fns
* Greatly simplify `FindInMap` resolution
* Allow `AllowedPattern` with AWS type parameters
* Update IAM resource ARN patterns
* Better resolution of mappings in transform
* Add in awslogs-create-group to ECS task logging
* Add AWS::SSM::Parameter::Value<String> to use AllowedPattern
* Don't validate dynamic references inside fn
* Skip getatt validation with custom resources
* Remove AWS::EC2::LaunchTemplate requiredXor value for data
* Condition satisfaction checks to raise error when unknown
* Update CodeBuild::Project FilterGroup types
* Update SQS MessageRetentionPeriod minimum
* Allow OAI IDs in IAM policies
* Allow IAM principal to be str or a list
* Array of strings are allowed as output value types
* Cleanup `cfn_path` generation
* Fix an issue with SSM params for ForEach
* Enumerate FindInMap when can't be resolved
* Make `cfnLint` keyword dynamic
* Increased validation of dynamic references
* Add requiredXor for CloudFront distribution cache behavior
* Additional GetAtt support for non registry resources
* Redo runner logic and keep backwards compatibility of the API
* Move required field for lambda eventsource mappings
* Fix an issue where GetAtts of arrays are dropped
* Switch to pyproject.toml and pre-commit for lint
* Fix an issue when the resource type isn't available for an output
* Update condition logic to include resource level conditions
- Switch to pyproject macros.
-------------------------------------------------------------------
Tue Jul 2 12:08:19 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-cfn-lint
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,21 +18,23 @@
%{?sle15_python_module_pythons}
Name: python-cfn-lint
Version: 0.87.9
Version: 1.40.4
Release: 0
Summary: Tool to checks cloudformation for practices and behaviour
License: MIT
URL: https://github.com/aws-cloudformation/cfn-python-lint
Source: https://github.com/aws-cloudformation/cfn-python-lint/archive/v%{version}.tar.gz#/cfn-lint-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module regex}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module sympy}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: git-core
Requires: python-PyYAML >= 5.4
Requires: python-aws-sam-translator >= 1.89.0
Requires: python-aws-sam-translator >= 1.97.0
Requires: python-jschema-to-python >= 1.2.3
Requires: python-jsonpatch
Requires: python-junit-xml >= 1.9
@@ -40,7 +42,7 @@ Requires: python-networkx >= 2.4
Requires: python-regex
Requires: python-sarif-om >= 1.0.4
Requires: python-sympy >= 1.0.0
Requires: (python-jsonschema > 3.0 with python-jsonschema < 5)
Requires: python-typing-extensions
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: python-pydot
@@ -49,10 +51,10 @@ Obsoletes: cfn-lint < %{version}
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module PyYAML >= 5.4}
BuildRequires: %{python_module aws-sam-translator >= 1.89.0}
BuildRequires: %{python_module aws-sam-translator >= 1.97.0}
BuildRequires: %{python_module defusedxml}
BuildRequires: %{python_module jschema-to-python >= 1.2.3}
BuildRequires: %{python_module jsonpatch}
BuildRequires: %{python_module jsonschema > 3.0 with %python-jsonschema < 5}
BuildRequires: %{python_module junit-xml >= 1.9}
BuildRequires: %{python_module networkx >= 2.4}
BuildRequires: %{python_module pydot}
@@ -70,14 +72,12 @@ resource properties and best practices.
%prep
%setup -q -n cfn-lint-%{version}
# do not hardcode versions
sed -i -e 's:~=:>=:g' setup.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/cfn-lint
@@ -95,6 +95,7 @@ donttest="$donttest or test_bad_config"
donttest="$donttest or test_override_parameters"
donttest="$donttest or test_positional_template_parameters"
donttest="$donttest or test_template_config"
donttest="$donttest or test_build_graph"
%pytest -s test -v -k "not ($donttest)"
%post
@@ -108,6 +109,6 @@ donttest="$donttest or test_template_config"
%license LICENSE
%python_alternative %{_bindir}/cfn-lint
%{python_sitelib}/cfnlint
%{python_sitelib}/cfn_lint-%{version}*-info
%{python_sitelib}/cfn_lint-%{version}.dist-info
%changelog