Skip to content

Commit

Permalink
Merge pull request #72 from piotr-roslaniec/fix-typings
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-roslaniec authored Aug 1, 2023
2 parents 6c59822 + ae0175a commit 2e8bb1c
Show file tree
Hide file tree
Showing 16 changed files with 335 additions and 243 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/nucypher-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
matrix:
include:
- target: x86_64-unknown-linux-gnu
rust: 1.65 # MSRV
rust: 1.67 # MSRV
- target: x86_64-unknown-linux-gnu
rust: stable

Expand All @@ -50,7 +50,7 @@ jobs:
strategy:
matrix:
rust:
- 1.65 # MSRV
- 1.67 # MSRV
- stable
target:
- wasm32-unknown-unknown
Expand Down Expand Up @@ -96,6 +96,38 @@ jobs:
with:
cmd: --cwd nucypher-core-wasm/examples/node test

python-test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
python:
- "3.10"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true

- name: Install nucypher-core Python package
run: pip install -e .
working-directory: nucypher-core-python

- name: Install pip dependencies
run: pip install mypy

- name: Run mypy.stubtest
run: python -m mypy.stubtest nucypher_core --allowlist stubtest-allowlist.txt
working-directory: nucypher-core-python

trigger-wheels:
runs-on: ubuntu-latest
needs: test
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Changed

- Bumped `umbral-pre` version to 0.11.0 and `ferveo-pre-release` version to 0.2.1 ([#72])
- Bumped MSRV to 1.67. ([#72])

[#73]: https://github.com/nucypher/nucypher-core/pull/72

## 0.10.0 - 2023-06-23

Expand Down
54 changes: 27 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions nucypher-core-python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ crate-type = ["cdylib"]
[dependencies]
pyo3 = "0.18"
nucypher-core = { path = "../nucypher-core" }
umbral-pre = { version = "0.10.0", features = ["bindings-python"] }
ferveo = { package = "ferveo-pre-release", version = "0.2.0", features = ["bindings-python"] }
umbral-pre = { version = "0.11.0", features = ["bindings-python"] }
ferveo = { version = "0.2.1", package = "ferveo-pre-release", features = ["bindings-python"] }
derive_more = { version = "0.99", default-features = false, features = ["from", "as_ref"] }

[build-dependencies]
Expand Down
7 changes: 7 additions & 0 deletions nucypher-core-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ This repo contains the Python bindings for the [main Rust project][nucypher-core

You will need to have `setuptools-rust` installed. Then, for development you can just do `pip install -e .` as usual.

## Development

Update `nucypher-core-python/stubtest-allowlist.txt` with:
```bash
cd umbral-pre-python
python -m mypy.stubtest nucypher_core --generate-allowlist > stubtest-allowlist.txt
```

[pypi-image]: https://img.shields.io/pypi/v/nucypher-core
[pypi-link]: https://pypi.org/project/nucypher-core/
Expand Down
Loading

0 comments on commit 2e8bb1c

Please sign in to comment.