packaging_rake_tasks 1.4.11 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d02ef0977f43dd5efd93ebe2b4ec40a61415ac8012413478a326917fcab8182e
4
- data.tar.gz: d05332e52a13152900bf4300a920ce989212ff47c283b62b67b67dd9bc663337
3
+ metadata.gz: 46ce3829c7375bbaa7fbae51f8dd2d048a5405f02b79a9847c2896e64b4b0bd3
4
+ data.tar.gz: 1f7d203a058da0ff9fc95bf4d76fa6e514bd1878801dc70963a12960b77f4d87
5
5
  SHA512:
6
- metadata.gz: e66cf2ab83c82d3f1e70af85a5ead91bb9eafcc81e8f08efa314e71a8c3f37346f6806bcd69f2de969f54b9e0b4d5d9d142c8d88450d1c221c0c0a0ebb89c01f
7
- data.tar.gz: 160211ee2b33de61e5817c5162b5bbbfedb48999fd41be8d3d0117106e217dccd368eeacc993f6487ddbeae85955118fa71f705130cb85f9f2e80f4e85ac6cc7
6
+ metadata.gz: 83865577aedef1a4a9e02111e73b326db1f9a69040434b8ddbac38736fccfad1b54507f1fb84c1f8927e158b22fcf37e1be8f1aff024ee1fd5433e30dcac5f5c
7
+ data.tar.gz: cb5ddfdacab8e31f46e899b77941a9a295b140343d37bfd12c850ea72996368e9c2e6260b072de829773b048a7418960928011c38955ce876302e413482a6308
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.11
1
+ 1.5.0
@@ -80,5 +80,18 @@ module Packaging
80
80
  return @version = File.read(versions.first).strip unless versions.empty?
81
81
  raise "cannot find version" #TODO more heuristic
82
82
  end
83
+
84
+ # configuration summary
85
+ # @return [Array<String>] human readable summary
86
+ def summary
87
+ [
88
+ "Package directory: #{package_dir}",
89
+ "OBS instance: #{obs_api}",
90
+ "OBS project: #{obs_project}",
91
+ "OBS package name: #{package_name}",
92
+ "OBS build target: #{build_dist}",
93
+ "OBS submit target: #{obs_sr_project}"
94
+ ]
95
+ end
83
96
  end
84
97
  end
@@ -54,7 +54,11 @@ namespace :build_dependencies do
54
54
  if escaped_list.empty?
55
55
  puts "Nothing to install, *.spec file not found or no build dependencies defined"
56
56
  else
57
- cmd = "sudo zypper install #{escaped_list}"
57
+ sudo = Process.euid.zero? ? "" : "sudo"
58
+ interactive = $stdin.tty? ? "" : "--non-interactive"
59
+ # allow package downgrade to avoid failures in CI when the installed
60
+ # packages are higher than the available ones
61
+ cmd = "#{sudo} zypper #{interactive} install --allow-downgrade #{escaped_list}"
58
62
  sh(cmd)
59
63
  end
60
64
  end
@@ -16,7 +16,7 @@
16
16
 
17
17
 
18
18
  namespace :check do
19
- desc "check if everything is commited to git repository"
19
+ desc "check if everything is committed to git repository"
20
20
  task :committed do
21
21
  ignored = `git ls-files -o --exclude-standard .`
22
22
 
@@ -26,12 +26,17 @@ namespace :check do
26
26
  raise "New files missing in git (or add them to to .gitignore):\n#{ignored}\n\n"
27
27
  end
28
28
 
29
+ if ENV["CHECK_MODIFIED"] == "0" || ENV["CHECK_MODIFIED"] == "false"
30
+ puts "WARNING: Skipping modified files check!"
31
+ next
32
+ end
33
+
29
34
  modified = `git ls-files -m --exclude-standard .`
30
35
 
31
36
  raise "git ls-files failed." unless $?.exitstatus.zero?
32
37
 
33
38
  if ! modified.empty?
34
- raise "Modified files not commited:\n#{modified}"
39
+ raise "Modified files not committed:\n#{modified}"
35
40
  end
36
41
  end
37
42
  end
@@ -64,6 +64,9 @@ def license_report
64
64
  elsif fn =~ /\.md\z/ || fn =~ /\.doc\z/ || fn =~ /\.txt\z/
65
65
  report[:skipped] << "#{fn}: skipped by name match (documentation file)"
66
66
  next
67
+ elsif fn =~ /\.svg\z/ || fn =~ /\.eps\z/
68
+ report[:skipped] << "#{fn}: skipped by name match (vector image)"
69
+ next
67
70
  end
68
71
  skipped = Packaging::Configuration.instance.skip_license_check.any? do |skip|
69
72
  res = fn =~ skip
data/lib/tasks/osc.rake CHANGED
@@ -227,7 +227,7 @@ namespace :osc do
227
227
  desc "Create submit request from devel project to target project without any other packaging or checking"
228
228
  task :force do
229
229
  # wait for the server service to finish to avoid "service in progress"
230
- # error when creating a SR for a freshly commited package
230
+ # error when creating a SR for a freshly committed package
231
231
  puts "Waiting for the server side service..."
232
232
  sh "osc", "-A", obs_api, "service", "wait", obs_project, package_name
233
233
 
@@ -239,4 +239,9 @@ namespace :osc do
239
239
  end
240
240
  end
241
241
  end
242
+
243
+ desc "Print the current packaging configuration"
244
+ task :config do
245
+ puts Packaging::Configuration.instance.summary.join("\n")
246
+ end
242
247
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: packaging_rake_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.11
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josef Reidinger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-23 00:00:00.000000000 Z
11
+ date: 2021-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -66,7 +66,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
68
  requirements: []
69
- rubygems_version: 3.1.2
69
+ rubyforge_project:
70
+ rubygems_version: 2.7.6.2
70
71
  signing_key:
71
72
  specification_version: 4
72
73
  summary: Rake tasks providing tasks to package project in git and integration with