Stranger6667/jsonschema-rs

Python: Switch to `maturin`

Stranger6667 opened this issue ยท 3 comments

Our packaging setup is quite dated - maturin will simplify a lot of things

I tried to do so and observed an error that is described in PyO3/maturin#1083:

โ‡’  maturin build --sdist  
๐Ÿน Building a mixed python/rust project
๐Ÿ”— Found pyo3 bindings
๐Ÿ Found CPython 3.8 at /.../jsonschema/bin/python3
๐Ÿ’ฅ maturin failed
  Caused by: Failed to build source distribution
  Caused by: Failed to add local dependency json_schema_test_suite at /.../jsonschema/jsonschema-test-suite/Cargo.toml to the source distribution
  Caused by: cargo metadata does not know about the path for dependencies.json_schema_test_suite_proc_macro present in /.../jsonschema/jsonschema-test-suite/Cargo.toml, which should never happen เฒ _เฒ 

Thank you so much, @messense! It works indeed!