ghdl 0.4.12__py3-none-any.whl → 0.4.14__py3-none-any.whl

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.
ghdl/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
- __version__ = "0.4.12"
1
+ __version__ = "0.4.14"
2
2
 
3
3
  from ghdl.main import main, set_dry, set_single
ghdl/main.hy CHANGED
@@ -44,7 +44,7 @@
44
44
  (setv remote-metadata
45
45
  (try
46
46
  (await (remote.metadata record client Config.token))
47
- (except [e []]
47
+ (except [e Exception]
48
48
  (print f"Failed to fetch remote data from Github API for {record.repo}")
49
49
  (print (traceback.format_exc))
50
50
  (setv record.toUpdate? False)
@@ -104,7 +104,7 @@
104
104
  (when record.toUpdate?
105
105
  (try
106
106
  (process record)
107
- (except [e []]
107
+ (except [e Exception]
108
108
  (print f"Failed to process {record.repo}")
109
109
  (print (traceback.format_exc)))))))
110
110
 
ghdl/remote.hy CHANGED
@@ -34,7 +34,15 @@
34
34
  (setv headers {"Accept" "application/vnd.github.v3+json"})
35
35
  (setv api (get-api record))
36
36
  (when token (assoc headers "Authorization" f"token {token}"))
37
- (setv resp (.json (await (client.get api :headers headers))))
37
+ (setv response (await (client.get api :headers headers)))
38
+ (when (!= response.status_code 200)
39
+ (raise (Exception f"Github API error {response.status_code} for {record.repo}")))
40
+ (setv resp
41
+ (try
42
+ (.json response)
43
+ (except [e Exception]
44
+ (raise (Exception f"Invalid JSON from Github API for {record.repo}")))))
45
+
38
46
  (cond
39
47
  record.pre-release? (get resp 0)
40
48
  record.release-filter (find-matching-release resp record)
@@ -0,0 +1,16 @@
1
+ Metadata-Version: 2.4
2
+ Name: ghdl
3
+ Version: 0.4.14
4
+ Summary: Binary Manager for Github Releases
5
+ Author-email: Imran Khan <imran@khan.ovh>
6
+ Requires-Python: <3.15,>=3.9
7
+ License-File: LICENSE
8
+ Requires-Dist: xtract==0.1a3
9
+ Requires-Dist: xdg>=4.0.1
10
+ Requires-Dist: python-dateutil>=2.8.1
11
+ Requires-Dist: docopt>=0.6.2
12
+ Requires-Dist: python-magic>=0.4.25
13
+ Requires-Dist: hyrule>=1.0.1
14
+ Requires-Dist: hy>=1.2.0
15
+ Requires-Dist: httpx>=0.28.1
16
+ Dynamic: license-file
@@ -0,0 +1,14 @@
1
+ ghdl/__init__.py,sha256=HhUpxbXHHKN2--hfKUsBGgQ92J_TPnvnSpag-jgk2XE,72
2
+ ghdl/config.hy,sha256=Phq5jyoTizCGQMVtVFljx1MByqo9rBLaciZ69PsS-IE,1550
3
+ ghdl/local.hy,sha256=1StKPJ-l3mo6QdtaYfwL9FvZK97MdYIHrRRSF6S06OU,1687
4
+ ghdl/main.hy,sha256=Suu1YFl8N11sO0b27eqJGlkF9s3vrrUdO7IIoY3W8uU,4724
5
+ ghdl/remote.hy,sha256=fc3_YDiWFnIXTRK_GUfPUbJZrLWyMeF33ek2ZKx-bl4,1901
6
+ ghdl/schema.hy,sha256=sXKjpaBVzBAPAx8Ko3RbCJB2GGbE5pilx-E3gVHtFMY,708
7
+ ghdl/utils.hy,sha256=DZpjuemTpuyex-2ShLRyNxMzMKPM0jia9CCnqMdizfA,1604
8
+ ghdl-0.4.14.data/scripts/ghdl,sha256=COv8sAI-zeTEcxkSvob6lAonVJ71vpAWmsnCfsa6HO8,618
9
+ ghdl-0.4.14.data/scripts/ghdl-delete-repo,sha256=b2X42MFFmvvJ6ldLAHyrcCkI5LB40Tuefbc3FMAtu54,92
10
+ ghdl-0.4.14.dist-info/licenses/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
11
+ ghdl-0.4.14.dist-info/METADATA,sha256=8PRRJu_b3l3Uv-1r4C3XrJ_vc76mL6OvzlhYdrs2FPY,449
12
+ ghdl-0.4.14.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
13
+ ghdl-0.4.14.dist-info/top_level.txt,sha256=SQzk56oLwp9nK3FgsTZRR9-tCPZokrFKwA-1TWOPPwQ,5
14
+ ghdl-0.4.14.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5