Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: msgpack/msgpack-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.1.0rc1
Choose a base ref
...
head repository: msgpack/msgpack-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 6 commits
  • 6 files changed
  • 3 contributors

Commits on Aug 19, 2024

  1. Copy the full SHA
    6e11368 View commit details
  2. Copy the full SHA
    9e26d80 View commit details
  3. Release v1.1.0rc2 (#619)

    methane authored Aug 19, 2024
    Copy the full SHA
    9d0c7f2 View commit details

Commits on Aug 21, 2024

  1. use PyLong_* instead of PyInt_* (#620)

    9af421163cb8081414be347038dee7a82b29e8dd in Cython removed back-compatibility `#define`.
    tacaswell authored Aug 21, 2024
    Copy the full SHA
    20a2b8e View commit details

Commits on Sep 9, 2024

  1. release v1.1.0 (#622)

    methane authored Sep 9, 2024
    Copy the full SHA
    4587393 View commit details

Commits on Oct 8, 2024

  1. Copy the full SHA
    0eeabfb View commit details
Showing with 29 additions and 15 deletions.
  1. +4 −6 .github/workflows/wheel.yml
  2. +16 −0 ChangeLog.rst
  3. +2 −2 msgpack/__init__.py
  4. +5 −5 msgpack/unpack.h
  5. +1 −0 pyproject.toml
  6. +1 −2 requirements.txt
10 changes: 4 additions & 6 deletions .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
@@ -32,21 +32,19 @@ jobs:
make cython
- name: Build
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@v2.20.0
env:
CIBW_TEST_REQUIRES: "pytest"
CIBW_TEST_COMMAND: "pytest {package}/test"
CIBW_ARCHS_LINUX: auto aarch64
CIBW_ARCHS_MACOS: x86_64 universal2 arm64
CIBW_SKIP: pp*
CIBW_SKIP: "pp* cp38-macosx_*"

- name: Build pure Python wheel
- name: Build sdist
if: runner.os == 'Linux'
env:
MSGPACK_PUREPYTHON: "1"
run: |
pip install build
python -m build -w -o wheelhouse
python -m build -s -o wheelhouse
- name: Upload Wheels to artifact
uses: actions/upload-artifact@v4
16 changes: 16 additions & 0 deletions ChangeLog.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
1.1.0
=====

Release Date: 2024-09-10

* use ``PyLong_*`` instead of ``PyInt_*`` for compatibility with
future Cython. (#620)

1.1.0rc2
========

Release Date: 2024-08-19

* Update Cython to 3.0.11 for better Python 3.13 support.
* Update cibuildwheel to 2.20.0 to build Python 3.13 wheels.

1.1.0rc1
========

4 changes: 2 additions & 2 deletions msgpack/__init__.py
Original file line number Diff line number Diff line change
@@ -4,8 +4,8 @@
from .exceptions import * # noqa: F403
from .ext import ExtType, Timestamp

version = (1, 1, 0, "rc1")
__version__ = "1.1.0rc1"
version = (1, 1, 0)
__version__ = "1.1.0"


if os.environ.get("MSGPACK_PUREPYTHON"):
10 changes: 5 additions & 5 deletions msgpack/unpack.h
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ static inline msgpack_unpack_object unpack_callback_root(unpack_user* u)

static inline int unpack_callback_uint16(unpack_user* u, uint16_t d, msgpack_unpack_object* o)
{
PyObject *p = PyInt_FromLong((long)d);
PyObject *p = PyLong_FromLong((long)d);
if (!p)
return -1;
*o = p;
@@ -61,7 +61,7 @@ static inline int unpack_callback_uint8(unpack_user* u, uint8_t d, msgpack_unpac

static inline int unpack_callback_uint32(unpack_user* u, uint32_t d, msgpack_unpack_object* o)
{
PyObject *p = PyInt_FromSize_t((size_t)d);
PyObject *p = PyLong_FromSize_t((size_t)d);
if (!p)
return -1;
*o = p;
@@ -74,7 +74,7 @@ static inline int unpack_callback_uint64(unpack_user* u, uint64_t d, msgpack_unp
if (d > LONG_MAX) {
p = PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG)d);
} else {
p = PyInt_FromLong((long)d);
p = PyLong_FromLong((long)d);
}
if (!p)
return -1;
@@ -84,7 +84,7 @@ static inline int unpack_callback_uint64(unpack_user* u, uint64_t d, msgpack_unp

static inline int unpack_callback_int32(unpack_user* u, int32_t d, msgpack_unpack_object* o)
{
PyObject *p = PyInt_FromLong(d);
PyObject *p = PyLong_FromLong(d);
if (!p)
return -1;
*o = p;
@@ -107,7 +107,7 @@ static inline int unpack_callback_int64(unpack_user* u, int64_t d, msgpack_unpac
if (d > LONG_MAX || d < LONG_MIN) {
p = PyLong_FromLongLong((PY_LONG_LONG)d);
} else {
p = PyInt_FromLong((long)d);
p = PyLong_FromLong((long)d);
}
*o = p;
return 0;
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Intended Audience :: Developers",
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# Also declared in pyproject.toml, if updating here please also update there.
Cython~=3.0.10
Cython~=3.0.11