Skip to content

Commit

Permalink
Merge pull request #48 from snipsco/release/0.6.2
Browse files Browse the repository at this point in the history
Release/0.6.2
  • Loading branch information
ClemDoum authored Sep 27, 2018
2 parents fb05a5e + b900162 commit 3a0e021
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 6 deletions.
49 changes: 49 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "snips-nlu-utils"
version = "0.6.1"
version = "0.7.0"
authors = ["Adrien Ball <[email protected]>"]

[dependencies]
Expand Down
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
3 changes: 2 additions & 1 deletion python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
setuptools_rust==0.8.3
wheel==0.30.0
twine==1.11.0
wheel==0.30.0
2 changes: 1 addition & 1 deletion python/snips_nlu_utils/__version__
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.1
0.7.0
4 changes: 2 additions & 2 deletions python/snips_nlu_utils_py/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "snips-nlu-utils-py"
version = "0.6.1"
version = "0.7.0"
authors = ["Adrien Ball <[email protected]>"]

[lib]
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 }
4 changes: 3 additions & 1 deletion src/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)),
Expand All @@ -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(),
}
Expand Down

0 comments on commit 3a0e021

Please sign in to comment.