File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ Changelog
440.16.0 (unreleased)
55-------------------
66
7+ 0.15.2 (2024-07-04)
8+ -------------------
9+
10+ - Update GitHub generated Download URL for maximum compatibility.
11+ https://github.com/package-url/packageurl-python/issues/157
12+
7130.15.1 (2024-06-13)
814-------------------
915
Original file line number Diff line number Diff line change 11[metadata]
22name = packageurl-python
3- version = 0.15.1
3+ version = 0.15.2
44license = MIT
55description = A purl aka. Package URL parser and builder
66long_description = file:README.rst
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def get_repo_download_url_by_package_type(
4040 raise ValueError ("Only zip and tar.gz extensions are supported" )
4141
4242 download_url_by_type = {
43- "github" : f"https://github.com/{ namespace } /{ name } /archive/refs/tags/ { version } .{ archive_extension } " ,
43+ "github" : f"https://github.com/{ namespace } /{ name } /archive/{ version } .{ archive_extension } " ,
4444 "bitbucket" : f"https://bitbucket.org/{ namespace } /{ name } /get/{ version } .{ archive_extension } " ,
4545 "gitlab" : f"https://gitlab.com/{ namespace } /{ name } /-/archive/{ version } /{ name } -{ version } .{ archive_extension } " ,
4646 }
Original file line number Diff line number Diff line change @@ -78,7 +78,8 @@ def test_purl2url_get_download_url():
7878 "pkg:npm/is-npm@1.0.0" : "http://registry.npmjs.org/is-npm/-/is-npm-1.0.0.tgz" ,
7979 "pkg:hackage/cli-extras@0.2.0.0" : "https://hackage.haskell.org/package/cli-extras-0.2.0.0/cli-extras-0.2.0.0.tar.gz" ,
8080 "pkg:nuget/System.Text.Json@6.0.6" : "https://www.nuget.org/api/v2/package/System.Text.Json/6.0.6" ,
81- "pkg:github/nexb/scancode-toolkit@3.1.1?version_prefix=v" : "https://github.com/nexb/scancode-toolkit/archive/refs/tags/v3.1.1.tar.gz" ,
81+ "pkg:github/nexb/scancode-toolkit@3.1.1?version_prefix=v" : "https://github.com/nexb/scancode-toolkit/archive/v3.1.1.tar.gz" ,
82+ "pkg:github/StonyShi/reactor-netty-jersey@ac525d91ff1724395640531df08e3e4eabef207d" : "https://github.com/stonyshi/reactor-netty-jersey/archive/ac525d91ff1724395640531df08e3e4eabef207d.tar.gz" ,
8283 "pkg:bitbucket/robeden/trove@3.0.3" : "https://bitbucket.org/robeden/trove/get/3.0.3.tar.gz" ,
8384 "pkg:bitbucket/robeden/trove@3.0.3?version_prefix=v" : "https://bitbucket.org/robeden/trove/get/v3.0.3.tar.gz" ,
8485 "pkg:gitlab/tg1999/firebase@1a122122" : "https://gitlab.com/tg1999/firebase/-/archive/1a122122/firebase-1a122122.tar.gz" ,
You can’t perform that action at this time.
0 commit comments