jsonpatch 1.33__tar.gz → 1.34__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: jsonpatch
3
- Version: 1.33
3
+ Version: 1.34
4
4
  Summary: Apply JSON-Patches (RFC 6902)
5
5
  Home-page: https://github.com/stefankoegl/python-json-patch
6
6
  Author: Stefan Kögl
@@ -12,26 +12,38 @@ Project-URL: Documentation, https://python-json-patch.readthedocs.org/
12
12
  Project-URL: PyPI, https://pypi.org/pypi/jsonpatch
13
13
  Project-URL: Tests, https://travis-ci.org/stefankoegl/python-json-patch
14
14
  Project-URL: Test Coverage, https://coveralls.io/r/stefankoegl/python-json-patch
15
- Platform: UNKNOWN
16
15
  Classifier: Development Status :: 5 - Production/Stable
17
16
  Classifier: Environment :: Console
18
17
  Classifier: Intended Audience :: Developers
19
18
  Classifier: License :: OSI Approved :: BSD License
20
19
  Classifier: Operating System :: OS Independent
21
20
  Classifier: Programming Language :: Python
22
- Classifier: Programming Language :: Python :: 2
23
- Classifier: Programming Language :: Python :: 2.7
24
21
  Classifier: Programming Language :: Python :: 3
25
- Classifier: Programming Language :: Python :: 3.7
26
- Classifier: Programming Language :: Python :: 3.8
27
- Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Programming Language :: Python :: 3 :: Only
23
+ Classifier: Programming Language :: Python :: 3.10
24
+ Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
28
26
  Classifier: Programming Language :: Python :: Implementation :: CPython
29
27
  Classifier: Programming Language :: Python :: Implementation :: PyPy
30
28
  Classifier: Topic :: Software Development :: Libraries
31
29
  Classifier: Topic :: Utilities
32
- Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*
30
+ Requires-Python: >=3.10
31
+ Description-Content-Type: text/markdown
33
32
  License-File: LICENSE
34
33
  License-File: AUTHORS
34
+ Requires-Dist: jsonpointer>=1.9
35
+ Dynamic: author
36
+ Dynamic: author-email
37
+ Dynamic: classifier
38
+ Dynamic: description
39
+ Dynamic: description-content-type
40
+ Dynamic: home-page
41
+ Dynamic: license
42
+ Dynamic: license-file
43
+ Dynamic: project-url
44
+ Dynamic: requires-dist
45
+ Dynamic: requires-python
46
+ Dynamic: summary
35
47
 
36
48
  python-json-patch
37
49
  =================
@@ -62,4 +74,13 @@ To run external tests (such as those from https://github.com/json-patch/json-pat
62
74
 
63
75
  ./ext_tests.py ../json-patch-tests/tests.json
64
76
 
77
+ Running property-based tests
78
+ ----------------------------
79
+ Property-based tests using [Hypothesis](https://hypothesis.readthedocs.io/)
80
+ are in property_tests.py. Properties that the implementation does not satisfy
81
+ yet are marked as expected failures.
65
82
 
83
+ pip install hypothesis
84
+ python property_tests.py
85
+
86
+ Set `HYPOTHESIS_PROFILE=thorough` to run many more examples.
@@ -26,3 +26,14 @@ Running external tests
26
26
  To run external tests (such as those from https://github.com/json-patch/json-patch-tests) use ext_test.py
27
27
 
28
28
  ./ext_tests.py ../json-patch-tests/tests.json
29
+
30
+ Running property-based tests
31
+ ----------------------------
32
+ Property-based tests using [Hypothesis](https://hypothesis.readthedocs.io/)
33
+ are in property_tests.py. Properties that the implementation does not satisfy
34
+ yet are marked as expected failures.
35
+
36
+ pip install hypothesis
37
+ python property_tests.py
38
+
39
+ Set `HYPOTHESIS_PROFILE=thorough` to run many more examples.
@@ -1,8 +1,6 @@
1
1
  #!/usr/bin/env python
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
- from __future__ import print_function
5
-
6
4
  import sys
7
5
  import json
8
6
  import jsonpatch
@@ -67,7 +67,7 @@ class TestCaseTemplate(unittest.TestCase):
67
67
  # if there is no 'expected' we only verify that applying the patch
68
68
  # does not raise an exception
69
69
  if 'expected' in test:
70
- self.assertEquals(res, test['expected'], test.get('comment', ''))
70
+ self.assertEqual(res, test['expected'], test.get('comment', ''))
71
71
 
72
72
 
73
73
  def make_test_case(tests):
@@ -98,7 +98,7 @@ def get_suite(filenames):
98
98
  # we use the (potentially) patched version of json.load here
99
99
  tests = jsonpatch.json.load(f)
100
100
  cls = make_test_case(tests)
101
- suite.addTest(unittest.makeSuite(cls))
101
+ suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(cls))
102
102
 
103
103
  return suite
104
104
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: jsonpatch
3
- Version: 1.33
3
+ Version: 1.34
4
4
  Summary: Apply JSON-Patches (RFC 6902)
5
5
  Home-page: https://github.com/stefankoegl/python-json-patch
6
6
  Author: Stefan Kögl
@@ -12,26 +12,38 @@ Project-URL: Documentation, https://python-json-patch.readthedocs.org/
12
12
  Project-URL: PyPI, https://pypi.org/pypi/jsonpatch
13
13
  Project-URL: Tests, https://travis-ci.org/stefankoegl/python-json-patch
14
14
  Project-URL: Test Coverage, https://coveralls.io/r/stefankoegl/python-json-patch
15
- Platform: UNKNOWN
16
15
  Classifier: Development Status :: 5 - Production/Stable
17
16
  Classifier: Environment :: Console
18
17
  Classifier: Intended Audience :: Developers
19
18
  Classifier: License :: OSI Approved :: BSD License
20
19
  Classifier: Operating System :: OS Independent
21
20
  Classifier: Programming Language :: Python
22
- Classifier: Programming Language :: Python :: 2
23
- Classifier: Programming Language :: Python :: 2.7
24
21
  Classifier: Programming Language :: Python :: 3
25
- Classifier: Programming Language :: Python :: 3.7
26
- Classifier: Programming Language :: Python :: 3.8
27
- Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Programming Language :: Python :: 3 :: Only
23
+ Classifier: Programming Language :: Python :: 3.10
24
+ Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
28
26
  Classifier: Programming Language :: Python :: Implementation :: CPython
29
27
  Classifier: Programming Language :: Python :: Implementation :: PyPy
30
28
  Classifier: Topic :: Software Development :: Libraries
31
29
  Classifier: Topic :: Utilities
32
- Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*
30
+ Requires-Python: >=3.10
31
+ Description-Content-Type: text/markdown
33
32
  License-File: LICENSE
34
33
  License-File: AUTHORS
34
+ Requires-Dist: jsonpointer>=1.9
35
+ Dynamic: author
36
+ Dynamic: author-email
37
+ Dynamic: classifier
38
+ Dynamic: description
39
+ Dynamic: description-content-type
40
+ Dynamic: home-page
41
+ Dynamic: license
42
+ Dynamic: license-file
43
+ Dynamic: project-url
44
+ Dynamic: requires-dist
45
+ Dynamic: requires-python
46
+ Dynamic: summary
35
47
 
36
48
  python-json-patch
37
49
  =================
@@ -62,4 +74,13 @@ To run external tests (such as those from https://github.com/json-patch/json-pat
62
74
 
63
75
  ./ext_tests.py ../json-patch-tests/tests.json
64
76
 
77
+ Running property-based tests
78
+ ----------------------------
79
+ Property-based tests using [Hypothesis](https://hypothesis.readthedocs.io/)
80
+ are in property_tests.py. Properties that the implementation does not satisfy
81
+ yet are marked as expected failures.
65
82
 
83
+ pip install hypothesis
84
+ python property_tests.py
85
+
86
+ Set `HYPOTHESIS_PROFILE=thorough` to run many more examples.
@@ -5,7 +5,6 @@ README.md
5
5
  ext_tests.py
6
6
  jsonpatch.py
7
7
  requirements.txt
8
- setup.cfg
9
8
  setup.py
10
9
  tests.js
11
10
  tests.py