Skip to content

Commit 9297e5b

Browse files
author
kaori-seasons
committed
Merge remote-tracking branch 'upstream/main' into issue-2722
2 parents 3461cf2 + 1e16e55 commit 9297e5b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+4103
-1825
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ jobs:
288288
name: Rust CI
289289
strategy:
290290
matrix:
291-
os: [ubuntu-latest, macos-13, macos-14] # macos-13: x86, macos-14: arm64
291+
os: [ubuntu-latest, macos-14, macos-latest] # macos-14: arm64
292292
runs-on: ${{ matrix.os }}
293293
timeout-minutes: 45
294294
steps:
@@ -316,7 +316,7 @@ jobs:
316316
name: C++ CI
317317
strategy:
318318
matrix:
319-
os: [ubuntu-latest, macos-13, macos-14, windows-2022] # macos-13: x86, macos-14: arm64
319+
os: [ubuntu-latest, macos-14, macos-latest, windows-2022] # macos-13: x86, macos-14: arm64
320320
runs-on: ${{ matrix.os }}
321321
steps:
322322
- uses: actions/checkout@v5

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,14 +389,14 @@ Fory python has two implementations for the protocol:
389389

390390
Code structure:
391391

392-
- `python/pyfory/_serialization.pyx`: Core serialization logic and entry point for cython mode based on `xlang serialization format`
392+
- `python/pyfory/serialization.pyx`: Core serialization logic and entry point for cython mode based on `xlang serialization format`
393393
- `python/pyfory/_fory.py`: Serialization entry point for pure python mode based on `xlang serialization format`
394394
- `python/pyfory/_registry.py`: Type registry, resolution and serializer dispatch for pure python mode, which is also used by cython mode. Cython mode use a cache to reduce invocations to this module.
395395
- `python/pyfory/serializer.py`: Serializers for non-internal types
396396
- `python/pyfory/includes`: Cython headers for `c++` functions and classes.
397397
- `python/pyfory/resolver.py`: resolving shared/circular references when ref tracking is enabled in pure python mode
398398
- `python/pyfory/format`: Fory row format encoding and decoding, arrow columnar format interoperation
399-
- `python/pyfory/_util.pyx`: Buffer for reading/writing data, string utilities. Used by `_serialization.pyx` and `python/pyfory/format` at the same time.
399+
- `python/pyfory/_util.pyx`: Buffer for reading/writing data, string utilities. Used by `serialization.pyx` and `python/pyfory/format` at the same time.
400400

401401
#### Go
402402

BUILD

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ pyx_library(
5151
)
5252

5353
pyx_library(
54-
name = "_serialization",
54+
name = "serialization",
5555
srcs = glob([
5656
"python/pyfory/includes/*.pxd",
5757
"python/pyfory/_util.pxd",
58-
"python/pyfory/_serialization.pyx",
58+
"python/pyfory/serialization.pyx",
5959
"python/pyfory/__init__.py",
6060
]),
6161
cc_kwargs = dict(
@@ -96,7 +96,7 @@ genrule(
9696
":python/pyfory/_util.so",
9797
":python/pyfory/lib/mmh3/mmh3.so",
9898
":python/pyfory/format/_format.so",
99-
":python/pyfory/_serialization.so",
99+
":python/pyfory/serialization.so",
100100
],
101101
outs = [
102102
"cp_fory_py_generated.out",
@@ -111,12 +111,12 @@ genrule(
111111
cp -f $(location python/pyfory/_util.so) "$$WORK_DIR/python/pyfory/_util.pyd"
112112
cp -f $(location python/pyfory/lib/mmh3/mmh3.so) "$$WORK_DIR/python/pyfory/lib/mmh3/mmh3.pyd"
113113
cp -f $(location python/pyfory/format/_format.so) "$$WORK_DIR/python/pyfory/format/_format.pyd"
114-
cp -f $(location python/pyfory/_serialization.so) "$$WORK_DIR/python/pyfory/_serialization.pyd"
114+
cp -f $(location python/pyfory/serialization.so) "$$WORK_DIR/python/pyfory/serialization.pyd"
115115
else
116116
cp -f $(location python/pyfory/_util.so) "$$WORK_DIR/python/pyfory"
117117
cp -f $(location python/pyfory/lib/mmh3/mmh3.so) "$$WORK_DIR/python/pyfory/lib/mmh3"
118118
cp -f $(location python/pyfory/format/_format.so) "$$WORK_DIR/python/pyfory/format"
119-
cp -f $(location python/pyfory/_serialization.so) "$$WORK_DIR/python/pyfory"
119+
cp -f $(location python/pyfory/serialization.so) "$$WORK_DIR/python/pyfory"
120120
fi
121121
echo $$(date) > $@
122122
""",

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ cd python
155155
python setup.py develop
156156
```
157157

158-
- Use `cython --cplus -a pyfory/_serialization.pyx` to produce an annotated HTML file of the source code. Then you can analyze interaction between Python objects and Python's C API.
158+
- Use `cython --cplus -a pyfory/serialization.pyx` to produce an annotated HTML file of the source code. Then you can analyze interaction between Python objects and Python's C API.
159159
- Read more: https://cython.readthedocs.io/en/latest/src/userguide/debugging.html
160160

161161
```bash

integration_tests/graalvm_tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<parent>
2626
<groupId>org.apache.fory</groupId>
2727
<artifactId>fory-parent</artifactId>
28-
<version>0.13.0</version>
28+
<version>0.13.0-SNAPSHOT</version>
2929
<relativePath>../../java</relativePath>
3030
</parent>
3131
<modelVersion>4.0.0</modelVersion>

integration_tests/jdk_compatibility_tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<parent>
2626
<groupId>org.apache.fory</groupId>
2727
<artifactId>fory-parent</artifactId>
28-
<version>0.13.0</version>
28+
<version>0.13.0-SNAPSHOT</version>
2929
<relativePath>../../java</relativePath>
3030
</parent>
3131
<modelVersion>4.0.0</modelVersion>

integration_tests/jpms_tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<parent>
2626
<groupId>org.apache.fory</groupId>
2727
<artifactId>fory-parent</artifactId>
28-
<version>0.13.0</version>
28+
<version>0.13.0-SNAPSHOT</version>
2929
<relativePath>../../java</relativePath>
3030
</parent>
3131
<modelVersion>4.0.0</modelVersion>

integration_tests/latest_jdk_tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<parent>
2626
<groupId>org.apache.fory</groupId>
2727
<artifactId>fory-parent</artifactId>
28-
<version>0.13.0</version>
28+
<version>0.13.0-SNAPSHOT</version>
2929
<relativePath>../../java</relativePath>
3030
</parent>
3131
<modelVersion>4.0.0</modelVersion>

java/benchmark/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<parent>
2727
<artifactId>fory-parent</artifactId>
2828
<groupId>org.apache.fory</groupId>
29-
<version>0.13.0</version>
29+
<version>0.13.0-SNAPSHOT</version>
3030
</parent>
3131

3232
<artifactId>benchmark</artifactId>

java/fory-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<parent>
2626
<groupId>org.apache.fory</groupId>
2727
<artifactId>fory-parent</artifactId>
28-
<version>0.13.0</version>
28+
<version>0.13.0-SNAPSHOT</version>
2929
</parent>
3030
<modelVersion>4.0.0</modelVersion>
3131

0 commit comments

Comments
 (0)