Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bindings/python): Build all available services for python #3836

Merged
merged 7 commits into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/bindings_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ permissions:
contents: read

jobs:

sdist:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -65,7 +64,7 @@ jobs:
manylinux: auto
working-directory: "bindings/python"
command: build
args: --release -o dist --find-interpreter
args: --release -o dist --find-interpreter --features=pyo3/extension-module,services-all
env:
# Workaround ring 0.17 build issue
CFLAGS_aarch64_unknown_linux_gnu: "-D__ARM_ARCH=8"
Expand All @@ -83,7 +82,7 @@ jobs:
with:
working-directory: "bindings/python"
command: build
args: --release -o dist --find-interpreter
args: --release -o dist --find-interpreter --features=pyo3/extension-module,services-all
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand All @@ -99,7 +98,7 @@ jobs:
working-directory: "bindings/python"
command: build
target: universal2-apple-darwin
args: --release -o dist --find-interpreter
args: --release -o dist --find-interpreter --features=pyo3/extension-module,services-all
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand Down
9 changes: 6 additions & 3 deletions bindings/python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ services-all = [
"services-cacache",
"services-dashmap",
"services-dropbox",
"services-etcd",
# FIXME this service need protoc
# "services-etcd",
# FIXME this requires a preinstalled fdb library
# "services-foundationdb",
# "services-ftp",
Expand All @@ -71,11 +72,13 @@ services-all = [
"services-mysql",
"services-redb",
"services-redis",
"services-rocksdb",
# FIXME how to support rocksdb services in bindings?
# "services-rocksdb",
"services-sled",
"services-supabase",
"services-swift",
"services-tikv",
# FIXME this service need protoc
# "services-tikv",
"services-vercel-artifacts",
"services-wasabi",
"services-mongodb",
Expand Down
6 changes: 5 additions & 1 deletion core/src/services/b2/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,11 @@ impl Accessor for B2Backend {
// The max multipart size of b2 is 5 Gb.
//
// ref: <https://www.backblaze.com/docs/cloud-storage-large-files>
write_multi_max_size: Some(5 * 1024 * 1024 * 1024),
write_multi_max_size: if cfg!(target_pointer_width = "64") {
Some(5 * 1024 * 1024 * 1024)
} else {
Some(usize::MAX)
},

delete: true,
copy: true,
Expand Down
Loading