Skip to content

Commit 9291bfe

Browse files
author
zaberaki
authored
Fix serializer autodiscovery (#26)
* Fix Serializers Autodiscovery Had created some code that tries to autodiscover installed serializers. Unfortunately the obj.available() call was calling obj_name.available() causing the discovery to fail entirely with no serializers found. Turns out that by setting up the tests to be specific, it skipped the discovery code so now we're also testing that. A bug in the test code! * fixup for release * Drop python 2.7 support
1 parent 75b66b3 commit 9291bfe

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ Install by using:
1616

1717
## Development
1818

19-
The targets are `python2.7`, `python3.6` and up.
19+
The targets are `python3.6` and up. `python 2.7` support was dropped in version `3.0.20211103`. For 2.7 support use:
2020

21-
The development environment requires `python3.6` as the `crossbar.io` based test server is unable to run in `python2.7`.
21+
```
22+
# For Python 2.7 support
23+
pip install swampyer=2.20210513
24+
```
2225

2326
Tox is used to automate the testing between the various python versions.
2427

VERSIONS.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,11 @@
124124
* Upgrade to simplejson for latest bugfixes, falling back on json
125125
* Teach json serializer how to do memoryview and bytes
126126
* Correct typo in extra_requires
127+
128+
2.20210513 - Thu May 13 14:46:32 UTC 2021
129+
* Fix serializer discovery bug (was invoking available() on name, not object)
130+
131+
3.0.20211103 - Wed Nov 3 23:41:39 UTC 2021
132+
* Drop Python 2.7 support
133+
* Allow newer versions of libraries (don't restrict them so tightly for the sake of 2.7 support)
134+

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
[tool.poetry]
22
name = "swampyer"
33
description = "Simple WAMP library with minimal external dependencies"
4-
version = '2.20210512'
4+
version = '3.0.20211103'
55
authors = ["Aki Mimoto <aki@zaber.com>"]
66

77
[build-system]
88
requires = ["poetry-core>=1.0.0"]
99
build-backend = "poetry.core.masonry.api"
1010

1111
[tool.poetry.dependencies]
12-
python = ">=2.7,<3.0.0 || >=3.5.0,<4.0"
13-
websocket-client = "^0.59.0"
14-
certifi = "^2020.12.5"
12+
python = ">=3.6.0,<4.0"
13+
websocket-client = ">=0.59.0"
14+
certifi = ">=2020.12.5"
1515
six = "^1.16.0"
1616
cbor = { version = "^1.0.0", optional = true }
1717
msgpack = { version = "^1.0.2", optional = true }

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = pypy3,py27,py36,py38,py39
2+
envlist = pypy3,py36,py38,py39
33
isolated_build = True
44

55
[tox:.package]

0 commit comments

Comments
 (0)