Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit b530f26

Browse files
committed
Merge remote branch 'upstream/master'
Conflicts: pocketsphinx setup.py sphinxbase
2 parents 58e2aa3 + a2f0c78 commit b530f26

File tree

9 files changed

+68
-12
lines changed

9 files changed

+68
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea
2+
venv
23
build
34
dist
45
MANIFEST

.travis.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
language: python
2+
python:
3+
- "2.6"
4+
- "2.7"
5+
- "3.2"
6+
- "3.3"
7+
- "3.4"
8+
- "3.5"
9+
- "3.5-dev"
10+
- "nightly"
11+
before_install:
12+
- sudo apt-get update -qq
13+
- sudo apt-get install -qq build-essential swig
14+
install:
15+
- python setup.py bdist_wheel build
16+
- python setup.py bdist_wheel build
17+
- pip install ./dist/pocketsphinx-*.whl
18+
script:
19+
- cd pocketsphinx/swig/python/test
20+
- python ./config_test.py
21+
- python ./decoder_test.py
22+
- python ./fsg_test.py
23+
- python ./jsgf_test.py
24+
- python ./kws_test.py
25+
- python ./lattice_test.py
26+
- python ./lm_test.py

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ recursive-include sphinxbase/include *.h
44
recursive-include sphinxbase/src *.c
55
recursive-include sphinxbase/src *.h
66
recursive-include sphinxbase/swig *.i
7-
prune sphinxbase/include/s60
87
prune sphinxbase/include/wince
98
prune sphinxbase/include/android
109
prune sphinxbase/src/sphinx_adtools

example.py

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
from os import environ, path
23

34
from pocketsphinx.pocketsphinx import *

pypi.sh

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
11
#!/usr/bin/env bash
2+
rm -rf venv dist build *.egg-info
3+
rm -rf ./sphinxbase/swig/python/sphinxbase.py
4+
rm -rf ./pocketsphinx/swig/python/pocketsphinx.py
25

3-
python2.7 setup.py bdist_egg upload
4-
python3.4 setup.py bdist_egg upload
5-
python2.7 setup.py bdist_wheel upload
6-
python3.4 setup.py bdist_wheel upload
7-
python2.7 setup.py sdist --formats=gztar upload
8-
python2.7 setup.py sdist --formats=zip upload
6+
virtualenv -p /usr/bin/python2.7 venv
7+
source venv/bin/activate
8+
python setup.py bdist_egg build
9+
python setup.py bdist_egg upload
10+
python setup.py sdist build
11+
python setup.py sdist --formats=gztar upload
12+
python setup.py sdist --formats=zip upload
13+
deactivate
14+
15+
rm -rf venv dist build *.egg-info
16+
rm -rf ./sphinxbase/swig/python/sphinxbase.py
17+
rm -rf ./pocketsphinx/swig/python/pocketsphinx.py
18+
19+
virtualenv -p /usr/bin/python3.5 venv
20+
source venv/bin/activate
21+
python setup.py bdist_egg build
22+
python setup.py bdist_egg upload
23+
deactivate
24+
25+
rm -rf venv dist build *.egg-info
26+
rm -rf ./sphinxbase/swig/python/sphinxbase.py
27+
rm -rf ./pocketsphinx/swig/python/pocketsphinx.py

readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
pocketsphinx-python
22
===================
33

4+
[![Build Status](https://travis-ci.org/bambocher/pocketsphinx-python.svg?branch=master)](https://travis-ci.org/bambocher/pocketsphinx-python)
5+
46
Python interface to CMU SphinxBase and PocketSphinx libraries created with SWIG.
57
Pocketsphinx packages include python support, however, it is based on Automake and
68
not well supported on Windows.
@@ -72,6 +74,7 @@ Basic usage
7274
-----------
7375

7476
```python
77+
#!/usr/bin/env python
7578
from os import environ, path
7679

7780
from pocketsphinx.pocketsphinx import *

setup.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,11 @@
8383
sb_include_dirs.extend(['include'])
8484
extra_compile_args.extend([
8585
'-Wno-unused-label',
86-
'-Wno-maybe-uninitialized',
86+
'-Wno-strict-prototypes',
8787
'-Wno-parentheses',
8888
'-Wno-unused-but-set-variable',
89-
'-Wno-unused-variable'
89+
'-Wno-unused-variable',
90+
'-Wno-unused-result'
9091
])
9192
elif sys.platform.startswith('win'):
9293
sb_include_dirs.extend(['sphinxbase/include/win32'])
@@ -136,7 +137,7 @@
136137

137138
setup(
138139
name='pocketsphinx',
139-
version='0.0.5',
140+
version='0.0.8',
140141
description='Python interface to CMU SphinxBase and PocketSphinx libraries',
141142
long_description=__doc__,
142143
author='Dmitry Prazdnichnov',
@@ -171,8 +172,14 @@
171172
'License :: OSI Approved :: BSD License',
172173
'Operating System :: Microsoft :: Windows',
173174
'Operating System :: POSIX :: Linux',
175+
'Programming Language :: Python :: 2',
176+
'Programming Language :: Python :: 2.6',
174177
'Programming Language :: Python :: 2.7',
178+
'Programming Language :: Python :: 3',
179+
'Programming Language :: Python :: 3.2',
180+
'Programming Language :: Python :: 3.3',
175181
'Programming Language :: Python :: 3.4',
182+
'Programming Language :: Python :: 3.5',
176183
'Programming Language :: C'
177184
],
178185
license='BSD',

0 commit comments

Comments
 (0)