You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fory.apache.org by ch...@apache.org on 2026/07/28 01:34:53 UTC
(fory) branch main updated: fix: fix release errors (#3891)
This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory.git
The following commit(s) were added to refs/heads/main by this push:
new fc82f73f2 fix: fix release errors (#3891)
fc82f73f2 is described below
commit fc82f73f283576b20765b47c1c9b6744fa49beca
Author: Shawn Yang <sh...@gmail.com>
AuthorDate: Tue Jul 28 09:34:50 2026 +0800
fix: fix release errors (#3891)
## Why?
## What does this PR do?
## Related issues
## AI Contribution Checklist
- [ ] Substantial AI assistance was used in this PR: `yes` / `no`
- [ ] If `yes`, I included a completed [AI Contribution
Checklist](https://github.com/apache/fory/blob/main/AI_POLICY.md#9-contributor-checklist-for-ai-assisted-prs)
in this PR description and the required `AI Usage Disclosure`.
- [ ] If `yes`, my PR description includes the required `ai_review`
summary and screenshot evidence or equivalent persisted links of the
final clean AI review results from both fresh reviewers described in
`AI_POLICY.md`, the Fory-guided reviewer and the independent general
reviewer, on the current PR diff or current HEAD after the latest code
changes.
## Does this PR introduce any user-facing change?
- [ ] Does this PR introduce any public API change?
- [ ] Does this PR introduce any binary protocol compatibility change?
## Benchmark
---
.github/workflows/release-javascript.yaml | 4 +-
compiler/fory_compiler/__init__.py | 14 +--
python/pyfory/__init__.py | 189 +++++++++++++++---------------
3 files changed, 101 insertions(+), 106 deletions(-)
diff --git a/.github/workflows/release-javascript.yaml b/.github/workflows/release-javascript.yaml
index 239ab81b6..89b978df7 100644
--- a/.github/workflows/release-javascript.yaml
+++ b/.github/workflows/release-javascript.yaml
@@ -94,7 +94,7 @@ jobs:
node <<'EOF'
const fs = require("node:fs");
- const expected = "git@github.com:apache/fory.git";
+ const expected = "https://github.com/apache/fory.git";
const files = [
"javascript/packages/core/package.json",
"javascript/packages/hps/package.json"
@@ -102,7 +102,7 @@ jobs:
for (const file of files) {
const json = JSON.parse(fs.readFileSync(file, "utf8"));
- const actual = json?.repository ?? "";
+ const actual = json?.repository?.url ?? "";
if (actual !== expected) {
console.error(
`Repository URL mismatch in ${file}: expected "${expected}", got "${actual}"`
diff --git a/compiler/fory_compiler/__init__.py b/compiler/fory_compiler/__init__.py
index c855e627a..c3cfedf54 100644
--- a/compiler/fory_compiler/__init__.py
+++ b/compiler/fory_compiler/__init__.py
@@ -19,19 +19,19 @@
__version__ = "1.5.0.dev0"
-from fory_compiler.ir.ast import Schema, Message, Enum, Field, EnumValue, Import
-from fory_compiler.frontend.fdl import FDLFrontend
from fory_compiler.frontend.fbs import FBSFrontend
+from fory_compiler.frontend.fdl import FDLFrontend
from fory_compiler.frontend.proto import ProtoFrontend
+from fory_compiler.ir.ast import Enum, EnumValue, Field, Import, Message, Schema
__all__ = [
- "Schema",
- "Message",
"Enum",
- "Field",
"EnumValue",
- "Import",
- "FDLFrontend",
"FBSFrontend",
+ "FDLFrontend",
+ "Field",
+ "Import",
+ "Message",
"ProtoFrontend",
+ "Schema",
]
diff --git a/python/pyfory/__init__.py b/python/pyfory/__init__.py
index 0d2d22dac..c7c466299 100644
--- a/python/pyfory/__init__.py
+++ b/python/pyfory/__init__.py
@@ -29,11 +29,11 @@ except ImportError:
from pyfory.registry import TypeInfo
if ENABLE_FORY_CYTHON_SERIALIZATION:
- from pyfory.serialization import Fory, TypeInfo # noqa: F401,F811
+ from pyfory.serialization import Fory, TypeInfo
-from pyfory.serialization import Buffer # noqa: F401 # pylint: disable=unused-import
+from pyfory.serialization import Buffer # pylint: disable=unused-import
-from pyfory.serializer import ( # noqa: F401 # pylint: disable=unused-import
+from pyfory.serializer import ( # pylint: disable=unused-import
Serializer,
BooleanSerializer,
ByteSerializer,
@@ -86,8 +86,8 @@ from pyfory.serializer import ( # noqa: F401 # pylint: disable=unused-import
BFloat16ArraySerializer,
)
from pyfory.struct import DataClassSerializer
-from pyfory.field import dataclass, field # noqa: F401 # pylint: disable=unused-import
-from pyfory.annotation import ( # noqa: F401 # pylint: disable=unused-import
+from pyfory.field import dataclass, field # pylint: disable=unused-import
+from pyfory.annotation import ( # pylint: disable=unused-import
Array,
BFloat16,
BFloat16Array,
@@ -125,124 +125,119 @@ from pyfory.annotation import ( # noqa: F401 # pylint: disable=unused-import
UInt8,
UInt8Array,
)
-from pyfory.types import ( # noqa: F401 # pylint: disable=unused-import
+from pyfory.types import ( # pylint: disable=unused-import
TypeId,
)
-from pyfory.type_util import ( # noqa: F401 # pylint: disable=unused-import
+from pyfory.type_util import ( # pylint: disable=unused-import
record_class_factory,
get_qualified_classname,
dataslots,
)
-from pyfory.policy import DeserializationPolicy # noqa: F401 # pylint: disable=unused-import
+from pyfory.policy import DeserializationPolicy # pylint: disable=unused-import
__version__ = "1.5.0.dev0"
__all__ = [
- # Core classes
- "Fory",
- "ThreadSafeFory",
- "TypeInfo",
- "Buffer",
- "Float16Serializer",
- "BoolArraySerializer",
- "Int8ArraySerializer",
- "Int16ArraySerializer",
- "Int32ArraySerializer",
- "Int64ArraySerializer",
- "UInt8ArraySerializer",
- "UInt16ArraySerializer",
- "UInt32ArraySerializer",
- "UInt64ArraySerializer",
- "Float16ArraySerializer",
- "Float32ArraySerializer",
- "Float64ArraySerializer",
- "BFloat16Serializer",
- "BFloat16ArraySerializer",
- "DeserializationPolicy",
- # Field metadata
- "field",
- "dataclass",
- # Type utilities
- "record_class_factory",
- "get_qualified_classname",
- "TypeId",
- "Ref",
"Array",
- "NDArray",
- "PyArray",
+ "BFloat16",
+ "BFloat16Array",
+ "BFloat16ArraySerializer",
+ "BFloat16Serializer",
+ "Bool",
"BoolArray",
- "Int8Array",
- "Int16Array",
- "Int32Array",
- "Int64Array",
- "UInt8Array",
- "UInt16Array",
- "UInt32Array",
- "UInt64Array",
+ "BoolArraySerializer",
+ "BooleanSerializer",
+ "Buffer",
+ "ByteSerializer",
+ "CollectionSerializer",
+ "DataClassSerializer",
+ "DateSerializer",
+ "DeserializationPolicy",
+ "DurationSerializer",
+ "EnumSerializer",
+ "FixedInt32",
+ "FixedInt64",
+ "FixedUInt32",
+ "FixedUInt64",
+ "Float16",
"Float16Array",
- "BFloat16Array",
+ "Float16ArraySerializer",
+ "Float16Serializer",
+ "Float32",
"Float32Array",
+ "Float32ArraySerializer",
+ "Float32Serializer",
+ "Float64",
"Float64Array",
- "Bool",
+ "Float64ArraySerializer",
+ "Float64Serializer",
+ "Fory",
+ "FunctionSerializer",
"Int8",
+ "Int8Array",
+ "Int8ArraySerializer",
"Int16",
+ "Int16Array",
+ "Int16ArraySerializer",
+ "Int16Serializer",
"Int32",
+ "Int32Array",
+ "Int32ArraySerializer",
+ "Int32Serializer",
"Int64",
+ "Int64Array",
+ "Int64ArraySerializer",
+ "Int64Serializer",
+ "ListSerializer",
+ "MapSerializer",
+ "MethodSerializer",
+ "NDArray",
+ "PyArray",
+ "ReduceSerializer",
+ "Ref",
+ "Serializer",
+ "SetSerializer",
+ "SliceSerializer",
+ "StatefulSerializer",
+ "StringArraySerializer",
+ "StringSerializer",
+ "TaggedInt64",
+ "TaggedInt64Serializer",
+ "TaggedUInt64",
+ "TaggedUint64Serializer",
+ "ThreadSafeFory",
+ "TimestampSerializer",
+ "TupleSerializer",
+ "TypeId",
+ "TypeInfo",
+ "TypeSerializer",
"UInt8",
+ "UInt8Array",
+ "UInt8ArraySerializer",
"UInt16",
+ "UInt16Array",
+ "UInt16ArraySerializer",
"UInt32",
+ "UInt32Array",
+ "UInt32ArraySerializer",
"UInt64",
- "Float16",
- "BFloat16",
- "Float32",
- "Float64",
- "FixedInt32",
- "FixedInt64",
- "FixedUInt32",
- "FixedUInt64",
- "TaggedInt64",
- "TaggedUInt64",
- "dataslots",
- # Serializers
- "Serializer",
- "BooleanSerializer",
- "ByteSerializer",
- "Int16Serializer",
- "Int32Serializer",
- "Int64Serializer",
- "Varint32Serializer",
- "Varint64Serializer",
- "TaggedInt64Serializer",
+ "UInt64Array",
+ "UInt64ArraySerializer",
"Uint8Serializer",
"Uint16Serializer",
"Uint32Serializer",
- "VarUint32Serializer",
"Uint64Serializer",
+ "VarUint32Serializer",
"VarUint64Serializer",
- "TaggedUint64Serializer",
- "Float32Serializer",
- "Float64Serializer",
- "StringSerializer",
- "DateSerializer",
- "TimestampSerializer",
- "DurationSerializer",
- "CollectionSerializer",
- "ListSerializer",
- "TupleSerializer",
- "StringArraySerializer",
- "SetSerializer",
- "MapSerializer",
- "EnumSerializer",
- "SliceSerializer",
- "DataClassSerializer",
- "FunctionSerializer",
- "TypeSerializer",
- "MethodSerializer",
- "ReduceSerializer",
- "StatefulSerializer",
- "mmh3",
- # Version
+ "Varint32Serializer",
+ "Varint64Serializer",
"__version__",
+ "dataclass",
+ "dataslots",
+ "field",
+ "get_qualified_classname",
+ "mmh3",
+ "record_class_factory",
]
# Try to import format utilities (requires pyarrow)
@@ -260,11 +255,11 @@ try:
__all__.extend(
[
- "format",
- "create_row_encoder",
+ "Encoder",
"RowData",
+ "create_row_encoder",
"encoder",
- "Encoder",
+ "format",
]
)
except (AttributeError, ImportError):
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fory.apache.org
For additional commands, e-mail: commits-help@fory.apache.org