Hello community,
here is the log from the commit of package perl-Test-CheckDeps for
openSUSE:Factory checked in at 2013-06-06 13:29:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Test-CheckDeps (Old)
and /work/SRC/openSUSE:Factory/.perl-Test-CheckDeps.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Test-CheckDeps"
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Test-CheckDeps/perl-Test-CheckDeps.changes
2012-06-06 16:09:19.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Test-CheckDeps.new/perl-Test-CheckDeps.changes
2013-06-06 13:29:36.000000000 +0200
@@ -1,0 +2,9 @@
+Tue Jun 4 14:59:24 UTC 2013 - [email protected]
+
+- updated to 0.004
+ Reinstate loading of CPAN::Meta
+ Sort dependencies before displaying them
+ check_dependencies() can now optionally also test recommended and
+ suggested prerequisites
+
+-------------------------------------------------------------------
Old:
----
Test-CheckDeps-0.002.tar.gz
New:
----
Test-CheckDeps-0.004.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Test-CheckDeps.spec ++++++
--- /var/tmp/diff_new_pack.OjXVK3/_old 2013-06-06 13:29:37.000000000 +0200
+++ /var/tmp/diff_new_pack.OjXVK3/_new 2013-06-06 13:29:37.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-Test-CheckDeps
#
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: perl-Test-CheckDeps
-Version: 0.002
+Version: 0.004
Release: 0
%define cpan_name Test-CheckDeps
Summary: Check for presence of dependencies
@@ -31,12 +31,10 @@
BuildRequires: perl-macros
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(CPAN::Meta::Check)
-BuildRequires: perl(Module::Metadata)
BuildRequires: perl(Test::More) >= 0.88
#BuildRequires: perl(Test::CheckDeps)
Requires: perl(CPAN::Meta)
Requires: perl(CPAN::Meta::Check)
-Requires: perl(Module::Metadata)
%{perl_requires}
%description
++++++ Test-CheckDeps-0.002.tar.gz -> Test-CheckDeps-0.004.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckDeps-0.002/Changes
new/Test-CheckDeps-0.004/Changes
--- old/Test-CheckDeps-0.002/Changes 2012-04-01 12:58:15.000000000 +0200
+++ new/Test-CheckDeps-0.004/Changes 2013-05-15 00:05:11.000000000 +0200
@@ -1,5 +1,13 @@
Revision history for Test-CheckDeps
+0.004 2013-05-15 00:04:46 Europe/Amsterdam
+ Reinstate loading of CPAN::Meta
+
+0.003 2013-05-14 23:16:36 Europe/Amsterdam
+ Sort dependencies before displaying them
+ check_dependencies() can now optionally also test recommended and
+ suggested prerequisites
+
0.002 2012-04-01 12:58:10 Europe/Amsterdam
Converted to using Test::Builder directly
Refactored most non-test code into a new dist, CPAN-Meta-Check
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckDeps-0.002/MANIFEST
new/Test-CheckDeps-0.004/MANIFEST
--- old/Test-CheckDeps-0.002/MANIFEST 2012-04-01 12:58:15.000000000 +0200
+++ new/Test-CheckDeps-0.004/MANIFEST 2013-05-15 00:05:11.000000000 +0200
@@ -10,6 +10,5 @@
lib/Test/CheckDeps.pm
t/00-compile.t
t/10-basics.t
-t/release-kwalitee.t
t/release-pod-coverage.t
t/release-pod-syntax.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckDeps-0.002/META.json
new/Test-CheckDeps-0.004/META.json
--- old/Test-CheckDeps-0.002/META.json 2012-04-01 12:58:15.000000000 +0200
+++ new/Test-CheckDeps-0.004/META.json 2013-05-15 00:05:11.000000000 +0200
@@ -4,7 +4,7 @@
"Leon Timmermans <[email protected]>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.300006, CPAN::Meta::Converter
version 2.120920",
+ "generated_by" : "Dist::Zilla version 4.300033, CPAN::Meta::Converter
version 2.130880",
"license" : [
"perl_5"
],
@@ -19,13 +19,19 @@
"ExtUtils::MakeMaker" : "6.30"
}
},
+ "develop" : {
+ "requires" : {
+ "Pod::Coverage::TrustPod" : "0",
+ "Test::Pod" : "1.41",
+ "Test::Pod::Coverage" : "1.08"
+ }
+ },
"runtime" : {
"requires" : {
"CPAN::Meta" : "0",
"CPAN::Meta::Check" : "0",
"Exporter" : "5.57",
"List::Util" : "0",
- "Module::Metadata" : "0",
"Test::Builder" : "0",
"perl" : "5.006",
"strict" : "0",
@@ -52,6 +58,6 @@
"web" : "http://github.com/Leont/test-checkdeps"
}
},
- "version" : "0.002"
+ "version" : "0.004"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckDeps-0.002/META.yml
new/Test-CheckDeps-0.004/META.yml
--- old/Test-CheckDeps-0.002/META.yml 2012-04-01 12:58:15.000000000 +0200
+++ new/Test-CheckDeps-0.004/META.yml 2013-05-15 00:05:11.000000000 +0200
@@ -9,7 +9,7 @@
configure_requires:
ExtUtils::MakeMaker: 6.30
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.300006, CPAN::Meta::Converter version
2.120920'
+generated_by: 'Dist::Zilla version 4.300033, CPAN::Meta::Converter version
2.130880'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -20,7 +20,6 @@
CPAN::Meta::Check: 0
Exporter: 5.57
List::Util: 0
- Module::Metadata: 0
Test::Builder: 0
perl: 5.006
strict: 0
@@ -28,4 +27,4 @@
resources:
bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=Test-CheckDeps
repository: git://github.com/Leont/test-checkdeps.git
-version: 0.002
+version: 0.004
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckDeps-0.002/Makefile.PL
new/Test-CheckDeps-0.004/Makefile.PL
--- old/Test-CheckDeps-0.002/Makefile.PL 2012-04-01 12:58:15.000000000
+0200
+++ new/Test-CheckDeps-0.004/Makefile.PL 2013-05-15 00:05:11.000000000
+0200
@@ -11,11 +11,7 @@
my %WriteMakefileArgs = (
"ABSTRACT" => "Check for presence of dependencies",
"AUTHOR" => "Leon Timmermans <leont\@cpan.org>",
- "BUILD_REQUIRES" => {
- "File::Find" => 0,
- "File::Temp" => 0,
- "Test::More" => "0.88"
- },
+ "BUILD_REQUIRES" => {},
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => "6.30"
},
@@ -28,18 +24,35 @@
"CPAN::Meta::Check" => 0,
"Exporter" => "5.57",
"List::Util" => 0,
- "Module::Metadata" => 0,
"Test::Builder" => 0,
"strict" => 0,
"warnings" => 0
},
- "VERSION" => "0.002",
+ "TEST_REQUIRES" => {
+ "File::Find" => 0,
+ "File::Temp" => 0,
+ "Test::More" => "0.88"
+ },
+ "VERSION" => "0.004",
"test" => {
"TESTS" => "t/*.t"
}
);
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
+ my $tr = delete $WriteMakefileArgs{TEST_REQUIRES};
+ my $br = $WriteMakefileArgs{BUILD_REQUIRES};
+ for my $mod ( keys %$tr ) {
+ if ( exists $br->{$mod} ) {
+ $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod};
+ }
+ else {
+ $br->{$mod} = $tr->{$mod};
+ }
+ }
+}
+
unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
my $pp = $WriteMakefileArgs{PREREQ_PM};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckDeps-0.002/README
new/Test-CheckDeps-0.004/README
--- old/Test-CheckDeps-0.002/README 2012-04-01 12:58:15.000000000 +0200
+++ new/Test-CheckDeps-0.004/README 2013-05-15 00:05:11.000000000 +0200
@@ -1,7 +1,7 @@
This archive contains the distribution Test-CheckDeps,
-version 0.002:
+version 0.004:
Check for presence of dependencies
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckDeps-0.002/dist.ini
new/Test-CheckDeps-0.004/dist.ini
--- old/Test-CheckDeps-0.002/dist.ini 2012-04-01 12:58:15.000000000 +0200
+++ new/Test-CheckDeps-0.004/dist.ini 2013-05-15 00:05:11.000000000 +0200
@@ -4,4 +4,5 @@
copyright_holder = Leon Timmermans
copyright_year = 2011
-[@LEONT::PP]
+[@LEONT]
+install_tool = eumm
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckDeps-0.002/lib/Test/CheckDeps.pm
new/Test-CheckDeps-0.004/lib/Test/CheckDeps.pm
--- old/Test-CheckDeps-0.002/lib/Test/CheckDeps.pm 2012-04-01
12:58:15.000000000 +0200
+++ new/Test-CheckDeps-0.004/lib/Test/CheckDeps.pm 2013-05-15
00:05:11.000000000 +0200
@@ -1,6 +1,6 @@
package Test::CheckDeps;
{
- $Test::CheckDeps::VERSION = '0.002';
+ $Test::CheckDeps::VERSION = '0.004';
}
use strict;
use warnings FATAL => 'all';
@@ -13,16 +13,34 @@
use CPAN::Meta;
use CPAN::Meta::Check qw/check_requirements requirements_for/;
use List::Util qw/first/;
-use Module::Metadata;
use Test::Builder;
my $builder = Test::Builder->new;
-sub check_dependencies {
+my %level_of = (
+ requires => 0,
+ classic => 1,
+ recommends => 2,
+ suggests => 3,
+);
+
+sub check_dependencies {
+ my $level = $level_of{shift || 'classic'};
my $metafile = first { -e $_ } qw/MYMETA.json MYMETA.yml META.json
META.yml/ or return $builder->ok(0, "No META information provided\n");
my $meta = CPAN::Meta->load_file($metafile);
check_dependencies_opts($meta, $_, 'requires') for qw/configure build
test runtime/;
- check_dependencies_opts($meta, 'runtime', 'conflicts');
+ check_dependencies_opts($meta, 'runtime', 'conflicts') if $level > 0;
+ if ($level > 1) {
+ $builder->todo_start('recommends are not mandatory');
+ check_dependencies_opts($meta, $_, 'recommends') for
qw/configure build test runtime/;
+ $builder->todo_end();
+
+ if ($level > 2) {
+ $builder->todo_start('suggests are not mandatory');
+ check_dependencies_opts($meta, $_, 'suggests') for
qw/configure build test runtime/;
+ $builder->todo_end();
+ }
+ }
return;
}
@@ -33,7 +51,7 @@
my $raw = $reqs->as_string_hash;
my $ret = check_requirements($reqs, $type);
- for my $module (keys %{$ret}) {
+ for my $module (sort keys %{$ret}) {
$builder->ok(!defined $ret->{$module}, "$module satisfies '" .
$raw->{$module} . "'") or $builder->diag($ret->{$module});
}
return;
@@ -53,7 +71,7 @@
=head1 VERSION
-version 0.002
+version 0.004
=head1 DESCRIPTION
@@ -61,9 +79,35 @@
=head1 FUNCTIONS
-=head2 check_dependencies()
+=head2 check_dependencies( [ level ])
+
+Check dependencies based on a local MYMETA or META file.
+
+The C<level> argument is optional. It can be one of:
+
+=over 4
+
+=item * requires
+
+All 'requires' dependencies are checked (for the configure, build, test and
+runtime phases)
+
+=item * classic
+
+As C<requires>, but 'conflicts' dependencies are also checked.
+
+=item * recommends
+
+As C<classic>, but 'recommends' dependencies are also checked, as TODO tests.
+
+=item * suggests
+
+As C<recommends>, but 'suggests' dependencies are also checked, as TODO tests.
+
+=back
-Check all 'requires' dependencies based on a local MYMETA or META file.
+When not provided, C<level> defaults to C<classic> ('requires' and 'conflicts'
+dependencies are checked).
=head2 check_dependencies_opts($meta, $phase, $type)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckDeps-0.002/t/10-basics.t
new/Test-CheckDeps-0.004/t/10-basics.t
--- old/Test-CheckDeps-0.002/t/10-basics.t 2012-04-01 12:58:15.000000000
+0200
+++ new/Test-CheckDeps-0.004/t/10-basics.t 2013-05-15 00:05:11.000000000
+0200
@@ -7,6 +7,6 @@
use Test::CheckDeps;
-check_dependencies();
+check_dependencies('recommends');
done_testing;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Test-CheckDeps-0.002/t/release-kwalitee.t
new/Test-CheckDeps-0.004/t/release-kwalitee.t
--- old/Test-CheckDeps-0.002/t/release-kwalitee.t 2012-04-01
12:58:15.000000000 +0200
+++ new/Test-CheckDeps-0.004/t/release-kwalitee.t 1970-01-01
01:00:00.000000000 +0100
@@ -1,17 +0,0 @@
-#!perl
-
-BEGIN {
- unless ($ENV{RELEASE_TESTING}) {
- require Test::More;
- Test::More::plan(skip_all => 'these tests are for release candidate
testing');
- }
-}
-
-
-# This test is generated by Dist::Zilla::Plugin::Test::Kwalitee
-use strict;
-use warnings;
-use Test::More; # needed to provide plan.
-eval "use Test::Kwalitee";
-
-plan skip_all => "Test::Kwalitee required for testing kwalitee" if $@;
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]