diff --git a/.copier-answers.yaml b/.copier-answers.yaml index eeb3299..e28e1be 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: 392c67f +_commit: '4875149' _src_path: https://github.com/python-project-templates/base.git add_docs: true add_extension: rustjswasm diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index db62ff1..aa9f943 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -31,7 +31,6 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] python-version: ["3.11"] - cibuildwheel: ["cp311"] node-version: [22.x] steps: @@ -83,7 +82,7 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} - name: Set up QEMU - uses: docker/setup-qemu-action@v4 + uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0 with: platforms: all if: runner.os == 'Linux' && runner.arch == 'X64' @@ -96,8 +95,6 @@ jobs: make dist-py-wheel make dist-check shell: bash - env: - CIBW_BUILD: "${{ matrix.cibuildwheel }}-manylinux*" if: matrix.os == 'ubuntu-latest' - name: Make dist (Macos / Windows) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 52cc534..084c79f 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -32,7 +32,8 @@ jobs: - name: Install from wheel run: | - uv pip install dist/*.whl --target . + uv pip install dist/*.whl + uv pip install dist/*.whl --target . --no-deps uv pip install yardang if: github.event_name == 'workflow_run' diff --git a/Cargo.lock b/Cargo.lock index 4f2f048..8d660b1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -624,13 +624,12 @@ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" [[package]] name = "js-sys" -version = "0.3.98" +version = "0.3.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67df7112613f8bfd9150013a0314e196f4800d3201ae742489d999db2f979f08" +checksum = "53b44bfcdb3f8d5837a46dae1ca9660a837176eee74a28b229bc626816589102" dependencies = [ "cfg-if", "futures-util", - "once_cell", "wasm-bindgen", ] @@ -1427,9 +1426,9 @@ dependencies = [ [[package]] name = "wasm-bindgen" -version = "0.2.121" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49ace1d07c165b0864824eee619580c4689389afa9dc9ed3a4c75040d82e6790" +checksum = "4b067c0c11094aef6b7a801c1e34a26affafdf3d051dba08456b868789aaf9a4" dependencies = [ "cfg-if", "once_cell", @@ -1440,9 +1439,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.71" +version = "0.4.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96492d0d3ffba25305a7dc88720d250b1401d7edca02cc3bcd50633b424673b8" +checksum = "c62df1340f32221cb9c54d6a27b030e3dba64361d4a95bed55f9aacb44da291d" dependencies = [ "js-sys", "wasm-bindgen", @@ -1450,9 +1449,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.121" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e68e6f4afd367a562002c05637acb8578ff2dea1943df76afb9e83d177c8578" +checksum = "167ce5e579f6bcf889c4f7175a8a5a585de84e8ff93976ce393efa5f2837aab1" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -1460,9 +1459,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.121" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d95a9ec35c64b2a7cb35d3fead40c4238d0940c86d107136999567a4703259f2" +checksum = "f3997c7839262f4ef12cf90b818d6340c18e80f263f1a94bf157d0ec4420380e" dependencies = [ "bumpalo", "proc-macro2", @@ -1473,18 +1472,18 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.121" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4e0100b01e9f0d03189a92b96772a1fb998639d981193d7dbab487302513441" +checksum = "dc1b4cb0cc549fcf58d7dfc081778139b3d283a081644e833e84682ad71cea24" dependencies = [ "unicode-ident", ] [[package]] name = "web-sys" -version = "0.3.98" +version = "0.3.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b572dff8bcf38bad0fa19729c89bb5748b2b9b1d8be70cf90df697e3a8f32aa" +checksum = "8622dcb61c0bcc9fffa6938bed81210af2da9a7e4a1a834b2e37a59b6dfb6141" dependencies = [ "js-sys", "wasm-bindgen", diff --git a/js/Cargo.toml b/js/Cargo.toml index c2fcd2f..ef59f81 100644 --- a/js/Cargo.toml +++ b/js/Cargo.toml @@ -15,7 +15,7 @@ crate-type = ["cdylib"] # The core's `client` feature compiles its reqwest transport against the browser # fetch backend on wasm (no rustls), so the wasm shell wraps the real Client. crowdsource = { path = "../rust", version = "*", default-features = false, features = ["client"] } -wasm-bindgen = "=0.2.121" +wasm-bindgen = "=0.2.126" wasm-bindgen-futures = "0.4" serde-wasm-bindgen = "0.6" serde = "1.0" diff --git a/js/package.json b/js/package.json index b8028cb..f5d5e26 100644 --- a/js/package.json +++ b/js/package.json @@ -37,7 +37,7 @@ "access": "public" }, "scripts": { - "setup": "cargo install -f wasm-bindgen-cli --version 0.2.121 --locked", + "setup": "cargo install -f wasm-bindgen-cli --version 0.2.126 --locked", "build:debug": "node build.mjs --debug", "build:rust": "cargo build --release --all-features --target wasm32-unknown-unknown", "build:wasm-bindgen": "wasm-bindgen ../target/wasm32-unknown-unknown/release/crowdsource.wasm --out-dir ./dist/pkg --target web", diff --git a/pyproject.toml b/pyproject.toml index 33b903f..4053d69 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ description = "API client and CLI for recurring prediction competitions, live fo readme = "README.md" license = { text = "Apache-2.0" } version = "0.2.0" -requires-python = ">=3.10" +requires-python = ">=3.11" keywords = ["forecasting", "prediction-competitions", "ai-agents", "llm", "benchmarks", "kaggle-alternative", "mcp", "time-series"] classifiers = [ @@ -25,7 +25,6 @@ classifiers = [ "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", @@ -100,7 +99,7 @@ search = 'version = "{current_version}"' replace = 'version = "{new_version}"' [tool.cibuildwheel] -build = "cp310-*" +build = "cp311-*" test-command = "pytest -vvv {project}/crowdsource/tests" test-extras = "develop" @@ -136,6 +135,17 @@ exclude_also = [ ignore_errors = true fail_under = 50 +[tool.hatch.build] +artifacts = [ + "crowdsource/*.dll", + "crowdsource/*.dylib", + "crowdsource/*.so", + "crowdsource/extension", +] + +[tool.hatch.build.sources] +src = "/" + [tool.hatch.build.hooks.hatch-js] path = "js" build_cmd = "build" @@ -173,9 +183,6 @@ exclude = [ packages = [ "crowdsource", ] -artifacts = [ - "crowdsource/extension/**/*", -] exclude = [ "js", "rust", @@ -215,3 +222,10 @@ section-order = [ "F401", "F403", ] + +[tool.yardang] +title = "crowdsource" +root = "README.md" +pages = [] +use-autoapi = true + diff --git a/rust/Makefile b/rust/Makefile index fc5aac5..e9771a2 100644 --- a/rust/Makefile +++ b/rust/Makefile @@ -5,7 +5,7 @@ requirements: ## install required dev dependencies rustup component add clippy cargo install --force --locked cargo-nextest cargo install --force --locked cargo-llvm-cov - cargo install --force --locked wasm-bindgen-cli --version 0.2.121 + cargo install --force --locked wasm-bindgen-cli --version 0.2.126 rustup target add wasm32-unknown-unknown develop: requirements ## install required dev dependencies