* Rectify type hints of loads() and Decoder.__call__()
* Ensure Validator receives valid UTF-8 bytes/bytearray arguments
* Recompute comparison table with latest versions of other libraries, using
Python 3.13
* Typing stubs: specify default value for stream argument of
Encoder.__call__()
- Refreshed rapidjson-system.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-rapidjson?expand=0&rev=30
26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
Index: python-rapidjson-1.22/setup.py
|
|
===================================================================
|
|
--- python-rapidjson-1.22.orig/setup.py
|
|
+++ python-rapidjson-1.22/setup.py
|
|
@@ -29,19 +29,7 @@ if sys.version_info < (3, 6):
|
|
|
|
ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
-rj_include_dir = './rapidjson/include'
|
|
-
|
|
-for idx, arg in enumerate(sys.argv[:]):
|
|
- if arg.startswith('--rj-include-dir='):
|
|
- sys.argv.pop(idx)
|
|
- rj_include_dir = arg.split('=', 1)[1]
|
|
- break
|
|
-else:
|
|
- if not os.path.isdir(os.path.join(ROOT_PATH, 'rapidjson', 'include')):
|
|
- raise RuntimeError("RapidJSON sources not found: if you cloned the git"
|
|
- " repository, you should initialize the rapidjson submodule"
|
|
- " as explained in the README.rst; in all other cases you may"
|
|
- " want to report the issue.")
|
|
+rj_include_dir = '/usr/include/rapidjson'
|
|
|
|
# Automatically updated by bump-my-version at release time
|
|
VERSION = '1.22'
|