Skip to content

Commit 494efaf

Browse files
Merge pull request #796 from hugapi/develop
2.5.3
2 parents c50f227 + f022c52 commit 494efaf

File tree

7 files changed

+12
-5
lines changed

7 files changed

+12
-5
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 2.5.2
2+
current_version = 2.5.3
33

44
[bumpversion:file:.env]
55

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fi
1111

1212
export PROJECT_NAME=$OPEN_PROJECT_NAME
1313
export PROJECT_DIR="$PWD"
14-
export PROJECT_VERSION="2.5.2"
14+
export PROJECT_VERSION="2.5.3"
1515

1616
if [ ! -d "venv" ]; then
1717
if ! hash pyvenv 2>/dev/null; then

ACKNOWLEDGEMENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Code Contributors
4949
- Antti Kaihola (@akaihola)
5050
- Christopher Goes (@GhostOfGoes)
5151
- Stanislav (@atmo)
52+
- Lordran (@xzycn)
5253

5354
Documenters
5455
===================

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ Ideally, within a virtual environment.
1111

1212
Changelog
1313
=========
14+
### 2.5.3 hotfix - May 15, 2019
15+
- Fixed issue #794 - Restore support for versions of Marshmallow pre-2.17.0
16+
1417
### 2.5.2 hotfix - May 10, 2019
1518
- Fixed issue #790 - Set Falcon defaults to pre 2.0.0 version to avoid breaking changes for Hug users until a Hug 3.0.0 release. The new default Falcon behaviour can be defaulted before hand by setting `__hug__.future = True`.
1619

hug/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
"""
2222
from __future__ import absolute_import
2323

24-
current = "2.5.2"
24+
current = "2.5.3"

hug/types.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
import uuid as native_uuid
2525
from decimal import Decimal
26+
from distutils.version import LooseVersion
2627

2728
import hug._empty as empty
2829
from hug import introspect
@@ -34,7 +35,9 @@
3435
import marshmallow
3536
from marshmallow import ValidationError
3637

37-
MARSHMALLOW_MAJOR_VERSION = marshmallow.__version_info__[0]
38+
MARSHMALLOW_MAJOR_VERSION = getattr(
39+
marshmallow, "__version_info__", LooseVersion(marshmallow.__version__).version
40+
)[0]
3841
except ImportError:
3942
# Just define the error that is never raised so that Python does not complain.
4043
class ValidationError(Exception):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def list_modules(dirname):
7878

7979
setup(
8080
name="hug",
81-
version="2.5.2",
81+
version="2.5.3",
8282
description="A Python framework that makes developing APIs "
8383
"as simple as possible, but no simpler.",
8484
long_description=long_description,

0 commit comments

Comments
 (0)