-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from snipsco/release/0.6.1
Release 0.6.1
- Loading branch information
Showing
17 changed files
with
202 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,35 @@ | ||
language: python | ||
|
||
matrix: | ||
include: | ||
- os: osx | ||
osx_image: xcode8 | ||
language: generic | ||
env: | ||
- TOXENV=py27 | ||
- PYTHON_TESTS=true | ||
- os: osx | ||
osx_image: xcode8 | ||
language: generic | ||
env: | ||
- TOXENV=py36 | ||
- PYTHON_TESTS=true | ||
- os: linux | ||
language: python | ||
python: 2.7 | ||
env: | ||
- TOXENV=py27 | ||
- PYTHON_TESTS=true | ||
- os: linux | ||
language: python | ||
python: 3.6 | ||
env: | ||
- TOXENV=py36 | ||
- PYTHON_TESTS=true | ||
- os: linux | ||
language: rust | ||
rust: stable | ||
env: | ||
- RUST_TESTS=true | ||
|
||
before_install: | | ||
# Install Rust | ||
curl https://sh.rustup.rs -sSf | bash -s -- -y | ||
if [ "$TRAVIS_OS_NAME" == "osx" ]; then | ||
brew update || brew update | ||
brew outdated openssl || brew upgrade openssl | ||
brew install [email protected] | ||
# install pyenv | ||
git clone --depth 1 https://github.com/pyenv/pyenv ~/.pyenv | ||
PYENV_ROOT="$HOME/.pyenv" | ||
PATH="$PYENV_ROOT/bin:$PATH" | ||
eval "$(pyenv init -)" | ||
case "${TOXENV}" in | ||
py27) | ||
curl -O https://bootstrap.pypa.io/get-pip.py | ||
python get-pip.py --user | ||
;; | ||
py36) | ||
pyenv install 3.6.1 | ||
pyenv global 3.6.1 | ||
;; | ||
esac | ||
pyenv rehash | ||
python -m pip install --user virtualenv | ||
# A manual check that the correct version of Python is running. | ||
python --version | ||
fi | ||
install: | ||
- ./.travis/install.sh | ||
before_install: . ./.travis/before_install.sh | ||
|
||
script: | ||
- ./.travis/test.sh | ||
script: ./.travis/test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Install Rust | ||
if [ -z ${TRAVIS_RUST_VERSION+w} ]; then | ||
curl https://sh.rustup.rs -sSf | bash -s -- -y | ||
fi | ||
|
||
if [ $TRAVIS_OS_NAME == "osx" ] && [ $PYTHON_TESTS == "true" ]; then | ||
# install pyenv | ||
git clone --depth 1 https://github.com/pyenv/pyenv ~/.pyenv | ||
PYENV_ROOT="$HOME/.pyenv" | ||
PATH="$PYENV_ROOT/bin:$PATH" | ||
eval "$(pyenv init -)" | ||
|
||
case "${TOXENV}" in | ||
"py27") | ||
pyenv install 2.7.14 | ||
pyenv global 2.7.14 | ||
;; | ||
"py36") | ||
pyenv install 3.6.1 | ||
pyenv global 3.6.1 | ||
;; | ||
esac | ||
pyenv rehash | ||
|
||
# A manual check that the correct version of Python is running. | ||
python --version | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
#!/usr/bin/env bash | ||
source .travis/common.sh | ||
|
||
echo "Rust tests..." | ||
export PATH="/usr/local/bin:$HOME/.cargo/bin:$PATH" | ||
cargo test --all || die "Rust tests failed" | ||
|
||
echo "Python tests..." | ||
perl -p -i -e "s/^snips-nlu-utils = .*\$/snips-nlu-utils = { path = \"..\/..\" \}/g" */**/Cargo.toml | ||
cd python | ||
python -m pip install tox | ||
tox || die "Python tests failed" | ||
|
||
if [ "${RUST_TESTS}" == "true" ]; then | ||
echo "Rust tests..." | ||
cargo test --all || die "Rust tests failed" | ||
fi | ||
|
||
if [ "${PYTHON_TESTS}" == "true" ]; then | ||
echo "Python tests..." | ||
cd python | ||
python -m pip install tox | ||
tox || die "Python tests failed" | ||
cd .. | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
## [0.6.1] - 2018-04-13 | ||
|
||
### Added | ||
- Add `get_shape` function | ||
|
||
[0.6.1]: https://github.com/snipsco/snips-nlu-utils/compare/0.6.0...0.6.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "snips-nlu-utils" | ||
version = "0.6.0" | ||
version = "0.6.1" | ||
authors = ["Adrien Ball <[email protected]>"] | ||
|
||
[dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from ._snips_nlu_utils_py import (tokenize, tokenize_light, compute_all_ngrams, | ||
normalize, remove_diacritics) | ||
from ._snips_nlu_utils_py import ( | ||
get_shape, tokenize, tokenize_light, compute_all_ngrams,normalize, | ||
remove_diacritics) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.6.0 | ||
0.6.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[package] | ||
name = "snips-nlu-utils-py" | ||
version = "0.6.0" | ||
version = "0.6.1" | ||
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.0" } | ||
snips-nlu-utils = { git = "https://github.com/snipsco/snips-nlu-utils", tag = "0.6.1" } | ||
cpython = { version="0.1", default-features=false } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.