-
Notifications
You must be signed in to change notification settings - Fork 721
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 #372 from cmusphinx/scikit_build_core
Switch to scikit-build-core and tox to fix many issues
- Loading branch information
Showing
12 changed files
with
130 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
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 |
---|---|---|
|
@@ -13,3 +13,4 @@ CTestTestfile.cmake | |
DartConfiguration.tcl | ||
cmake_install.cmake | ||
|
||
.tox |
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
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,13 +1,38 @@ | ||
[build-system] | ||
requires = [ | ||
"wheel", | ||
"setuptools>=45,<64", | ||
"scikit-build~=0.15", | ||
"Cython", | ||
"cmake", | ||
"ninja" | ||
"scikit-build-core", | ||
"Cython" | ||
] | ||
build-backend = "setuptools.build_meta" | ||
build-backend = "scikit_build_core.build" | ||
|
||
[project] | ||
name = "pocketsphinx" | ||
version = "5.0.3" | ||
description = "Official Python bindings for PocketSphinx" | ||
readme = "cython/README.md" | ||
authors = [ | ||
{name = "David Huggins-Daines", email = "[email protected]"} | ||
] | ||
keywords = ["asr", "speech"] | ||
classifiers = [ | ||
"Development Status :: 6 - Mature", | ||
"Programming Language :: C", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/cmusphinx/pocketsphinx" | ||
Documentation = "https://pocketsphinx.readthedocs.io/en/latest/" | ||
Repository = "https://github.com/cmusphinx/pocketsphinx.git" | ||
Issues = "https://github.com/cmusphinx/pocketsphinx/issues" | ||
|
||
[tool.cibuildwheel] | ||
# Build the versions found in Ubuntu LTS, the stable PyPy, and 3.10 | ||
# everywhere else | ||
|
@@ -22,3 +47,15 @@ build = [ | |
before-build = "rm -rf _skbuild" | ||
# PyPy builds are broken on Windows, and skip 32-bit and musl | ||
skip = ["*musl*", "*_i686", "*-win32", "pp*win*"] | ||
|
||
[tool.isort] | ||
profile = "black" | ||
|
||
[tool.flake8] | ||
extend-ignore = "E203" | ||
max-line-length = "88" | ||
|
||
[tool.scikit-build] | ||
cmake.verbose = true | ||
logging.level = "INFO" | ||
wheel.packages = ["cython/pocketsphinx"] |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[tox] | ||
env_list = py{38,39,310,311,312} | ||
minversion = 4.11.4 | ||
|
||
[testenv] | ||
description = run the tests with pytest | ||
package = wheel | ||
wheel_build_env = .pkg | ||
deps = | ||
pytest>=6 | ||
memory_profiler | ||
commands = | ||
pytest {tty:--color=yes} {posargs} | ||
|
||
[gh] | ||
python = | ||
3.12 = py312 | ||
3.11 = py311 | ||
3.10 = py310 | ||
3.9 = py39 | ||
3.8 = py38 |