bibliothecary 7.1.4 → 7.1.5
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 +8 -3
- 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: c9b98a74ca8714750a835ebe600e5a031edcad43bfffa82b475f47aaf1356d2b
|
4
|
+
data.tar.gz: a8a74dbbfdac38ad7da70258e080c9f61aad16c4f19002b8d1d53290873ba6d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25f3208793295ee459d4a9995f38a877d48132fa31469091695e60597c09547f345a0f554539a4bfe065b8a307ba17a8e9fecc3d30d08cce22ef35cf7e5430e0
|
7
|
+
data.tar.gz: 8b38ae3f49162807dcf04f3e07c81d69501b1aa041b4e1239bc8bf477067e485266b15ad99a090f649dd826cf2f055a24ef3bf39e8fbcda071f2d087f0dea2a2
|
@@ -4,7 +4,12 @@ module Bibliothecary
|
|
4
4
|
include Bibliothecary::Analyser
|
5
5
|
|
6
6
|
INSTALL_REGEXP = /install_requires\s*=\s*\[([\s\S]*?)\]/
|
7
|
-
|
7
|
+
|
8
|
+
# Capture Group 1 is package.
|
9
|
+
# Optional Group 2 is [extras].
|
10
|
+
# Capture Group 3 is Version
|
11
|
+
REQUIRE_REGEXP = /([a-zA-Z0-9]+[a-zA-Z0-9\-_\.]+)(?:\[.*?\])*([><=\w\.,]+)?/
|
12
|
+
|
8
13
|
REQUIREMENTS_REGEXP = /^#{REQUIRE_REGEXP}/
|
9
14
|
MANIFEST_REGEXP = /.*require[^\/]*(\/)?[^\/]*\.(txt|pip|in)$/
|
10
15
|
PIP_COMPILE_REGEXP = /.*require.*$/
|
@@ -160,7 +165,7 @@ module Bibliothecary
|
|
160
165
|
next unless match
|
161
166
|
deps << {
|
162
167
|
name: match[1],
|
163
|
-
requirement: match[
|
168
|
+
requirement: match[-1] || '*',
|
164
169
|
type: 'runtime'
|
165
170
|
}
|
166
171
|
end
|
@@ -174,7 +179,7 @@ module Bibliothecary
|
|
174
179
|
next unless match
|
175
180
|
deps << {
|
176
181
|
name: match[1],
|
177
|
-
requirement: match[
|
182
|
+
requirement: match[-1] || '*',
|
178
183
|
type: 'runtime'
|
179
184
|
}
|
180
185
|
end
|