bibliothecary 8.7.3 → 8.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bibliothecary/parsers/pypi.rb +10 -2
- data/lib/bibliothecary/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1498d2e39e0820cce0a03669d89bd6416b5afd67d1f0769602b1715a57a8ffc0
|
4
|
+
data.tar.gz: bd5d0f8c450b22c63106f4866c6d191dc3a3628eaf0f53fc341fb5e0663f33b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 345d4049074667e97ca9a8c57a0b0327443a60fd5efc7b7566ef19154e1a95e395a4ef45b49f4bd20dfbeaf80c397f8cfab6b8f00203005f33ec60a1c2590270
|
7
|
+
data.tar.gz: 7e3a43056de7cfde69fa6bd6ab8329fb226ec65a591e4c4301fb39a8368e80974e112bce577d5a0bbdee42448edc5b692c68b058525d46c28c1235a09f412038
|
@@ -102,7 +102,15 @@ module Bibliothecary
|
|
102
102
|
# Parse poetry [tool.poetry] deps
|
103
103
|
poetry_manifest = file_contents.fetch('tool', {}).fetch('poetry', {})
|
104
104
|
deps += map_dependencies(poetry_manifest['dependencies'], 'runtime')
|
105
|
+
# Poetry 1.0.0-1.2.0 way of defining dev deps
|
105
106
|
deps += map_dependencies(poetry_manifest['dev-dependencies'], 'develop')
|
107
|
+
# Poetry's 1.2.0+ of defining dev deps
|
108
|
+
poetry_manifest
|
109
|
+
.fetch("group", {})
|
110
|
+
.each_pair do |group_name, obj|
|
111
|
+
group_name = "develop" if group_name == "dev"
|
112
|
+
deps += map_dependencies(obj.fetch("dependencies", {}), group_name)
|
113
|
+
end
|
106
114
|
|
107
115
|
# Parse PEP621 [project] deps
|
108
116
|
pep621_manifest = file_contents.fetch('project', {})
|
@@ -179,10 +187,10 @@ module Bibliothecary
|
|
179
187
|
manifest["package"].each do |package|
|
180
188
|
# next if group == "_meta"
|
181
189
|
group = case package['category']
|
182
|
-
when 'main'
|
183
|
-
'runtime'
|
184
190
|
when 'dev'
|
185
191
|
'develop'
|
192
|
+
else
|
193
|
+
'runtime'
|
186
194
|
end
|
187
195
|
|
188
196
|
deps << {
|