cbindgen: switch tests from cython to cython3
Peter Michael Green
3 years ago
|
0 |
rust-cbindgen (0.17.0-3) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
|
|
1 |
|
|
2 |
* Team upload.
|
|
3 |
* Package cbindgen 0.17.0 from crates.io using debcargo 2.4.4
|
|
4 |
* Change build and test dependencies from cython to cython3
|
|
5 |
* Use cython3 for tests
|
|
6 |
|
|
7 |
-- Peter Michael Green <plugwash@debian.org> Thu, 11 Feb 2021 23:55:22 +0000
|
|
8 |
|
0 | 9 |
rust-cbindgen (0.17.0-2) unstable; urgency=medium
|
1 | 10 |
|
2 | 11 |
* Team upload.
|
3 | 3 |
|
4 | 4 |
[source]
|
5 | 5 |
section = "utils"
|
6 | |
build_depends = ["help2man", "librust-serial-test-dev", "cython"]
|
|
6 |
build_depends = ["help2man", "librust-serial-test-dev", "cython3"]
|
7 | 7 |
|
8 | 8 |
[packages.bin]
|
9 | 9 |
summary = "Generates C bindings from Rust code"
|
|
28 | 28 |
"""
|
29 | 29 |
|
30 | 30 |
[packages.lib]
|
31 | |
test_depends = ["cython"]
|
|
31 |
test_depends = ["cython3"]
|
32 | 32 |
test_is_broken = true
|
33 | 33 |
|
34 | 34 |
[packages."lib+clap"]
|
|
0 |
use-cython3-for-tests.patch
|
|
0 |
Index: build/cbindgen/tests/tests.rs
|
|
1 |
===================================================================
|
|
2 |
--- cbindgen/tests/tests.rs
|
|
3 |
+++ cbindgen/tests/tests.rs
|
|
4 |
@@ -71,7 +71,7 @@ fn compile(
|
|
5 |
let cc = match language {
|
|
6 |
Language::Cxx => env::var("CXX").unwrap_or_else(|_| "g++".to_owned()),
|
|
7 |
Language::C => env::var("CC").unwrap_or_else(|_| "gcc".to_owned()),
|
|
8 |
- Language::Cython => env::var("CYTHON").unwrap_or_else(|_| "cython".to_owned()),
|
|
9 |
+ Language::Cython => env::var("CYTHON").unwrap_or_else(|_| "cython3".to_owned()),
|
|
10 |
};
|
|
11 |
|
|
12 |
let file_name = cbindgen_output
|