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
e0f0e145f1
better error checks ( #607 )
...
* check buffer exports
* add error messages
2024-05-06 03:33:48 +09:00
Inada Naoki
2eca765533
use ruff instead of black ( #598 )
2024-05-03 15:17:54 +09:00
hakan akyürek
e77672200b
Avoid using floating points during timestamp-datetime conversions ( #591 )
2024-04-20 07:46:30 +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
b82d0b62f1
fallback: Fix packing multidim memoryview ( #527 )
...
Fix #526
2023-01-18 19:13:44 +09:00
Inada Naoki
500a238028
Fix Unpacker max_buffer_length handling ( #506 )
2022-05-24 19:46:51 +09:00
Inada Naoki
cb50b2081b
Update setuptools and black ( #498 )
...
* Use setuptools
* Use black==22.1.0
2022-03-03 12:29:55 +09:00
Benjamin Egelund-Müller
e464cb44fa
Nicer error when packing a datetime without tzinfo ( #466 )
2021-11-16 17:49:47 +09:00
Andrey Bienkowski
4b0819dca9
Remove redundant code ( #460 )
2021-02-16 22:38:06 +09:00
Inada Naoki
753b3706d8
Fix overflow in unpacking timestamp to datetime ( #452 )
2020-12-18 14:21:27 +09:00
Peter Fischer
8fb709f2e0
Fix datetime before epoch on windows in cython implementation ( #436 )
...
Cython implementation still used datetime.from_timestamp method, which does not work on windows.
Update the cython implementation to use utc time and delta and add a regression test to highlight the issue.
2020-07-30 23:48:51 +09:00
jfolz
c1b1a23f62
Fix Unpacker.tell() ( #427 )
...
Fixes #426 .
Co-authored-by: folz <joachim.folz@dfki.de>
2020-06-08 12:14:50 +09:00
Inada Naoki
9d79351e99
Add some test for timestamp ( #403 )
2020-02-06 22:11:04 +09:00
Inada Naoki
887d3a7d22
Refine Timestamp APIs ( #395 )
2019-12-12 19:43:59 +09:00
Inada Naoki
2186455d15
Support datetime. ( #394 )
2019-12-11 23:48:16 +09:00
Inada Naoki
d8e3cf0563
Make strict_map_key default to True ( #392 )
2019-12-06 22:23:15 +09:00
Inada Naoki
f6f6f328eb
Fix fallback Unpacker.read() ( #388 )
...
Fixes #352 .
2019-12-06 21:16:27 +09:00
Inada Naoki
7e9905bdfa
Use new msgpack spec by default. ( #386 )
2019-12-05 21:34:10 +09:00
Inada Naoki
de320488ae
fallback: Remove old buffer protocol support ( #384 )
2019-12-05 20:47:20 +09:00
Inada Naoki
10e5e39ff9
blacken test
2019-12-05 18:51:45 +09:00
Inada Naoki
641406902e
Add Timestamp support ( #382 )
2019-12-05 18:29:15 +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
28b5f46a34
Auto limit configuration ( #342 )
2019-01-24 18:46:39 +09:00
Inada Naoki
ab789813b8
Fix test
2018-11-30 11:36:15 +09:00
Inada Naoki
e76091a82c
Fix test
2018-11-29 22:38:22 +09:00
Inada Naoki
e9086a34e4
Add strict_map_key option to unpacker
2018-11-29 22:29:38 +09:00
INADA Naoki
44254dd35e
Add StackError and FormatError ( #331 )
2018-11-20 13:12:49 +09:00
INADA Naoki
39f8aa78c7
Remove deprecated write_bytes option ( #322 )
2018-11-12 02:33:31 +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
Lorenzo Bolla
deeda31a88
Add unittests to document serialisation of tuples ( #246 )
...
Also, fix formatting of error message in case of tuple.
See https://github.com/msgpack/msgpack-python/issues/245
2017-09-30 16:23:55 +09:00
jfolz
f0f2c0b397
Packer accepts bytearray objects ( #229 )
2017-05-18 20:03:15 +09:00
jfolz
a8d9162ca6
Unpacker: add tell() ( #227 )
2017-04-30 02:33:20 +09:00
INADA Naoki
2481c64cf1
Merge branch 'release-0.4'
2017-01-12 18:17:00 +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
folz
2b63e9fbbb
enable unpacking from memoryview
2016-06-13 15:37:33 +02:00
INADA Naoki
53f47ef55d
Remove double underscore prefix
2016-05-05 00:49:48 +09:00
folz
a91d5c538e
add lower bound tests for memoryviews
2016-05-04 12:03:37 +02:00
folz
0b55989f0b
more descriptive test names
2016-05-04 10:04:09 +02:00
folz
0ec2e3534f
fix problems associated with packing memoryviews
...
fix wrong length when packing multibyte memoryviews in fallback
add tests for memoryviews of different types and sizes and check contents of packed data
2016-05-03 16:55:14 +02:00
INADA Naoki
6e36476239
remove too much parameterized tests
2016-02-14 14:29:34 +09:00
palaviv
e15085db03
removed MsgpackBaseException
2016-02-12 15:39:50 +02:00
palaviv
7d2d46effc
msgpack pack and unpack throws only exception that inherit from MsgpackBaseException. cython and fallback throws same exceptions
2016-02-12 11:00:39 +02:00