ferogram 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ferogram-0.1.1 → ferogram-0.1.2}/.github/workflows/publish.yml +3 -3
- {ferogram-0.1.1 → ferogram-0.1.2}/Cargo.lock +1 -1
- {ferogram-0.1.1 → ferogram-0.1.2}/Cargo.toml +2 -2
- {ferogram-0.1.1 → ferogram-0.1.2}/PKG-INFO +1 -1
- {ferogram-0.1.1 → ferogram-0.1.2}/pyproject.toml +1 -1
- {ferogram-0.1.1 → ferogram-0.1.2}/.gitignore +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/LICENSE-APACHE +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/LICENSE-MIT +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/README.md +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/examples/command_bot.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/examples/echo_bot.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/examples/raw_invoke.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/examples/send_hi.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/examples/send_media.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/examples/send_message.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/examples/update_handlers.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/examples/userbot.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/ferogram/__init__.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/ferogram/client.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/ferogram/filters.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/ferogram/logging.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/ferogram/py.typed +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/ferogram/raw/__init__.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/ferogram/raw/api/__init__.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/ferogram/raw/api/functions.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/ferogram/raw/api/types.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/ferogram/raw/codegen.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/ferogram/raw/generated/__init__.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/ferogram/raw/generated/_tl_schema.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/ferogram/raw/generated/functions.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/ferogram/raw/generated/types.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/ferogram/raw/tl.py +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/ferogram/raw_api.tl +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/src/auth.rs +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/src/client.rs +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/src/lib.rs +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/src/message.rs +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/src/raw.rs +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/src/types.rs +0 -0
- {ferogram-0.1.1 → ferogram-0.1.2}/src/updates.rs +0 -0
|
@@ -150,7 +150,7 @@ jobs:
|
|
|
150
150
|
env:
|
|
151
151
|
ANDROID_NDK_HOME: ${{ steps.ndk.outputs.ndk-path }}
|
|
152
152
|
ANDROID_API_LEVEL: ${{ matrix.api }}
|
|
153
|
-
PYO3_CROSS_PYTHON_VERSION: "3.
|
|
153
|
+
PYO3_CROSS_PYTHON_VERSION: "3.12"
|
|
154
154
|
run: |
|
|
155
155
|
NDK_BIN=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin
|
|
156
156
|
TARGET=${{ matrix.target }}
|
|
@@ -173,14 +173,14 @@ jobs:
|
|
|
173
173
|
export AR_${TARGET_LOWER}=$NDK_BIN/llvm-ar
|
|
174
174
|
export CARGO_TARGET_${TARGET_UPPER}_LINKER=$NDK_BIN/${CLANG_PREFIX}-clang
|
|
175
175
|
|
|
176
|
-
# pyo3 emits -lpython3.
|
|
176
|
+
# pyo3 emits -lpython3.12 for abi3 cross-builds. The linker needs a
|
|
177
177
|
# lib to satisfy that reference; at runtime Termux's Python provides
|
|
178
178
|
# the real symbols. Create empty stubs and inject via RUSTFLAGS so
|
|
179
179
|
# the linker finds them without maturin treating the dir as a Python
|
|
180
180
|
# sysroot (which PYO3_CROSS_LIB_DIR would do, triggering a
|
|
181
181
|
# _sysconfigdata*.py search and failing).
|
|
182
182
|
STUB_DIR=$(mktemp -d)
|
|
183
|
-
$NDK_BIN/llvm-ar rcs "$STUB_DIR/libpython3.
|
|
183
|
+
$NDK_BIN/llvm-ar rcs "$STUB_DIR/libpython3.12.a"
|
|
184
184
|
$NDK_BIN/llvm-ar rcs "$STUB_DIR/libpython3.a"
|
|
185
185
|
export RUSTFLAGS="-L native=$STUB_DIR"
|
|
186
186
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "ferogram-py"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.2"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
description = "Python bindings for ferogram (Rust MTProto)"
|
|
6
6
|
license = "MIT OR Apache-2.0"
|
|
@@ -12,7 +12,7 @@ crate-type = ["cdylib"]
|
|
|
12
12
|
|
|
13
13
|
[dependencies]
|
|
14
14
|
ferogram = { git = "https://github.com/ankit-chaubey/ferogram", branch = "main" }
|
|
15
|
-
pyo3 = { version = "0.23", features = ["extension-module", "abi3-
|
|
15
|
+
pyo3 = { version = "0.23", features = ["extension-module", "abi3-py312"] }
|
|
16
16
|
pyo3-async-runtimes = { version = "0.23", features = ["tokio-runtime"] }
|
|
17
17
|
tokio = { version = "1", features = ["full"] }
|
|
18
18
|
# Note: do NOT add ferogram-tl-types as a direct dep - use ferogram::tl instead
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|