From 15dcd4711b6fe0f83d62c54b2afff332da29c766 Mon Sep 17 00:00:00 2001 From: Garrett Honeycutt Date: Sat, 4 Jul 2015 13:30:03 -0400 Subject: [PATCH 1/4] Deprecate Modulefile in favor of metadata.json for module's metadata --- Modulefile | 12 ------------ metadata.json | 25 ++++++++++++------------- 2 files changed, 12 insertions(+), 25 deletions(-) delete mode 100644 Modulefile diff --git a/Modulefile b/Modulefile deleted file mode 100644 index 67bf85c0..00000000 --- a/Modulefile +++ /dev/null @@ -1,12 +0,0 @@ -name 'stankevich-python' -version '1.9.4' -source 'git://github.com/stankevich/puppet-python.git' -author 'stankevich' -license 'Apache License, Version 2.0' -summary 'Python Module' -description 'Puppet module for Python' -project_page 'https://github.com/stankevich/puppet-python' - -## Add dependencies, if any: -dependency 'puppetlabs/stdlib', '>= 4.0.0' -dependency 'stahnma/epel', '>= 1.0.1' diff --git a/metadata.json b/metadata.json index ad4c337f..7386b946 100644 --- a/metadata.json +++ b/metadata.json @@ -1,14 +1,19 @@ { "name": "stankevich-python", "version": "1.9.4", - "source": "git://github.com/stankevich/puppet-python.git", "author": "stankevich", - "license": "Apache Version 2.0", "summary": "Python Module", - "description": "Puppet module for Python", + "license": "Apache License, Version 2.0", + "source": "git://github.com/stankevich/puppet-python.git", "project_page": "https://github.com/stankevich/puppet-python", "issues_url": "https://github.com/stankevich/puppet-python/issues", - "tags": ["python", "pip", "virtualenv", "gunicorn"], + "description": "Puppet module for Python", + "tags": [ + "python", + "pip", + "virtualenv", + "gunicorn" + ], "operatingsystem_support": [ { "operatingsystem": "CentOS", @@ -43,17 +48,11 @@ "requirements": [ { "name": "puppet", - "version_requirement": "3.x" + "version_requirement": ">=3.0.0 < 4.0.0" } ], "dependencies": [ - { - "name": "puppetlabs/stdlib", - "version_requirement": ">= 4.0.0" - }, - { - "name": "stahnma/epel", - "version_requirement": ">= 1.0.1" - } + {"name":"puppetlabs/stdlib","version_requirement":">= 4.0.0 < 6.0.0"}, + {"name":"stahnma/epel","version_requirement":">= 1.0.1 < 2.0.0"} ] } From 722feb944a65507ce06b04e5a5dcef727ed220b8 Mon Sep 17 00:00:00 2001 From: Garrett Honeycutt Date: Sat, 4 Jul 2015 13:30:40 -0400 Subject: [PATCH 2/4] Use SPDX identifier for license License remains Apache Software License v2 --- metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata.json b/metadata.json index 7386b946..74838909 100644 --- a/metadata.json +++ b/metadata.json @@ -3,7 +3,7 @@ "version": "1.9.4", "author": "stankevich", "summary": "Python Module", - "license": "Apache License, Version 2.0", + "license": "Apache-2.0", "source": "git://github.com/stankevich/puppet-python.git", "project_page": "https://github.com/stankevich/puppet-python", "issues_url": "https://github.com/stankevich/puppet-python/issues", From 24dda45274bf12909b4831e291a8a0ff75646f69 Mon Sep 17 00:00:00 2001 From: Garrett Honeycutt Date: Sat, 4 Jul 2015 13:34:23 -0400 Subject: [PATCH 3/4] Travis-ci to check that the metadata is correct --- .travis.yml | 4 ++-- Gemfile | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 51df66cb..82053e44 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ --- language: ruby bundler_args: --without system_tests -script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'" +script: "bundle exec metadata-json-lint metadata.json && bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'" rvm: - 1.9.3 - 2.0.0 @@ -12,4 +12,4 @@ matrix: - rvm: 2.0.0 env: PUPPET_VERSION="~> 3.1.0" - rvm: 1.9.3 - env: PUPPET_VERSION="~> 2.7.0" \ No newline at end of file + env: PUPPET_VERSION="~> 2.7.0" diff --git a/Gemfile b/Gemfile index f2f1b41c..f6ca52f1 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,7 @@ source ENV['GEM_SOURCE'] || "https://rubygems.org" group :development, :test do + gem 'metadata-json-lint', :require => false gem 'rake', :require => false gem 'rspec-puppet', :require => false gem 'puppetlabs_spec_helper', :require => false From bf0a013e84e9ea763d8f56c79d4ef07b274e4eb7 Mon Sep 17 00:00:00 2001 From: Garrett Honeycutt Date: Sat, 4 Jul 2015 13:34:52 -0400 Subject: [PATCH 4/4] Travis-ci to use docker for faster builds --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 82053e44..a4545ddf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,3 +13,5 @@ matrix: env: PUPPET_VERSION="~> 3.1.0" - rvm: 1.9.3 env: PUPPET_VERSION="~> 2.7.0" + +sudo: false