Skip to content

Commit 7bd6a3c

Browse files
authored
Merge pull request #22 from termoshtt/wercker
Switch CI to wercker
2 parents 1c6f59c + 9262d43 commit 7bd6a3c

File tree

3 files changed

+24
-16
lines changed

3 files changed

+24
-16
lines changed

.drone.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

example/setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11

22
from setuptools import setup
3-
from setuptools_rust import RustExtension
3+
from setuptools_rust import RustExtension, Binding
44

55
setup(name='rust_ext',
66
version='1.0',
77
rust_extensions=[
8-
RustExtension('rust_ext._rust_ext', 'extensions/Cargo.toml')],
8+
RustExtension('rust_ext._rust_ext', 'extensions/Cargo.toml',
9+
binding=Binding.RustCPython)],
910
packages=['rust_ext'],
1011
zip_safe=False)

wercker.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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

0 commit comments

Comments
 (0)