Commit graph

67 commits

Author SHA1 Message Date
TW
7b75b4f368
sphinx-related work (#554)
fixes #510
2023-08-31 12:56:24 +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
Benjamin Egelund-Müller
e464cb44fa
Nicer error when packing a datetime without tzinfo (#466) 2021-11-16 17:49:47 +09:00
Inada Naoki
44bc2bd439 Update docstring 2020-12-04 17:52:24 +09:00
Inada Naoki
2186455d15
Support datetime. (#394) 2019-12-11 23:48:16 +09:00
Marty B
5fd6119093 Simplify check for bool type (#362) 2019-12-09 19:29:47 +09:00
Inada Naoki
d10f12db8f typo 2019-12-09 18:12:51 +09:00
Inada Naoki
7e9905bdfa
Use new msgpack spec by default. (#386) 2019-12-05 21:34:10 +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
891f2d8743
Drop Python 2 support from _cmsgpack (#376) 2019-11-28 20:23:34 +09:00
Inada Naoki
3146ebd330
Use Py_SIZE() when it is safe (#369) 2019-09-19 13:20:57 +09:00
Marty B
b98b8cab99 Avoid calling __Pyx_GetModuleGlobalName for ExtType (#363) 2019-09-19 01:15:09 +09:00
Felix Schwarz
05ff11dbcc use relative imports (#357)
Some applications use msgpack to store persistent data and require a specific
msgpack version (e.g. borgbackup). Bundling helps in case there is an
(incompatible) version of msgpack in a system-wide install.
2019-05-12 21:44:32 +09:00
INADA Naoki
8b6ce53cce
s/iteritems/items/g (#330) 2018-11-14 21:06:16 +09:00
INADA Naoki
d782464c91
Refactor Cython code (#328)
_msgpack -> _cmsgpack
2018-11-14 16:35:37 +09:00
INADA Naoki
07f0beeabb
Remove deprecated exception classes (#323) 2018-11-12 02:19:01 +09:00
INADA Naoki
1bf62ba6f8
PendingDeprecationWarning -> DeprecationWarning (#321) 2018-11-09 21:39:25 +09:00
INADA Naoki
9e210bfc1a
Add Packer.buffer() (#320) 2018-11-09 20:55:13 +09:00
INADA Naoki
2644cbdcb7
Use cython's cast for converting encoding and errors (#279)
It is little faster on Python 3 because we can skip temporary bytes object
2018-02-05 11:44:17 +09:00
INADA Naoki
9fdb83719d
Undeprecate unicode_errors (#278) 2018-02-05 02:19:48 +09:00
Andrew Rabert
a0ba076c35 Fix encoding and unicode_errors (#277)
Previously, unicode_errors was either set to NULL or to
the result of PyBytes_AsString. This restores that behavior while also
keeping the existing NULL default behavior.
Original defaults were restored to keep API compatibility until these
deprecated options are finally removed.
2018-02-03 10:34:42 +09:00
INADA Naoki
d9ec8fc905
Packer.pack() reset buffer on exception (#274)
fixes #210
2018-01-11 23:50:41 +09:00
INADA Naoki
60ef3879d7
packer: Use PyUnicode_AsUTF8AndSize() for utf-8 (#272) 2018-01-11 19:41:05 +09:00
INADA Naoki
5534d0c7af
Add raw_as_bytes option to Unpacker. (#265) 2018-01-11 17:02:41 +09:00
INADA Naoki
0112957bcf
Remove FutureWarning about use_bin_type option (#271) 2018-01-10 02:54:59 +09:00
INADA Naoki
d0d3a40389
Warn about future use_bin_type change (#264) 2018-01-06 02:07:39 +09:00
jfolz
f0f2c0b397 Packer accepts bytearray objects (#229) 2017-05-18 20:03:15 +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
INADA Naoki
d6254abc8a Use AppVeyor to build windows wheel (#188)
* Add AppVeyor support to build windows wheel
* Fix test_limits on 32bit environments
* Ignore Python35-x64 test fail for now
  Should be fixed in next version.
2016-07-21 19:18:48 +09:00
INADA Naoki
a5c8bafad4 Remove unused import (#190) 2016-05-05 02:46:10 +09:00
INADA Naoki
63e23d37f9 travis: Use docker to test 32bit environment (#189)
* travis: testing matrix.include feature to use docker
* Add test script for 32bit
* Fix OverflowError in 32bit Environment
2016-05-05 02:07:46 +09: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
ceb9635a3f Use AppVeyor to build windows wheel (#188)
* Add AppVeyor support to build windows wheel
* Fix test_limits on 32bit environments
* Ignore Python35-x64 test fail for now
  Should be fixed in next version.
2016-05-03 11:58:28 +09:00
INADA Naoki
6b113a6fb3 Use Python's memory API (#185) 2016-04-30 17:07:14 +09:00
palaviv
d44063119b changed more ValueErrors to PackValueError 2016-02-12 15:36:48 +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
folz
31adc5a3c0 Support packing memoryview objects 2016-01-25 13:25:10 +01:00
INADA Naoki
8036cb4e0e Merge pull request #158 from methane/feature/strict-typecheck
Packer: check type strictly
2016-01-25 11:37:07 +09:00
Sadayuki Furuhashi
83424bd7b3 Fix wrong 'dict is too large' on unicode string 2016-01-11 13:57:33 -08:00
INADA Naoki
628c519187 strict type check for ext type 2015-11-10 03:41:09 +09:00
INADA Naoki
9b673279d3 strict_types should be last argument 2015-11-10 03:37:54 +09:00
INADA Naoki
cbdf3c339a s/precise_mode/strict_types/ 2015-11-10 03:30:11 +09:00
INADA Naoki
e9a47cbd35 Merge branch 'master' of https://github.com/faerot/msgpack-python into pramukta-default_function_on_int_overflow 2015-11-10 01:52:52 +09:00
INADA Naoki
a1317b604f refactor 2015-11-09 02:34:17 +09:00
Pramukta Kumar
6f02d252e1 corresponding change to cython implementation 2015-03-17 15:16:17 -04:00
INADA Naoki
9624a2aca3 Fix build failuer for Python 2.7 on Windows.
Remove int8_t usage.
2015-01-07 12:10:42 +09:00
faerot
b877ce2afa precise_mode instead of distinguish_tuple
When precise_mode flag is set, serialization will be as precise as
possible - type checks will be exact (type(..) is ... instead of
isinstance(..., ...) and tuple will be treated as undefined type. This
mode is to make accurate object serialization possible.
2014-05-22 16:45:26 +03:00