ghdl 0.4.4__tar.gz → 0.4.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ghdl
3
- Version: 0.4.4
3
+ Version: 0.4.5
4
4
  Summary: Binary Manager for Github Releases
5
5
  License: AGPL-3.0-or-later
6
6
  Author: Imran Khan
@@ -1,3 +1,3 @@
1
- (setv __version__ "0.4.4")
1
+ (setv __version__ "0.4.5")
2
2
 
3
3
  (import ghdl.main [main set-dry set-single])
@@ -39,6 +39,8 @@
39
39
 
40
40
 
41
41
  (defn/a add-remote-metadata [record client]
42
+ (setv record.url None)
43
+
42
44
  (setv remote-metadata
43
45
  (try
44
46
  (await (remote.metadata record client Config.token))
@@ -46,7 +48,6 @@
46
48
  (print f"Failed to fetch remote data from Github API for {record.repo}")
47
49
  (print (traceback.format_exc))
48
50
  (setv record.toUpdate? False)
49
- (setv record.url "N/A")
50
51
  (.append Config.failures #(record.repo "Network"))
51
52
  (return))))
52
53
 
@@ -57,7 +58,6 @@
57
58
  (if (not dl-url)
58
59
  (do
59
60
  (setv record.toUpdate? False)
60
- (setv record.url "N/A")
61
61
  (.append Config.failures #(record.repo "No Matching URL"))
62
62
  (return))
63
63
  (setv record.url dl-url)))
@@ -3,6 +3,9 @@
3
3
  (require hyrule [-> assoc])
4
4
 
5
5
 
6
+ (defclass NoMatchingReleaseException [Exception])
7
+
8
+
6
9
  (setv Remote (namedtuple "Record" '("tag" "timestamp" "url_data")))
7
10
 
8
11
 
@@ -23,7 +26,7 @@
23
26
  (when (bool (re.search pattern name))
24
27
  (return release)))
25
28
  (print f"No matching release found for: {release-filter}")
26
- (raise BaseException))
29
+ (raise NoMatchingReleaseException))
27
30
 
28
31
 
29
32
  (defn/a get-remote [record client [token None]]
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ghdl"
3
- version = "0.4.4"
3
+ version = "0.4.5"
4
4
  description = "Binary Manager for Github Releases"
5
5
  authors = ["Imran Khan <imran@khan.ovh>"]
6
6
  license = "AGPL-3.0-or-later"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes