Skip to content

Commit 238ed83

Browse files
committed
Try to fix CI
1 parent b9e3205 commit 238ed83

File tree

5 files changed

+4
-9
lines changed

5 files changed

+4
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*.pyo
33
*.so
44
.eggs
5+
.tox
56
dist
67
build
78
target

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ matrix:
1717
install:
1818
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
1919
- source $HOME/.cargo/env
20-
- rustc -V
21-
- cargo -V
2220
- export PYTHON_LIB=$(python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
2321
- export LIBRARY_PATH="$LIBRARY_PATH:$PYTHON_LIB"
2422
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PYTHON_LIB:$HOME/rust/lib"

example_tomlgen/hello/english/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
#![feature(use_extern_macros)]
2-
31
extern crate pyo3;
42

53
use pyo3::prelude::*;
64

75
/// Module documentation string
86
#[pymodinit]
9-
fn english(py: Python, m: &PyModule) -> PyResult<()> {
7+
fn english(_py: Python, m: &PyModule) -> PyResult<()> {
108

119
#[pyfn(m, "hello")]
1210
fn hello(_py: Python) -> PyResult<()> {

example_tomlgen/hello/french/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
#![feature(use_extern_macros)]
2-
31
extern crate pyo3;
42

53
use pyo3::prelude::*;
64

75
/// Module documentation string
86
#[pymodinit]
9-
fn french(py: Python, m: &PyModule) -> PyResult<()> {
7+
fn french(_py: Python, m: &PyModule) -> PyResult<()> {
108

119
#[pyfn(m, "hello")]
1210
fn hello(_py: Python) -> PyResult<()> {

example_tomlgen/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ zip_safe = false
1010
create_workspace = true
1111

1212
[tomlgen_rust.dependencies]
13-
pyo3 = { version = "*", features = ["extension-module"] }
13+
pyo3 = { version = "0.4", features = ["extension-module"] }
1414

1515
[tomlgen_rust.dependencies.hello-english]
1616
english-lint = "*"

0 commit comments

Comments
 (0)