makerchip-app 1.1.4__py3-none-any.whl → 1.1.6__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.
makerchip/__init__.py CHANGED
@@ -90,10 +90,10 @@ class MakerchipSession:
90
90
  verbose = False
91
91
  watch = False
92
92
  vcd = None
93
- wait_seconds = 1
94
- max_retries = 100
93
+ wait_seconds = -1
94
+ max_retries = -1
95
95
 
96
- def __init__(self, design, vcd = None, server=None, from_url=None, status=False, verbose=False, max_retries=100, wait_seconds=1):
96
+ def __init__(self, design, vcd, server, from_url, status, verbose, max_retries, wait_seconds):
97
97
  self.design = design
98
98
  self.status = status
99
99
  self.verbose = verbose
@@ -230,10 +230,15 @@ class MakerchipSession:
230
230
  else:
231
231
  print_status("Unexpected event: " + event.data, True)
232
232
  except Exception as e:
233
- # Reconnect immediately if elapsed time since last disconnect is over a minute.
233
+ # Don't stress if elapsed time since last disconnect is over a minute (no delay and ignore the retry).
234
234
  now = time.perf_counter()
235
- if now - self.last_disconnect_time > 60:
235
+ stress = now - self.last_disconnect_time < 60
236
+ if stress:
237
+ retries = retries + 1
238
+ else:
236
239
  wait_seconds = 0
240
+ retries = retries * 0.8 # We feel better now.
241
+ #print_status(str(now - self.last_disconnect_time) + ", " + str(retries))
237
242
  # Do not consider CloudFlareTimeout and 0-byte read (also due to CloudFlare) to be errors.
238
243
  zero_bytes = str(e) == "('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))"
239
244
  error = not (zero_bytes or isinstance(e, CloudFlareTimeoutException))
@@ -246,11 +251,13 @@ class MakerchipSession:
246
251
  # Disconnect and reconnect.
247
252
  if wait_seconds > 0:
248
253
  print_status(message + " Hang on...", error)
249
- retries = retries + 1
250
254
  self.http_session.close()
251
255
  time.sleep(wait_seconds)
252
256
  print_status(message + " Trying to reconnect... (%s)" % self.last_save_string(), error)
253
257
  self.last_disconnect_time = time.perf_counter()
258
+ # There's no confirmation of reconnect until a message is received, so for status, we must
259
+ # simply assume reconnect is successful.
260
+ print_status(self.last_save_string())
254
261
  else:
255
262
  print_status("All retries have failed. (%s)" % self.last_save_string(), True)
256
263
 
@@ -267,7 +274,7 @@ def run():
267
274
  parser.add_argument('--server', type=str, help='Makerchip server. (default: https://app.makerchip.com)')
268
275
  parser.add_argument('--status', action='store_true', help='Show the status bar.')
269
276
  parser.add_argument('--verbose', action='store_true', help='Report status updates to stderr (unless --status).')
270
- parser.add_argument('--max_retries', type=int, default=100, help='Maximum retries for recovering connection.')
277
+ parser.add_argument('--max_retries', type=int, default=20, help='Maximum immediate retries for recovering connection.')
271
278
  parser.add_argument('--wait_seconds', type=int, default=1, help='Seconds between retry attempts.')
272
279
  args = parser.parse_args()
273
280
  global status
@@ -1,6 +1,6 @@
1
1
  # Released under MIT License
2
2
 
3
- Copyright (c) 2021 Redwood EDA.
3
+ Copyright (c) 2021 Redwood EDA, LLC.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
@@ -1,16 +1,15 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: makerchip-app
3
- Version: 1.1.4
3
+ Version: 1.1.6
4
4
  Summary: Makerchip desktop app
5
5
  Home-page: https://gitlab.com/rweda/makerchip-app
6
- Author: Redwood EDA
6
+ Author: Redwood EDA, LLC
7
7
  Author-email: makerchip-app@redwoodeda.com
8
- License: UNKNOWN
9
- Platform: UNKNOWN
10
8
  Classifier: Topic :: Text Editors :: Integrated Development Environments (IDE)
11
9
  Classifier: License :: OSI Approved :: MIT License
12
10
  Requires-Python: >=3.6
13
11
  Description-Content-Type: text/markdown
12
+ License-File: LICENSE.md
14
13
  Requires-Dist: click
15
14
  Requires-Dist: requests
16
15
  Requires-Dist: sseclient-py
@@ -20,6 +19,10 @@ Requires-Dist: sseclient-py
20
19
 
21
20
  ![splash](https://gitlab.com/rweda/makerchip-app/-/raw/00e5519aeb9e14ef527df0ccc44e8aed7f5db269/doc/makerchip_screenshot.png)
22
21
 
22
+ ## DEPRECATION NOTICE
23
+
24
+ This project has reached its end of life. Makerchip can now be installed to your desktop on most platforms and from most modern browsers. Visit [Makerchip](https://makerchip.com).
25
+
23
26
  ## Overview
24
27
 
25
28
  This repository enables open-source Verilog/SystemVerilog/TL-Verilog development using the [Makerchip](https://makerchip.com) integrated development environment (IDE). Though Makerchip is cloud-based, this project wraps Makerchip with the look, feel, and function of a desktop application for local development, using a "virtual desktop application" model.
@@ -98,4 +101,4 @@ Feel free to contact the [Makerchip team](mailto:help@makerchip.com).
98
101
 
99
102
  ## Enjoy!
100
103
 
101
-
104
+ [.](https://gitlab.com/rweda/Makerchip-public)
@@ -0,0 +1,11 @@
1
+ makerchip/__init__.py,sha256=2hZFF8ihI9tmjxWejhj0dmWIb1WKKrawqGwqkSwLzwQ,13981
2
+ makerchip/__main__.py,sha256=0KgVvK4WBJ6bm0ywoIhGZYe1nd3sOiC17GirNOZlgDw,69
3
+ makerchip/_vendor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ makerchip/_vendor/native_web_app.py,sha256=oz0NdWuf7z79_JY1llrAQr7SwZYi-mDUOUmleh-v360,3565
5
+ makerchip/asset/default.tlv,sha256=_tl7EYXxuHwYr2U7GIHatsC_kpHzAvv_8lOtuGcrzv4,566
6
+ makerchip_app-1.1.6.dist-info/LICENSE.md,sha256=tbnCOYafFAkakdpiWZZViCiox4SqlHolu1ajovwrQTY,1091
7
+ makerchip_app-1.1.6.dist-info/METADATA,sha256=rmaJJvbwghm5eH-bdz2fUl7hN9kkMNti3LOl78Hg4yA,3765
8
+ makerchip_app-1.1.6.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
9
+ makerchip_app-1.1.6.dist-info/entry_points.txt,sha256=Ur52vW1HZXGfyBXONqqtXHf0HEupMAVfqVfVSSS5WWI,44
10
+ makerchip_app-1.1.6.dist-info/top_level.txt,sha256=Is3phcRmevW4QVU94nqTTv4kIWYYWDzI9T9c-qigIbU,10
11
+ makerchip_app-1.1.6.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.34.2)
2
+ Generator: bdist_wheel (0.42.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,3 +1,2 @@
1
1
  [console_scripts]
2
2
  makerchip = makerchip:run
3
-
@@ -1,11 +0,0 @@
1
- makerchip/__init__.py,sha256=YutYzwhJ-bDK1cstopWObjM059dLxhDYmQXkhrjQ3U8,13555
2
- makerchip/__main__.py,sha256=0KgVvK4WBJ6bm0ywoIhGZYe1nd3sOiC17GirNOZlgDw,69
3
- makerchip/_vendor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- makerchip/_vendor/native_web_app.py,sha256=oz0NdWuf7z79_JY1llrAQr7SwZYi-mDUOUmleh-v360,3565
5
- makerchip/asset/default.tlv,sha256=_tl7EYXxuHwYr2U7GIHatsC_kpHzAvv_8lOtuGcrzv4,566
6
- makerchip_app-1.1.4.dist-info/LICENSE.md,sha256=9oFrYg3AomT4c7Fci42b8sJh3AIhulQYK52XCQRtxZM,1086
7
- makerchip_app-1.1.4.dist-info/METADATA,sha256=VjZVYejCPpIIPnSyJYxNCo7atdbjDaL6OOiKj7tFNxA,3519
8
- makerchip_app-1.1.4.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
9
- makerchip_app-1.1.4.dist-info/entry_points.txt,sha256=KuW52UUdde8mx6pp71_W2mZn6L75_LKedo5itAcGr9o,45
10
- makerchip_app-1.1.4.dist-info/top_level.txt,sha256=Is3phcRmevW4QVU94nqTTv4kIWYYWDzI9T9c-qigIbU,10
11
- makerchip_app-1.1.4.dist-info/RECORD,,