Skip to content

Commit b1c8d01

Browse files
author
zaberaki
authored
Add support for alternate websockets library (#34)
* Add support for alternate websockets library * add a method to avoid using websockets
1 parent 0e63873 commit b1c8d01

File tree

8 files changed

+402
-168
lines changed

8 files changed

+402
-168
lines changed

VERSIONS.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,6 @@
174174

175175
3.0.20230614 - Wed Jun 14 11:00:28 PDT 2023
176176
* Merged @zaberblake's change to allow `datetime` and `date` to be natively handled
177+
178+
3.0.20230623 - Sun Jun 25 16:16:10 PDT 2023
179+
* Added support for `websockets` library as an alternate to `websocket-client`

noxfile.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import os
88
import nox
9+
import time
910
import shutil
1011
import pathlib
1112
import subprocess
@@ -49,7 +50,7 @@ def build(session):
4950
PACKAGE_BUILT = True
5051
session.run("poetry", "build", )
5152

52-
@nox.session(python=['pypy3', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11' ])
53+
@nox.session(python=['pypy3', '3.7', '3.8', '3.9', '3.10', '3.11' ])
5354
def tests(session):
5455
global PACKAGE_BUILT
5556

@@ -78,9 +79,9 @@ def tests(session):
7879

7980
# Finally, run the tests
8081
try:
81-
session.run("pytest")
82+
session.run("pytest", "--log-cli-level=WARN", "-s")
8283

8384
finally:
8485
# And tear nexus down now that'we re done
85-
p.terminate()
86+
p.kill()
8687
p.wait()

poetry.lock

Lines changed: 84 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
22
name = "swampyer"
33
description = "Simple WAMP library with minimal external dependencies"
4-
version = '3.0.20230614'
4+
version = '3.0.20230623'
55
authors = ["Aki Mimoto <aki@zaber.com>"]
66
packages = [
77
{ include = "swampyer" }
@@ -14,14 +14,16 @@ certifi = ">=2020.12.5"
1414
six = "^1.16.0"
1515
cbor = { version = "^1.0.0", optional = true }
1616
msgpack = { version = "^1.0.2", optional = true }
17+
websockets = { version = "^11.0.3", optional = true}
1718

1819
[tool.poetry.dev-dependencies]
1920
pytest = ">=4.6.11"
2021

2122
[tool.poetry.extras]
2223
cbor = [ "cbor" ]
2324
msgpack = [ "msgpack" ]
24-
all = [ "cbor", "msgpack" ]
25+
websockets = [ "websockets" ]
26+
all = [ "cbor", "msgpack", "websockets" ]
2527

2628
[tool.poetry.scripts]
2729

0 commit comments

Comments
 (0)