Inada Naoki
33e0e86f4e
Cleanup code and pyproject ( #608 )
...
* use isort
* fallback: use BytesIO instead of StringIO. We had dropped Python 2
already.
2024-05-06 11:46:31 +09:00
Inada Naoki
2eca765533
use ruff instead of black ( #598 )
2024-05-03 15:17:54 +09:00
TW
423c6df265
move project metadata to pyproject.toml ( #555 )
...
also: replace flake8 by ruff.
2023-09-05 10:51:04 +09:00
Evgeny Markov
c8d0751fe3
Drop Python 3.6 support ( #543 )
...
The following steps have been taken:
1. Black was updated to latest version. The code has been formatted with
the new version.
2. The pyupgrade utility is installed. This helped to remove all the
code that was needed to support Python < 3.7.
Fix #541 .
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2023-05-24 01:41:08 +09:00
sblondon
feec06206c
Drop python2 support ( #519 )
...
The PR removes python2 references and cases.
Close #518
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2023-05-21 16:26:39 +09:00
Inada Naoki
9d79351e99
Add some test for timestamp ( #403 )
2020-02-06 22:11:04 +09:00
Inada Naoki
d8e3cf0563
Make strict_map_key default to True ( #392 )
2019-12-06 22:23:15 +09:00
Inada Naoki
10e5e39ff9
blacken test
2019-12-05 18:51:45 +09:00
Inada Naoki
83ebb63c44
Ressurect unicode_errors of the Packer. ( #379 )
2019-12-03 20:53:11 +09:00
Inada Naoki
e1ed0044bf
Remove encoding/unicode_errors options from Packer ( #378 )
2019-12-03 18:54:01 +09:00
Inada Naoki
464fe277e1
Remove pytest warnings
2019-01-25 20:52:57 +09:00
INADA Naoki
9e210bfc1a
Add Packer.buffer() ( #320 )
2018-11-09 20:55:13 +09:00
INADA Naoki
5569a4efcd
s/raw_as_bytes/raw/g ( #276 )
...
fixes #273
2018-01-12 19:22:36 +09:00
INADA Naoki
5534d0c7af
Add raw_as_bytes option to Unpacker. ( #265 )
2018-01-11 17:02:41 +09:00
Hugo
0fc4ee98be
Remove code and tests for unsupported Python 2.6 ( #250 )
2017-10-12 16:27:39 +09:00
jfolz
f0f2c0b397
Packer accepts bytearray objects ( #229 )
2017-05-18 20:03:15 +09:00
TW
e3fea94509
fix typos and other cosmetic issues ( #214 )
...
cosmetic issues:
- reST headlines' underline length needs to match the headline length
(looks like somebody is / was using a proportional font)
- Cython code lines do not need to be terminated with a semicolon
- always use triple-double-quotes for docstrings
2017-01-11 12:04:23 +09:00
INADA Naoki
0c22e775c9
Remove six completely.
2014-02-15 22:36:52 +09:00
INADA Naoki
dee2d87d41
six.BytesIO => io.BytesIO
2014-02-15 22:16:01 +09:00
INADA Naoki
213f7888c3
Remove too strict type check from test.
2014-02-14 09:26:46 +09:00
YAMAMOTO Takashi
e250b89920
more tests
2013-06-03 13:54:00 +09:00
INADA Naoki
22920baae6
Fix minor bugs and tuning unpacking dict.
2013-02-03 00:20:00 +09:00
INADA Naoki
593c832ab0
Use py.test instead of nosetests.
2012-12-29 11:24:25 +09:00
INADA Naoki
4adc6f194d
Add autoreset
option to Packer.
2012-12-10 21:47:18 +09:00
INADA Naoki
537a2ab3f2
Add Packer.pack_pairs
.
2012-12-10 21:26:41 +09:00
INADA Naoki
d5f99959cc
Fix some test failure.
2012-10-01 01:34:58 +09:00
INADA Naoki
e016b3dca0
Merge remote-tracking branch 'jnothman/read_size_cpp'
...
Conflicts:
msgpack/_msgpack.pyx
setup.py
2012-10-01 01:31:58 +09:00
Joel Nothman
9d9c3eecb8
Packer.pack_array/map_header to correspond to read functions
2012-09-25 01:19:10 +10:00
INADA Naoki
477d3b152f
Fix warnings.
2012-09-24 03:08:13 +09:00
INADA Naoki
e381032641
Support object_pairs_hook
...
Merge remote-tracking branch 'jnothman/object_pairs_hook' into 0.2-maint
Conflicts:
msgpack/_msgpack.pyx
test/test_pack.py
test/test_sequnpack.py
2012-09-24 03:05:39 +09:00
INADA Naoki
c280e58988
Fix warnings in tests.
2012-09-24 02:39:02 +09:00
INADA Naoki
d503788e95
Warn when use_list is not specified.
...
Conflicts:
test/test_sequnpack.py
2012-09-24 02:38:54 +09:00
Joel Nothman
77942514db
Implement object_pairs_hook
2012-09-23 19:37:28 +10:00
INADA Naoki
4d643894a1
Support packing subclass of dict.
2012-09-23 02:13:32 +09:00
INADA Naoki
51335bbee4
packb supports use_single_float option.
2012-09-21 14:15:30 +09:00
INADA Naoki
2122b46b84
Fix using deprecated api in tests.
2012-07-04 14:58:36 +09:00
INADA Naoki
636f4529aa
Fix tests to pass.
2012-06-19 14:20:56 +09:00
INADA Naoki
0b38e86534
unify tests for py2 and py3
2012-06-19 13:55:14 +09:00
INADA Naoki
60762747b9
Fix error in tests.
2011-08-22 01:57:23 +09:00
tailhook
8c3c8a250b
Fixed encoding
argument for unpacker in Python
2011-08-22 01:52:45 +09:00
inada-n
ff594d71dd
(python) make test pass with Python 2.5
2011-06-01 18:30:43 +09:00
tailhook
752e3d1b78
Implemented encoding for strings
...
* Packer by default uses `utf-8` encoding by default
* Unpacker uses `None` by default, so no decoding is done
* Both pack and unpack has `encoding` and `unicode_errors` arguments,
if `encoding` is `None` no encoding/decoding is done, otherwise
it is python codec. `unicode_errors` is supplied as `errors`
parameter to codec
2011-04-15 18:39:17 +03:00
Naoki INADA
472f5be977
Fix tests.
2009-12-17 17:58:41 +09:00
Naoki INADA
ca0bda01f1
Add some test cases.
2009-06-29 09:31:43 +09:00