Skip to content

Commit

Permalink
Switch to v0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Lissy committed Nov 23, 2017
1 parent 5f0fdc4 commit c95a1da
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ See the help output with `./deepspeech -h` and the [native client README](native
You can download the Node.JS bindings using `util/taskcluster.py` and install them with `npm`:

```bash
python util/taskcluster.py --target . --artifact deepspeech-0.0.2.tgz
npm install deepspeech-0.0.2.tgz
python util/taskcluster.py --target . --artifact deepspeech-0.0.3.tgz
npm install deepspeech-0.0.3.tgz
```

See [client.js](native_client/javascript/client.js) for an example of how to use the bindings.
Expand Down
4 changes: 2 additions & 2 deletions native_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Check the [main README](../README.md) for more details about setup and virtual e

### Node.JS bindings

For Node.JS bindings, use `python util/taskcluster.py --target . --artifact deepspeech-0.0.2.tgz` to download the package and `npm install deepspeech-0.0.2.tgz` to install it. Please note that as of now, we only support Node.JS versions 4, 4 and 6. Once [SWIG has support](https://github.com/swig/swig/pull/968) we can build for newer versions.
For Node.JS bindings, use `python util/taskcluster.py --target . --artifact deepspeech-0.0.3.tgz` to download the package and `npm install deepspeech-0.0.3.tgz` to install it. Please note that as of now, we only support Node.JS versions 4, 4 and 6. Once [SWIG has support](https://github.com/swig/swig/pull/968) we can build for newer versions.

## Build Requirements

Expand Down Expand Up @@ -137,4 +137,4 @@ make package
make npm-pack
```

This will create the package `deepspeech-0.0.2.tgz` in `native_client/javascript`.
This will create the package `deepspeech-0.0.3.tgz` in `native_client/javascript`.
2 changes: 1 addition & 1 deletion native_client/javascript/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const binary = require('node-pre-gyp');
const path = require('path')
// 'lib', 'binding', 'v0.0.2', ['node', 'v' + process.versions.modules, process.platform, process.arch].join('-'), 'deepspeech-bingings.node')
// 'lib', 'binding', 'v0.0.3', ['node', 'v' + process.versions.modules, process.platform, process.arch].join('-'), 'deepspeech-bingings.node')
const binding_path = binary.find(path.resolve(path.join(__dirname, 'package.json')));
const binding = require(binding_path);

Expand Down
2 changes: 1 addition & 1 deletion native_client/javascript/package.json.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "$(PROJECT_NAME)",
"version" : "0.0.2",
"version" : "0.0.3",
"description" : "DeepSpeech NodeJS bindings",
"main" : "./index",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion native_client/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class BuildExtFirst(build):
setup(name = project_name,
description = 'A library for running inference on a DeepSpeech model',
author = 'Mozilla',
version = '0.0.2',
version = '0.0.3',
package_dir = {'deepspeech': 'python'},
packages = ['deepspeech'],
cmdclass = {'build': BuildExtFirst},
Expand Down
2 changes: 2 additions & 0 deletions taskcluster/scriptworker-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ build:
# Make sure builds are ready
- "darwin-amd64-cpu-opt"
- "linux-amd64-cpu-opt"
- "linux-amd64-gpu-opt"
- "linux-rpi3-cpu-opt"
allowed:
- "push"
Expand All @@ -14,6 +15,7 @@ build:
artifacts_deps:
- "darwin-amd64-cpu-opt"
- "linux-amd64-cpu-opt"
- "linux-amd64-gpu-opt"
- "linux-rpi3-cpu-opt"
- "node-package"
metadata:
Expand Down
2 changes: 1 addition & 1 deletion tc-node-tests-prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ download_data

node --version
npm --version
npm install ${DEEPSPEECH_NODEJS}/deepspeech-0.0.2.tgz
npm install ${DEEPSPEECH_NODEJS}/deepspeech-0.0.3.tgz

export PATH=$HOME/node_modules/.bin/:$PATH

Expand Down
4 changes: 2 additions & 2 deletions tc-node-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ download_data
node --version
npm --version
if [ "${aot_model}" = "--aot" ]; then
npm install ${DEEPSPEECH_AOT_ARTIFACTS_ROOT}/deepspeech-0.0.2.tgz
npm install ${DEEPSPEECH_AOT_ARTIFACTS_ROOT}/deepspeech-0.0.3.tgz
else
npm install ${DEEPSPEECH_NODEJS}/deepspeech-0.0.2.tgz
npm install ${DEEPSPEECH_NODEJS}/deepspeech-0.0.3.tgz
fi

export PATH=$HOME/node_modules/.bin/:$PATH
Expand Down
2 changes: 1 addition & 1 deletion tc-python-tests-prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pyenv virtualenv ${pyver} ${PYENV_NAME}
source ${PYENV_ROOT}/versions/${pyver}/envs/${PYENV_NAME}/bin/activate

platform=$(python -c 'import sys; import platform; plat = platform.system().lower(); plat = "manylinux1" if plat == "linux" else plat; sys.stdout.write("%s_%s" % (plat, platform.machine()));')
deepspeech_pkg="deepspeech-0.0.2-cp${pyver_pkg}-cp${pyver_pkg}${py_unicode_type}-${platform}.whl"
deepspeech_pkg="deepspeech-0.0.3-cp${pyver_pkg}-cp${pyver_pkg}${py_unicode_type}-${platform}.whl"

pip install --upgrade ${DEEPSPEECH_ARTIFACTS_ROOT}/${deepspeech_pkg}

Expand Down
2 changes: 1 addition & 1 deletion tc-python-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pyenv virtualenv ${pyver} ${PYENV_NAME}
source ${PYENV_ROOT}/versions/${pyver}/envs/${PYENV_NAME}/bin/activate

platform=$(python -c 'import sys; import platform; plat = platform.system().lower(); plat = "manylinux1" if plat == "linux" else plat; sys.stdout.write("%s_%s" % (plat, platform.machine()));')
deepspeech_pkg="deepspeech-0.0.2-cp${pyver_pkg}-cp${pyver_pkg}${py_unicode_type}-${platform}.whl"
deepspeech_pkg="deepspeech-0.0.3-cp${pyver_pkg}-cp${pyver_pkg}${py_unicode_type}-${platform}.whl"

if [ "${aot_model}" = "--aot" ]; then
deepspeech_pkg_url=${DEEPSPEECH_AOT_ARTIFACTS_ROOT}/${deepspeech_pkg}
Expand Down

0 comments on commit c95a1da

Please sign in to comment.