licensed 3.7.3 → 3.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/licensed/sources/pip.rb +6 -2
- data/lib/licensed/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1002bceeb85db079486f7cbde9c09638362fc03b287c15822fcc7e4e250a1c6d
|
4
|
+
data.tar.gz: acb2c626b8efd7573e32efef91a3c68b93c5aeee07580d874d58ce1326ee5aa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb16460e74fd404c19e3a977c9fc125f91ef2b96f04952aac6aa46da8dc5981d9bcfb556cd2db2503e0d36ce7a78278e57532005e54384069e632d62cd7181de
|
7
|
+
data.tar.gz: e1d0b1df753a9dcc0c6b488cdbfef416d776edd8e3128363a46722f43be2178f939e6cbef71a645d944049619d058c3df7f291e2b3779f32046f094726ca95f4
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## 3.7.4
|
10
|
+
|
11
|
+
### Fixed
|
12
|
+
|
13
|
+
- Licenses for Python dependencies built with Hatchling are correctly found (https://github.com/github/licensed/pull/547)
|
14
|
+
|
9
15
|
## 3.7.3
|
10
16
|
|
11
17
|
### Fixed
|
@@ -631,4 +637,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
631
637
|
|
632
638
|
Initial release :tada:
|
633
639
|
|
634
|
-
[Unreleased]: https://github.com/github/licensed/compare/3.7.
|
640
|
+
[Unreleased]: https://github.com/github/licensed/compare/3.7.4...HEAD
|
data/lib/licensed/sources/pip.rb
CHANGED
@@ -42,8 +42,12 @@ module Licensed
|
|
42
42
|
# folder per https://peps.python.org/pep-0639/
|
43
43
|
def package_license_location(package)
|
44
44
|
dist_info = File.join(package["Location"], package["Name"].gsub("-", "_") + "-" + package["Version"] + ".dist-info")
|
45
|
-
|
46
|
-
|
45
|
+
|
46
|
+
license_path = ["license_files", "licenses"]
|
47
|
+
.map { |directory| File.join(dist_info, directory) }
|
48
|
+
.find { |path| File.exist?(path) }
|
49
|
+
|
50
|
+
license_path || dist_info
|
47
51
|
end
|
48
52
|
|
49
53
|
# Returns parsed information for all packages used by the project,
|
data/lib/licensed/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: licensed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.7.
|
4
|
+
version: 3.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: licensee
|