Skip to content

Commit af1a0d4

Browse files
authored
Merge pull request #179 from seperman/dev
4.3.2
2 parents 3b3a067 + 85d007f commit af1a0d4

File tree

9 files changed

+23
-9
lines changed

9 files changed

+23
-9
lines changed

AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ And many thanks to the following people for their contributions to DeepDiff:
2525
- Necrophagos for Hashing of the number 1 vs. True
2626
- Hugo (hugovk) for fixes for Python 3.10 and dropping support for EOL Python 3.4
2727
- Andrey Gavrilin (gaal-dev) for hashing classes.
28+
- Ivan Piskunov (van-ess0) for deprecation warning enhancement.

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# DeepDiff v 4.3.1
1+
# DeepDiff v 4.3.2
22

33
<!-- ![Downloads](https://img.shields.io/pypi/dm/deepdiff.svg?style=flat) -->
44
![Python Versions](https://img.shields.io/pypi/pyversions/deepdiff.svg?style=flat)
@@ -417,6 +417,7 @@ And then running
417417

418418
# ChangeLog
419419

420+
- v4-3-2: Deprecation Warning Enhancement
420421
- v4-3-1: Fixing the issue with exclude_path and hash calculations when dictionaries were inside iterables. https://github.com/seperman/deepdiff/issues/174
421422
- v4-3-0: adding exclude_obj_callback
422423
- v4-2-0: .json property is finally removed. Fix for Py3.10. Dropping support for EOL Python 3.4. Ignoring private keys when calculating hashes. For example __init__ is not a part of hash calculation anymore. Fix for #166 Problem with comparing lists, with an boolean as element.
@@ -510,3 +511,4 @@ Thank you!
510511
- mthaddon for adding timedelta diffing support
511512
- Necrophagos for Hashing of the number 1 vs. True
512513
- gaal-dev for adding exclude_obj_callback
514+
- Ivan Piskunov (van-ess0) for deprecation warning enhancement.

deepdiff/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""This module offers the DeepDiff, DeepSearch, grep and DeepHash classes."""
22
# flake8: noqa
3-
__version__ = '4.3.1'
3+
__version__ = '4.3.2'
44
import logging
55

66
if __name__ == '__main__':

deepdiff/diff.py

-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import difflib
1010
import logging
1111
import json
12-
import warnings
1312

1413
from itertools import zip_longest
1514
from collections.abc import Mapping, Iterable
@@ -29,7 +28,6 @@
2928
from deepdiff.base import Base
3029

3130
logger = logging.getLogger(__name__)
32-
warnings.simplefilter('once', DeprecationWarning)
3331

3432
try:
3533
import jsonpickle

deepdiff/helper.py

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import re
44
import os
55
import logging
6+
import warnings
67
from decimal import Decimal, localcontext
78
from collections import namedtuple
89
from ordered_set import OrderedSet
@@ -243,3 +244,13 @@ def number_to_string(number, significant_digits, number_format_notation="f"):
243244
if number_format_notation == 'e' and isinstance(number, float):
244245
result = result.replace('+0', '+')
245246
return result
247+
248+
249+
class DeepDiffDeprecationWarning(DeprecationWarning):
250+
"""
251+
Use this warning instead of DeprecationWarning
252+
"""
253+
pass
254+
255+
256+
warnings.simplefilter('once', DeepDiffDeprecationWarning)

docs/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
# built documents.
6060
#
6161
# The short X.Y version.
62-
version = '4.3.1'
62+
version = '4.3.2'
6363
# The full version, including alpha/beta/rc tags.
64-
release = '4.3.1'
64+
release = '4.3.2'
6565

6666
# The language for content autogenerated by Sphinx. Refer to documentation
6767
# for a list of supported languages.

docs/index.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
contain the root `toctree` directive.
55
66
7-
DeepDiff 4.3.1 documentation!
7+
DeepDiff 4.3.2 documentation!
88
=============================
99

1010
**DeepDiff: Deep Difference of dictionaries, iterables, strings and other objects. It will recursively look for all the changes.**
@@ -281,6 +281,7 @@ Indices and tables
281281
Changelog
282282
=========
283283

284+
- v4-3-2: Deprecation Warning Enhancement
284285
- v4-3-1: Fixing the issue with exclude_path and hash calculations when dictionaries were inside iterables. https://github.com/seperman/deepdiff/issues/174
285286
- v4-3-0: adding exclude_obj_callback
286287
- v4-2-0: .json property is finally removed. Fix for Py3.10. Dropping support for EOL Python 3.4. Ignoring private keys when calculating hashes. For example __init__ is not a part of hash calculation anymore. Fix for #166 Problem with comparing lists, with an boolean as element.
@@ -367,3 +368,4 @@ And thanks to the following people for their great contributions!
367368
- Hugo (hugovk) for fixes for Python 3.10 and dropping support for EOL Python 3.4
368369
- Andrey Gavrilin (gaal-dev) for hashing classes.
369370
- gaal-dev for adding exclude_obj_callback
371+
- Ivan Piskunov (van-ess0) for deprecation warning enhancement.

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 4.3.1
2+
current_version = 4.3.2
33
commit = True
44
tag = True
55
tag_name = {new_version}

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
if os.environ.get('USER', '') == 'vagrant':
1111
del os.link
1212

13-
version = '4.3.1'
13+
version = '4.3.2'
1414

1515

1616
def get_reqs(filename):

0 commit comments

Comments
 (0)