wisp-python 0.5.1__tar.gz → 0.5.2__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: wisp-python
3
- Version: 0.5.1
3
+ Version: 0.5.2
4
4
  Summary: An implementation of a Wisp proxy server in Python
5
5
  Author: ading2210
6
6
  Project-URL: Homepage, https://github.com/MercuryWorkshop/wisp-server-python
@@ -13,7 +13,7 @@ Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
14
  Requires-Dist: websockets
15
15
  Requires-Dist: asyncudp
16
- Requires-Dist: uvloop
16
+ Requires-Dist: uvloop; sys_platform != "win32" and sys_platform != "cygwin"
17
17
 
18
18
  # Python Wisp Server
19
19
 
@@ -11,7 +11,7 @@ package-dir = {"" = "src"}
11
11
 
12
12
  [project]
13
13
  name = "wisp-python"
14
- version = "0.5.1"
14
+ version = "0.5.2"
15
15
  authors = [
16
16
  {name="ading2210"},
17
17
  ]
@@ -26,7 +26,7 @@ classifiers = [
26
26
  dependencies = [
27
27
  "websockets",
28
28
  "asyncudp",
29
- "uvloop"
29
+ "uvloop; sys_platform != 'win32' and sys_platform != 'cygwin'"
30
30
  ]
31
31
 
32
32
  [project.urls]
@@ -1,6 +1,7 @@
1
1
  import argparse
2
2
  import asyncio
3
3
  import logging
4
+ import sys
4
5
 
5
6
  try:
6
7
  import uvloop
@@ -38,5 +39,7 @@ if __name__ == "__main__":
38
39
  if use_uvloop:
39
40
  uvloop.run(wisp.server.http.main(args))
40
41
  else:
41
- logging.error("Importing uvloop failed. Falling back to asyncio, which is slower.")
42
+ #uvloop doesn't support windows at all so we don't need to print the error
43
+ if not sys.platform in ("win32", "cygwin"):
44
+ logging.error("Importing uvloop failed. Falling back to asyncio, which is slower.")
42
45
  asyncio.run(wisp.server.http.main(args))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wisp-python
3
- Version: 0.5.1
3
+ Version: 0.5.2
4
4
  Summary: An implementation of a Wisp proxy server in Python
5
5
  Author: ading2210
6
6
  Project-URL: Homepage, https://github.com/MercuryWorkshop/wisp-server-python
@@ -13,7 +13,7 @@ Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
14
  Requires-Dist: websockets
15
15
  Requires-Dist: asyncudp
16
- Requires-Dist: uvloop
16
+ Requires-Dist: uvloop; sys_platform != "win32" and sys_platform != "cygwin"
17
17
 
18
18
  # Python Wisp Server
19
19
 
@@ -0,0 +1,5 @@
1
+ websockets
2
+ asyncudp
3
+
4
+ [:sys_platform != "win32" and sys_platform != "cygwin"]
5
+ uvloop
@@ -1,3 +0,0 @@
1
- websockets
2
- asyncudp
3
- uvloop
File without changes
File without changes
File without changes