File tree Expand file tree Collapse file tree 3 files changed +24
-16
lines changed Expand file tree Collapse file tree 3 files changed +24
-16
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
2
2
from setuptools import setup
3
- from setuptools_rust import RustExtension
3
+ from setuptools_rust import RustExtension , Binding
4
4
5
5
setup (name = 'rust_ext' ,
6
6
version = '1.0' ,
7
7
rust_extensions = [
8
- RustExtension ('rust_ext._rust_ext' , 'extensions/Cargo.toml' )],
8
+ RustExtension ('rust_ext._rust_ext' , 'extensions/Cargo.toml' ,
9
+ binding = Binding .RustCPython )],
9
10
packages = ['rust_ext' ],
10
11
zip_safe = False )
Original file line number Diff line number Diff line change
1
+
2
+ build :
3
+ box : termoshtt/rust:latest
4
+ steps :
5
+ - script :
6
+ name : cargo test
7
+ code : |
8
+ cargo test
9
+
10
+ example :
11
+ box : python:3.6
12
+ steps :
13
+ - script :
14
+ name : Build sample python binding
15
+ code : |
16
+ curl https://sh.rustup.rs -sSf | sh -s -- -y
17
+ source /root/.cargo/env
18
+ cd example
19
+ pip3 install -r requirements.txt
20
+ python setup.py develop
21
+ ./test.py
You can’t perform that action at this time.
0 commit comments