-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
45 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,23 +32,20 @@ | |
|
||
""" Identify specific nodes in a JSON document (RFC 6901) """ | ||
|
||
|
||
# Will be parsed by setup.py to determine package metadata | ||
__author__ = 'Stefan Kögl <[email protected]>' | ||
__version__ = '3.0.0' | ||
__website__ = 'https://github.com/stefankoegl/python-json-pointer' | ||
__license__ = 'Modified BSD License' | ||
|
||
|
||
|
||
try: | ||
from collections.abc import Mapping, Sequence | ||
except ImportError: # Python 3 | ||
from collections import Mapping, Sequence | ||
|
||
from itertools import tee, chain | ||
import re | ||
import copy | ||
import re | ||
from itertools import tee, chain | ||
|
||
_nothing = object() | ||
|
||
|
@@ -298,7 +295,7 @@ def join(self, suffix): | |
suffix_parts = suffix | ||
try: | ||
return JsonPointer.from_parts(chain(self.parts, suffix_parts)) | ||
except: | ||
except: # noqa E722 | ||
raise JsonPointerException("Invalid suffix") | ||
|
||
def __truediv__(self, suffix): # Python 3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ wheel | |
twine>=5.1.0 | ||
setuptools>=70 | ||
coverage | ||
flake8==7.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
[bdist_wheel] | ||
universal = 1 | ||
|
||
[flake8] | ||
max-line-length = 120 | ||
exclude = .git,.tox,dist,doc,*egg,build,.venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#!/usr/bin/env python | ||
|
||
from setuptools import setup | ||
import re | ||
import io | ||
import os.path | ||
import re | ||
|
||
from setuptools import setup | ||
|
||
dirname = os.path.dirname(os.path.abspath(__file__)) | ||
filename = os.path.join(dirname, 'jsonpointer.py') | ||
|
@@ -14,7 +15,7 @@ | |
PACKAGE = 'jsonpointer' | ||
|
||
MODULES = ( | ||
'jsonpointer', | ||
'jsonpointer', | ||
) | ||
|
||
AUTHOR_EMAIL = metadata['author'] | ||
|
@@ -26,10 +27,8 @@ | |
# Extract name and e-mail ("Firstname Lastname <[email protected]>") | ||
AUTHOR, EMAIL = re.match(r'(.*) <(.*)>', AUTHOR_EMAIL).groups() | ||
|
||
|
||
with open('README.md') as readme: | ||
long_description = readme.read() | ||
|
||
long_description = readme.read() | ||
|
||
CLASSIFIERS = [ | ||
'Development Status :: 5 - Production/Stable', | ||
|
@@ -64,4 +63,4 @@ | |
scripts=['bin/jsonpointer'], | ||
classifiers=CLASSIFIERS, | ||
python_requires='>=3.7', | ||
) | ||
) |