diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..12f7e53 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,209 @@ +# This file is autogenerated by maturin v1.7.4 +# To update, run +# +# maturin generate-ci github +# +name: CI + +on: + push: + branches: + - main + - master + tags: + - '*' + pull_request: + workflow_dispatch: + +permissions: + contents: read + +jobs: + test: + name: Run Unit Tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: Build wheel + uses: PyO3/maturin-action@v1 + with: + command: build + args: -o dist -i python3.12 + - name: Install wheel + run: | + pip install dist/*.whl + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run tests + run: | + pip install pytest + pytest tests.py + linux: + runs-on: ${{ matrix.platform.runner }} + needs: test + strategy: + matrix: + platform: + - runner: ubuntu-latest + target: x86_64 + - runner: ubuntu-latest + target: x86 + - runner: ubuntu-latest + target: aarch64 + - runner: ubuntu-latest + target: armv7 + - runner: ubuntu-latest + target: ppc64le + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.x + - name: Build wheels + uses: PyO3/maturin-action@v1 + with: + target: ${{ matrix.platform.target }} + args: --release --out dist --find-interpreter + sccache: 'true' + manylinux: auto + - name: Upload wheels + uses: actions/upload-artifact@v4 + with: + name: wheels-linux-${{ matrix.platform.target }} + path: dist + + musllinux: + runs-on: ${{ matrix.platform.runner }} + needs: test + strategy: + matrix: + platform: + - runner: ubuntu-latest + target: x86_64 + - runner: ubuntu-latest + target: x86 + - runner: ubuntu-latest + target: aarch64 + - runner: ubuntu-latest + target: armv7 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.x + - name: Build wheels + uses: PyO3/maturin-action@v1 + with: + target: ${{ matrix.platform.target }} + args: --release --out dist --find-interpreter + sccache: 'true' + manylinux: musllinux_1_2 + - name: Upload wheels + uses: actions/upload-artifact@v4 + with: + name: wheels-musllinux-${{ matrix.platform.target }} + path: dist + + windows: + runs-on: ${{ matrix.platform.runner }} + needs: test + strategy: + matrix: + platform: + - runner: windows-latest + target: x64 + - runner: windows-latest + target: x86 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.x + architecture: ${{ matrix.platform.target }} + - name: Build wheels + uses: PyO3/maturin-action@v1 + with: + target: ${{ matrix.platform.target }} + args: --release --out dist --find-interpreter + sccache: 'true' + - name: Upload wheels + uses: actions/upload-artifact@v4 + with: + name: wheels-windows-${{ matrix.platform.target }} + path: dist + + macos: + runs-on: ${{ matrix.platform.runner }} + needs: test + strategy: + matrix: + platform: + - runner: macos-14 + target: x86_64 + - runner: macos-14 + target: aarch64 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.x + - name: Build wheels + uses: PyO3/maturin-action@v1 + with: + target: ${{ matrix.platform.target }} + args: --release --out dist --find-interpreter + sccache: 'true' + - name: Upload wheels + uses: actions/upload-artifact@v4 + with: + name: wheels-macos-${{ matrix.platform.target }} + path: dist + + sdist: + runs-on: ubuntu-latest + needs: test + steps: + - uses: actions/checkout@v4 + - name: Build sdist + uses: PyO3/maturin-action@v1 + with: + command: sdist + args: --out dist + - name: Upload sdist + uses: actions/upload-artifact@v4 + with: + name: wheels-sdist + path: dist + + release: + name: Release + runs-on: ubuntu-latest + if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} + needs: [linux, musllinux, windows, macos, sdist] + permissions: + # Use to sign the release artifacts + id-token: write + # Used to upload release artifacts + contents: write + # Used to generate artifact attestation + attestations: write + steps: + - uses: actions/download-artifact@v4 + - name: Generate artifact attestation + uses: actions/attest-build-provenance@v1 + with: + subject-path: 'wheels-*/*' + - name: Publish to PyPI + if: "startsWith(github.ref, 'refs/tags/')" + uses: PyO3/maturin-action@v1 + env: + MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + with: + command: upload + args: --non-interactive --skip-existing wheels-*/* diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index c6c367b..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,181 +0,0 @@ -name: Build wheels - -on: - push: - branches: - - master - -jobs: - macos: - runs-on: macos-latest - strategy: - matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly-2024-02-04 - target: aarch64-apple-darwin - profile: minimal - default: true - - name: Build wheels - universal2 - if: ${{ matrix.python-version != '3.7' }} - uses: messense/maturin-action@v1 - with: - args: -i python --release --universal2 --out dist - rust-toolchain: nightly-2024-02-04 - - name: Install built wheel - universal2 - if: ${{ matrix.python-version != '3.7' }} - run: | - pip install py-bip39-bindings --no-index --find-links dist --force-reinstall - - name: Upload wheels - uses: actions/upload-artifact@v4 - with: - name: dist-wheels-mac-${{ matrix.python-version }} - path: dist/*.whl - windows: - runs-on: windows-latest - strategy: - matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] - target: [x64, x86] - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - architecture: ${{ matrix.target }} - - name: Update rustup - run: rustup self update - - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly-2024-02-04 - profile: minimal - default: true - - name: Build - if: matrix.target == 'x64' - run: cargo build --release - - name: Build wheels - uses: messense/maturin-action@v1 - with: - target: ${{ matrix.target }} - args: -i python --release --out dist - rust-toolchain: nightly-2024-02-04 - - name: Install built wheel - run: | - pip install py-bip39-bindings --no-index --find-links dist --force-reinstall - - name: Upload wheels - uses: actions/upload-artifact@v4 - with: - name: dist-wheels-win-${{ matrix.target }}-${{ matrix.python-version }} - path: dist/*.whl - - linux: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] - target: [x86_64, i686] - steps: - - uses: actions/checkout@v4 - - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly-2024-02-04 - profile: minimal - default: true - - name: Build - run: cargo build --release - - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Build Wheels - uses: messense/maturin-action@v1 - with: - target: ${{ matrix.target }} - rust-toolchain: nightly-2024-02-04 - manylinux: auto - args: -i python${{ matrix.python-version }} --release --out dist - - name: Upload wheels - uses: actions/upload-artifact@v4 - with: - name: dist-wheels-linux-${{ matrix.target }}-${{ matrix.python-version }} - path: dist/*.whl - - muslwheels_x86: - name: Build musllinux wheels for x86 - runs-on: ubuntu-latest - - env: - CIBW_BUILD_VERBOSITY: 1 - CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2024-02-04 -y" - CIBW_ARCHS_LINUX: "auto64" - CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"' - CIBW_BUILD: "*-musllinux_x86_64" - CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-*" - - steps: - - uses: actions/checkout@v4 - - - name: Build wheels - uses: pypa/cibuildwheel@v2.17.0 - with: - output-dir: dist - - - name: Upload wheels - uses: actions/upload-artifact@v4 - with: - name: dist-wheels-musl - path: dist/*.whl - - aarch64_wheels: - name: Build wheels for aarch64 linux - runs-on: ubuntu-latest - - env: - CIBW_BUILD_VERBOSITY: 1 - CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2024-02-04 -y" - CIBW_ARCHS_LINUX: "aarch64" - CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"' - CIBW_BUILD: "*-musllinux_aarch64 *-manylinux_aarch64" - CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-*" - - steps: - - uses: actions/checkout@v4 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - with: - platforms: arm64 - - - name: Build wheels - uses: pypa/cibuildwheel@v2.17.0 - with: - output-dir: dist - - - - name: Upload wheels - uses: actions/upload-artifact@v4 - with: - name: dist-wheels - path: dist/*.whl - - build_sdist: - name: Build source distribution - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Build sdist - run: pipx run build --sdist - - - uses: actions/upload-artifact@v4 - with: - name: dist-src - path: dist/*.tar.gz diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml deleted file mode 100644 index 9e6daac..0000000 --- a/.github/workflows/pypi.yml +++ /dev/null @@ -1,202 +0,0 @@ -name: Deploy to PyPI - -on: - release: - types: [ created ] - -jobs: - macos: - runs-on: macos-latest - strategy: - matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly-2024-02-04 - target: aarch64-apple-darwin - profile: minimal - default: true - - name: Build wheels - universal2 - if: ${{ matrix.python-version != '3.7' }} - uses: messense/maturin-action@v1 - with: - args: -i python --release --universal2 --out dist - rust-toolchain: nightly-2024-02-04 - - name: Install built wheel - universal2 - if: ${{ matrix.python-version != '3.7' }} - run: | - pip install py-bip39-bindings --no-index --find-links dist --force-reinstall - - name: Upload wheels - uses: actions/upload-artifact@v4 - with: - name: dist-wheels-mac-${{ matrix.python-version }} - path: dist/*.whl - windows: - runs-on: windows-latest - strategy: - matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] - target: [x64, x86] - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - architecture: ${{ matrix.target }} - - name: Update rustup - run: rustup self update - - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly-2024-02-04 - profile: minimal - default: true - - name: Build - if: matrix.target == 'x64' - run: cargo build --release - - name: Build wheels - uses: messense/maturin-action@v1 - with: - target: ${{ matrix.target }} - args: -i python --release --out dist - rust-toolchain: nightly-2024-02-04 - - name: Install built wheel - run: | - pip install py-bip39-bindings --no-index --find-links dist --force-reinstall - - name: Upload wheels - uses: actions/upload-artifact@v4 - with: - name: dist-wheels-win-${{ matrix.target }}-${{ matrix.python-version }} - path: dist/*.whl - - linux: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] - target: [x86_64, i686] - steps: - - uses: actions/checkout@v4 - - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly-2024-02-04 - profile: minimal - default: true - - name: Build - run: cargo build --release - - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Build Wheels - uses: messense/maturin-action@v1 - with: - target: ${{ matrix.target }} - rust-toolchain: nightly-2024-02-04 - manylinux: auto - args: -i python${{ matrix.python-version }} --release --out dist - - name: Upload wheels - uses: actions/upload-artifact@v4 - with: - name: dist-wheels-linux-${{ matrix.target }}-${{ matrix.python-version }} - path: dist/*.whl - - muslwheels_x86: - name: Build musllinux wheels for x86 - runs-on: ubuntu-latest - - env: - CIBW_BUILD_VERBOSITY: 1 - CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2024-02-04 -y" - CIBW_ARCHS_LINUX: "auto64" - CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"' - CIBW_BUILD: "*-musllinux_x86_64" - CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-*" - - steps: - - uses: actions/checkout@v4 - - - name: Build wheels - uses: pypa/cibuildwheel@v2.17.0 - with: - output-dir: dist - - - name: Upload wheels - uses: actions/upload-artifact@v4 - with: - name: dist-wheels-musl - path: dist/*.whl - - aarch64_wheels: - name: Build wheels for aarch64 linux - runs-on: ubuntu-latest - - env: - CIBW_BUILD_VERBOSITY: 1 - CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2024-02-04 -y" - CIBW_ARCHS_LINUX: "aarch64" - CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"' - CIBW_BUILD: "*-musllinux_aarch64 *-manylinux_aarch64" - CIBW_SKIP: "cp27-* cp34-* cp35-* cp36-*" - - steps: - - uses: actions/checkout@v4 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - with: - platforms: arm64 - - - name: Build wheels - uses: pypa/cibuildwheel@v2.17.0 - with: - output-dir: dist - - - - name: Upload wheels - uses: actions/upload-artifact@v4 - with: - name: dist-wheels - path: dist/*.whl - - build_sdist: - name: Build source distribution - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Build sdist - run: pipx run build --sdist - - - uses: actions/upload-artifact@v4 - with: - name: dist-src - path: dist/*.tar.gz - - release: - name: Release - runs-on: ubuntu-latest - if: "startsWith(github.ref, 'refs/tags/')" - needs: [macos, windows, linux, muslwheels_x86, build_sdist] - steps: - - uses: actions/download-artifact@v4 - with: - pattern: dist-* - path: dist - merge-multiple: true - - uses: actions/setup-python@v2 - with: - python-version: 3.9 - - name: Publish to PyPi - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - pip install --upgrade twine - twine upload --skip-existing dist/* diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index d7e34a8..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Run units tests - -on: - push: - branches: - - master - - develop - pull_request: - -jobs: - test: - name: Test - strategy: - fail-fast: false - matrix: - os: [ ubuntu-latest, macos-latest ] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - name: Install cffi and virtualenv - run: pip install cffi virtualenv - - name: Install RUST toolchain - uses: actions-rs/toolchain@v1 - id: rustup - with: - profile: minimal - toolchain: nightly - override: true - - name: Build bindings - run: | - pip install maturin - maturin build -i python3.8 - - name: Install requirements - run: | - pip install -r requirements.txt - - name: Install bindings - run: | - pip install target/wheels/*.whl - - name: Test with pytest - run: | - pip install pytest - pytest tests.py diff --git a/Cargo.lock b/Cargo.lock index 2c60e99..bb19a08 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "anyhow" @@ -159,6 +159,12 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + [[package]] name = "hmac" version = "0.7.1" @@ -181,9 +187,9 @@ dependencies = [ [[package]] name = "indoc" -version = "1.0.9" +version = "2.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa799dd5ed20a7e349f3b4639aa80d74549c81716d9ec4f994c9b5815598306" +checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5" [[package]] name = "instant" @@ -236,9 +242,9 @@ dependencies = [ [[package]] name = "memoffset" -version = "0.8.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" dependencies = [ "autocfg", ] @@ -305,6 +311,12 @@ dependencies = [ "crypto-mac 0.8.0", ] +[[package]] +name = "portable-atomic" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2" + [[package]] name = "ppv-lite86" version = "0.2.16" @@ -313,16 +325,16 @@ checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" [[package]] name = "proc-macro2" -version = "1.0.32" +version = "1.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba508cc11742c0dc5c1659771673afbab7a0efab23aa17e854cbab0837ed0b43" +checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e" dependencies = [ - "unicode-xid", + "unicode-ident", ] [[package]] name = "py-bip39-bindings" -version = "0.1.11" +version = "0.1.12" dependencies = [ "hmac 0.7.1", "pbkdf2 0.3.0", @@ -333,15 +345,16 @@ dependencies = [ [[package]] name = "pyo3" -version = "0.18.1" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06a3d8e8a46ab2738109347433cb7b96dffda2e4a218b03ef27090238886b147" +checksum = "53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233" dependencies = [ "cfg-if", "indoc", "libc", "memoffset", "parking_lot", + "portable-atomic", "pyo3-build-config", "pyo3-ffi", "pyo3-macros", @@ -350,9 +363,9 @@ dependencies = [ [[package]] name = "pyo3-build-config" -version = "0.18.1" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75439f995d07ddfad42b192dfcf3bc66a7ecfd8b4a1f5f6f046aa5c2c5d7677d" +checksum = "deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7" dependencies = [ "once_cell", "target-lexicon", @@ -360,9 +373,9 @@ dependencies = [ [[package]] name = "pyo3-ffi" -version = "0.18.1" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "839526a5c07a17ff44823679b68add4a58004de00512a95b6c1c98a6dcac0ee5" +checksum = "62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa" dependencies = [ "libc", "pyo3-build-config", @@ -370,32 +383,34 @@ dependencies = [ [[package]] name = "pyo3-macros" -version = "0.18.1" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd44cf207476c6a9760c4653559be4f206efafb924d3e4cbf2721475fc0d6cc5" +checksum = "7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158" dependencies = [ "proc-macro2", "pyo3-macros-backend", "quote", - "syn", + "syn 2.0.87", ] [[package]] name = "pyo3-macros-backend" -version = "0.18.1" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc1f43d8e30460f36350d18631ccf85ded64c059829208fe680904c65bcd0a4c" +checksum = "7c7e9b68bb9c3149c5b0cade5d07f953d6d125eb4337723c4ccdb665f1f96185" dependencies = [ + "heck", "proc-macro2", + "pyo3-build-config", "quote", - "syn", + "syn 2.0.87", ] [[package]] name = "quote" -version = "1.0.10" +version = "1.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05" +checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" dependencies = [ "proc-macro2", ] @@ -516,6 +531,17 @@ dependencies = [ "unicode-xid", ] +[[package]] +name = "syn" +version = "2.0.87" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + [[package]] name = "synstructure" version = "0.12.6" @@ -524,7 +550,7 @@ checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.81", "unicode-xid", ] @@ -551,7 +577,7 @@ checksum = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.81", ] [[package]] @@ -594,6 +620,12 @@ version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b63708a265f51345575b27fe43f9500ad611579e764c79edbc2037b1121959ec" +[[package]] +name = "unicode-ident" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" + [[package]] name = "unicode-normalization" version = "0.1.19" @@ -611,9 +643,9 @@ checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" [[package]] name = "unindent" -version = "0.1.7" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f14ee04d9415b52b3aeab06258a3f07093182b88ba0f9b8d203f211a7a7d41c7" +checksum = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce" [[package]] name = "version_check" @@ -648,7 +680,7 @@ dependencies = [ "log", "proc-macro2", "quote", - "syn", + "syn 1.0.81", "wasm-bindgen-shared", ] @@ -670,7 +702,7 @@ checksum = "bfa8a30d46208db204854cadbb5d4baf5fcf8071ba5bf48190c3e59937962ebc" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.81", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -720,6 +752,6 @@ checksum = "3f8f187641dad4f680d25c4bfc4225b418165984179f26ca76ec4fb6441d3a17" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.81", "synstructure", ] diff --git a/Cargo.toml b/Cargo.toml index 436a44a..6ed7e28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "py-bip39-bindings" description = "Python bindings for tiny-bip39 RUST crate" authors=["Stichting Polkascan (Polkascan Foundation)"] -version = "0.1.11" +version = "0.1.12" repository = "https://github.com/polkascan/py-bip39-bindings" homepage = "https://github.com/polkascan/py-bip39-bindings" license = "Apache-2.0" @@ -10,7 +10,7 @@ readme = "README.md" edition = "2018" [dependencies] -hmac = "0.7.0" +hmac = "0.7.1" pbkdf2 = { version = "0.3.0", default-features = false } sha2 = "0.8.2" tiny-bip39 = { version = "0.8.2", default-features = true } @@ -20,6 +20,6 @@ name = "bip39" crate-type = ["cdylib"] [dependencies.pyo3] -version = "0.18.1" +version = "0.20.3" features = ["extension-module"] diff --git a/pyproject.toml b/pyproject.toml index 5277b93..f41b432 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [build-system] -requires = ["maturin>=0.14,<0.15"] +requires = ["maturin>=1.7.0,<1.8.0"] build-backend = "maturin" [project] name = "py-bip39-bindings" -version = "0.1.11" +version = "0.1.12" description = "Python bindings for tiny-bip39 RUST crate" readme = "README.md" requires-python = ">=3.7" diff --git a/requirements.txt b/requirements.txt index 5552c82..c79c81b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ # Rust->Python build process -maturin~=0.14 +maturin~=1.7 # Dev-only bumpversion pytest