Skip to content

Commit 351ecea

Browse files
authored
Merge pull request #105 from python-odin/release/1.6.1
Release/1.6.1
2 parents 23a6d9a + c08dfd7 commit 351ecea

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ jobs:
6464

6565
- name: Upload to PyPI
6666
id: upload_to_pypi
67-
run: poetry publish
67+
run: poetry publish --username __token__ --password ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}

HISTORY

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
1.6.1
2+
=====
3+
4+
- Fix poetry config error that restricted Python versions > 3!
5+
16
1.6.0
27
=====
38

poetry.lock

+12-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "odin"
3-
version = "1.6.0"
3+
version = "1.6.1"
44
description = "Data-structure definition/validation/traversal, mapping and serialisation toolkit for Python"
55
authors = ["Tim Savage <tim@savage.company>"]
66
license = "BSD-3-Clause"
@@ -31,7 +31,7 @@ packages = [
3131
]
3232

3333
[tool.poetry.dependencies]
34-
python = "^2.7"
34+
python = "~2.7 || >=3.6 <3.10"
3535
six = "*"
3636
typing = {version="~=3.7.4", python = "~2.7" }
3737
enum34 = {version="*", python = "<3.4" }

src/odin/fields/future.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ def to_python(self, value):
5454

5555
def prepare(self, value):
5656
# type: (Optional[ET]) -> Any
57-
if (value is not None) and (value in self.enum):
57+
if (value is not None) and isinstance(value, self.enum):
5858
return value.value

0 commit comments

Comments
 (0)