Commit graph

435 commits

Author SHA1 Message Date
Inada Naoki
4587393b1a
release v1.1.0 (#622) 2024-09-10 01:58:00 +09:00
Thomas A Caswell
20a2b8eaa2
use PyLong_* instead of PyInt_* (#620)
9af421163cb8081414be347038dee7a82b29e8dd in Cython removed back-compatibility `#define`.
2024-08-21 14:56:00 +09:00
Inada Naoki
9d0c7f2f9c
Release v1.1.0rc2 (#619) 2024-08-19 20:36:26 +09:00
Inada Naoki
9cea8b6da2
Release v1.1.0rc1 (#609) 2024-05-07 20:49:23 +09:00
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
e1068087e0
cython: better exception handling (#606)
- use `except -1` instead of manual error handling
- use `PyUnicode_AsUTF8AndSize()`
- use `_pack()` and `_pack_inner()` instead of `while True:`
2024-05-06 02:13:12 +09:00
Inada Naoki
72e65feb0e
packer: add buf_size option (#604)
And change the default buffer size to 256KiB.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
Co-authored-by: Rodrigo Tobar <rtobar@icrar.org>
2024-05-06 00:49:12 +09:00
Inada Naoki
a97b31437d
Remove unused code (#603) 2024-05-06 00:13:59 +09:00
Inada Naoki
52f8bc2e55
implement buffer protocol (#602)
Fix #479
2024-05-05 23:14:27 +09:00
Inada Naoki
3e9a2a7419
Stop using c++ (#600)
Python 3.13a6+ & C++ & Cython cause compile error on some compilers.
2024-05-04 16:01: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
Inada Naoki
9aedf8ed7f
Release v1.0.8 (#583) 2024-03-01 20:35:28 +09:00
Inada Naoki
2982e9ff72
release v1.0.7 (#569) 2023-09-28 17:31:52 +09:00
Inada Naoki
ecf03748c7
remove inline macro for msvc (#567) 2023-09-28 15:03:16 +09:00
Inada Naoki
b1b0edaeed
release v1.0.6 (#564) 2023-09-21 14:58:37 +09:00
Inada Naoki
4e10c10aaa
prepare for 1.0.6rc1 (#557) 2023-09-13 18:40:04 +09:00
TW
423c6df265
move project metadata to pyproject.toml (#555)
also: replace flake8 by ruff.
2023-09-05 10:51:04 +09:00
TW
7b75b4f368
sphinx-related work (#554)
fixes #510
2023-08-31 12:56:24 +09:00
Inada Naoki
7cfced5150 start v1.0.6 development 2023-08-09 18:09:42 +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
4c55f809fe
Release v1.0.5 (#534) 2023-03-09 00:43:28 +09:00
Anthon van der Neut
dcb775031c
minor type in exception message (#533)
interger -> integer
2023-03-05 23:45:38 +09:00
Inada Naoki
1008229553
Release v1.0.5rc1 (#528) 2023-01-18 19:47:15 +09:00
Inada Naoki
b82d0b62f1
fallback: Fix packing multidim memoryview (#527)
Fix #526
2023-01-18 19:13:44 +09:00
Inada Naoki
c3995669f1 Remove unused code 2023-01-18 08:08:58 +00:00
Inada Naoki
edca770071
Fix build error caused by ntohs, ntohl (#514) 2022-08-08 15:08:40 +09:00
Jakub Kulík
9d45926a59
Usef __BYTE_ORDER__ instead of __BYTE_ORDER (#513)
__BYTE_ORDER__ is common predefined macro available on at least gcc and clang.
__BYTE_ORDER is macro defined in platform specific headers.
2022-08-02 13:19:56 +09:00
Inada Naoki
b5acfd5383
Release v1.0.4 (#509) 2022-06-03 13:46:51 +09:00
Inada Naoki
a34dc945bf 1.0.4rc1 2022-05-25 10:00:57 +09:00
Inada Naoki
500a238028
Fix Unpacker max_buffer_length handling (#506) 2022-05-24 19:46:51 +09:00
Victor Stinner
849c806381
Use PyFloat_Pack8() on Python 3.11a7 (#499)
Python 3.11a7 adds public functions:

* PyFloat_Pack4(), PyFloat_Pack8()
* PyFloat_Unpack4(), PyFloat_Unpack8()

https://bugs.python.org/issue46906
2022-03-14 11:23:11 +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
Inada Naoki
89ea57747e
Don't define __*_ENDIAN__ macro on Unix. (#495) 2022-01-19 14:42:28 +09:00
Inada Naoki
6129789e9f
Release v1.0.3 (#491) 2021-11-24 16:18:17 +09:00
Inada Naoki
e29b423de7 black 2021-11-17 11:03:06 +09:00
Inada Naoki
724e6200fd 1.0.3rc1 2021-11-16 17:52:01 +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
9b84e490e7 Fix black formatting 2021-11-16 14:53:08 +09:00
Paul Melis
09187421eb
Improve exception message relating to strict_map_key (#485) 2021-11-16 14:47:40 +09:00
Vladimir Matveev
38dba9634e
cimport uint64_t instead of using ctypedef (#473) 2021-03-19 06:35:54 +09:00
Alexander Shadchin
44fd577705
Remove unused PyObject_AsReadBuffer definition (#468)
Also "old" buffer API was removed in Python 3.10
2021-02-27 09:30:46 +09:00
Andrey Bienkowski
38357b928a
Fix error formatting (#463) 2021-02-26 11:39:36 +09:00
Inada Naoki
1e728a2e0b
fix docstring (#459) 2021-02-12 16:20:14 +09:00
Guy Tuval
3b71818bb0
Refactor fallback read header (#441) 2021-01-02 15:39:37 +09:00
Inada Naoki
c0516c603f v1.0.2 2020-12-18 16:43:04 +09:00
Inada Naoki
753b3706d8
Fix overflow in unpacking timestamp to datetime (#452) 2020-12-18 14:21:27 +09:00
Inada Naoki
d893697eab v1.0.1 2020-12-11 19:16:14 +09:00