diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 0000000..bcd0ffb --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,49 @@ +environment: + matrix: + - PYTHON: "C:\\Python27-x64" + TARGET: x86_64-pc-windows-msvc + - PYTHON: "C:\\Python36-x64" + TARGET: x86_64-pc-windows-msvc + +branches: + only: + - master + - develop + +install: + - appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe + - rustup-init.exe -y --default-host %TARGET% + - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin + - if defined MSYS2_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS2_BITS%\bin + - rustc -V + - cargo -V + - "%PYTHON%\\python.exe -m pip install -r python/requirements.txt" + +build: false + +test_script: + - cargo test --verbose + - cd python + - "%PYTHON%\\python.exe -m pip install -e . --verbose" + - "%PYTHON%\\python.exe -m unittest discover" + +after_test: + - ECHO "BUILDING WHEELS..." + - "%PYTHON%\\python.exe setup.py bdist_wheel" + +artifacts: + - path: python\dist\* + name: pypiartifacts + +for: +- + branches: + only: + - master + + environment: + matrix: + - PYTHON: "C:\\Python27" + TARGET: i686-pc-windows-msvc + - PYTHON: "C:\\Python36" + TARGET: i686-pc-windows-msvc diff --git a/CHANGELOG.md b/CHANGELOG.md index c31a17a..3e7a4ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,15 @@ # Changelog All notable changes to this project will be documented in this file. +## [0.7.0] - 2018-09-27 +### Added +- Italian support +- Appveyor CI + ## [0.6.1] - 2018-04-13 ### Added - Add `get_shape` function +[0.7.0]: https://github.com/snipsco/snips-nlu-utils/compare/0.6.1...0.7.0 [0.6.1]: https://github.com/snipsco/snips-nlu-utils/compare/0.6.0...0.6.1 diff --git a/Cargo.toml b/Cargo.toml index 9262a5b..e4ac937 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snips-nlu-utils" -version = "0.6.1" +version = "0.7.0" authors = ["Adrien Ball "] [dependencies] diff --git a/README.rst b/README.rst index d934126..d4934bb 100644 --- a/README.rst +++ b/README.rst @@ -4,6 +4,8 @@ Snips NLU Utils .. image:: https://travis-ci.org/snipsco/snips-nlu-utils.svg?branch=master :target: https://travis-ci.org/snipsco/snips-nlu-utils +.. image:: https://ci.appveyor.com/api/projects/status/github/snipsco/snips-nlu-utils?branch=develop&svg=true + :target: https://ci.appveyor.com/project/snipsco/snips-nlu-utils Rust library for NLU utils with wrappers in other languages. diff --git a/python/requirements.txt b/python/requirements.txt index fcb7402..a09052e 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -1,2 +1,3 @@ setuptools_rust==0.8.3 -wheel==0.30.0 \ No newline at end of file +twine==1.11.0 +wheel==0.30.0 diff --git a/python/snips_nlu_utils/__version__ b/python/snips_nlu_utils/__version__ index ee6cdce..faef31a 100644 --- a/python/snips_nlu_utils/__version__ +++ b/python/snips_nlu_utils/__version__ @@ -1 +1 @@ -0.6.1 +0.7.0 diff --git a/python/snips_nlu_utils_py/Cargo.toml b/python/snips_nlu_utils_py/Cargo.toml index 807bb26..d7b4613 100644 --- a/python/snips_nlu_utils_py/Cargo.toml +++ b/python/snips_nlu_utils_py/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snips-nlu-utils-py" -version = "0.6.1" +version = "0.7.0" authors = ["Adrien Ball "] [lib] @@ -8,5 +8,5 @@ name = "_snips_nlu_utils_py" crate-type = ["cdylib"] [dependencies] -snips-nlu-utils = { git = "https://github.com/snipsco/snips-nlu-utils", tag = "0.6.1" } +snips-nlu-utils = { git = "https://github.com/snipsco/snips-nlu-utils", tag = "0.7.0" } cpython = { version="0.1", default-features=false } diff --git a/src/language.rs b/src/language.rs index 5879371..26bf433 100644 --- a/src/language.rs +++ b/src/language.rs @@ -21,7 +21,7 @@ macro_rules! language_enum { } } -language_enum!([DE, EN, ES, FR, JA, KO]); +language_enum!([DE, EN, ES, FR, IT, JA, KO]); impl FromStr for Language { type Err = String; @@ -31,6 +31,7 @@ impl FromStr for Language { "en" => Ok(Language::EN), "es" => Ok(Language::ES), "fr" => Ok(Language::FR), + "it" => Ok(Language::IT), "ja" => Ok(Language::JA), "ko" => Ok(Language::KO), _ => Err(format!("Unknown language {}", it)), @@ -45,6 +46,7 @@ impl ToString for Language { Language::EN => "en".to_string(), Language::ES => "es".to_string(), Language::FR => "fr".to_string(), + Language::IT => "it".to_string(), Language::JA => "ja".to_string(), Language::KO => "ko".to_string(), }