Skip to content

Commit 41cfece

Browse files
committed
Let dump() write str instead of bytes
1 parent da6506e commit 41cfece

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Changelog
22

3-
**1.7.0 (2025-10-02)**
3+
**2.0.0 (2025-10-02)**
44

55
* Update for Python 3.14 and require at least 3.8 (by Edgar Ramírez, [#112](https://github.com/Kijewski/pyjson5/pull/112))
66
* Update to Unicode 17.0.0 ([#117](https://github.com/Kijewski/pyjson5/pull/117))
77
* Fix typing for `_SupportsRead` ([#118](https://github.com/Kijewski/pyjson5/pull/118))
8+
* Let `dump()` write `str` instead of `bytes` ([#119](https://github.com/Kijewski/pyjson5/pull/119))
89

910
**1.6.9 (2025-05-12)**
1011

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ src/_escape_dct.hpp: scripts/make_escape_dct.py
2929
python $< $@
3030

3131
pyjson5.cpp: pyjson5.pyx $(wildcard src/*.pyx) $(wildcard src/*.hpp)
32-
python -m cython -f -o $@ $<
32+
python -m cython --line-directives --cplus --force --output-file $@ $<
3333

3434
prepare: pyjson5.cpp ${FILES}
3535

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
autosummary_generate = True
4343

4444
intersphinx_mapping = {
45-
'python': ('https://docs.python.org/3.13', None),
45+
'python': ('https://docs.python.org/3.14', None),
4646
}
4747

4848
graphviz_output_format = 'svg'

requirements-readthedocs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# keep synchronous to pyproject.toml
22
# keep synchronous to src/VERSION.inc
3-
pyjson5 == 1.6.9
3+
pyjson5 == 2.0.0
44

55
# keep synchronous to requirements-dev.txt
66
docutils == 0.21.*

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[metadata]
22
# keep synchronous to requirements-readthedocs.txt
33
# keep synchronous to src/VERSION.inc
4-
version = 1.6.9
4+
version = 2.0.0
55

66
name = pyjson5
77
description = JSON5 serializer and parser for Python 3 written in Cython.

src/VERSION.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"1.6.9"
1+
"2.0.0"

src/_legacy.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ def dump(object obj, object fp, **kw):
9797
kw
9898
Silently ignored.
9999
'''
100-
encode_io(obj, fp)
100+
encode_io(obj, fp, supply_bytes=False)

0 commit comments

Comments
 (0)