File tree Expand file tree Collapse file tree 6 files changed +17
-8
lines changed Expand file tree Collapse file tree 6 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,7 @@ packageurl-python:
4
4
- Philippe Ombredanne @pombredanne
5
5
- Jiri Popelka @jpopelka
6
6
- Thomas Druez @tdruez
7
+ - Jono Yang @JonoYang
8
+ - Sebastain Schuberth @sschuberth
9
+ - Tushar Goel @TG1999
10
+ - Haiko Schol @haikoschol
Original file line number Diff line number Diff line change 1
1
Changelog
2
2
=========
3
3
4
- x.x.x (2017-xx-xx )
4
+ 0.9.0 (2020-04-06 )
5
5
------------------
6
6
7
- Initial release
7
+ - Make PackageURL hashable.
8
+ - Add cargo type or url2purl
Original file line number Diff line number Diff line change 2
2
universal = 1
3
3
4
4
[metadata]
5
- license_file = mit.LICENSE
5
+ license_files =
6
+ - mit.LICENSE
7
+ - AUTHORS.rst
8
+ - README.rst
9
+ - CONTRIBUTING.rst
6
10
7
11
[aliases]
8
12
release = clean --all sdist bdist_wheel
Original file line number Diff line number Diff line change 14
14
15
15
setup (
16
16
name = 'packageurl-python' ,
17
- version = '0.8.8 ' ,
17
+ version = '0.9.0 ' ,
18
18
license = 'MIT' ,
19
19
description = 'A "purl" aka. package URL parser and builder' ,
20
20
long_description = 'Python library to parse and build "purl" aka. package URLs. '
Original file line number Diff line number Diff line change 51
51
52
52
This is inspired by Guido's http://www.artima.com/weblogs/viewpost.jsp?thread=101605
53
53
and Django, Flask, Werkzeug and other url dispatch and routing design from web
54
- frameworks.
54
+ frameworks.
55
55
https://github.com/douban/brownant has a similar approach, using
56
56
Werkzeug with the limitation that it does not route based on URI scheme and is
57
57
limited to HTTP.
Original file line number Diff line number Diff line change 44
44
45
45
46
46
"""
47
- This module helps build a PackageURL from an arbitrary URL.
47
+ This module helps build a PackageURL from an arbitrary URL.
48
48
This uses the a routing mechanism available in the route.py module.
49
49
50
50
In order to make it easy to use, it contains all the conversion functions
@@ -265,14 +265,14 @@ def build_sourceforge_purl(uri):
265
265
return purl_from_pattern ('sourceforge' , sourceforge_pattern , uri )
266
266
267
267
268
- cargo_pattern = (
268
+ cargo_pattern = (
269
269
r"^https?://crates.io/api/v1/crates/"
270
270
r"(?P<name>.+)/(?P<version>.+)"
271
271
r"(\/download)$"
272
272
)
273
273
274
274
275
- #https://crates.io/api/v1/crates/rand/0.7.2/download
275
+ # https://crates.io/api/v1/crates/rand/0.7.2/download
276
276
@purl_router .route (cargo_pattern )
277
277
def build_cargo_purl (uri ):
278
278
return purl_from_pattern ('cargo' , cargo_pattern , uri )
You can’t perform that action at this time.
0 commit comments