Skip to content

Commit

Permalink
refactor(build): move dev requirements to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
joanise committed Nov 12, 2024
1 parent 693a4cb commit 1b0bf00
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 29 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ jobs:
uses: actions/checkout@v4
- name: Install
run: |
pip3 install -r requirements.dev.txt
pip3 install .
pip3 install .[dev]
- name: Run tests
run: python3 -m pytest
wintest:
Expand All @@ -40,8 +39,7 @@ jobs:
uses: actions/checkout@v4
- name: Install
run: |
pip3 install -r requirements.dev.txt
pip3 install .
pip3 install .[dev]
- name: Run tests
run: python3 -m pytest
mactest:
Expand All @@ -52,8 +50,7 @@ jobs:
- uses: actions/setup-python@v5
- name: Install
run: |
pip install -r requirements.dev.txt
pip install .
pip install .[dev]
- name: Run tests
run: python -m pytest
nodetest:
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ include LICENSE
include README.md
include TODO.md
include config.h.in
include requirements.dev.txt
include docs/Makefile
include docs/gen_config.py
include docs/make.bat
Expand Down
41 changes: 27 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build-system]
requires = [
"scikit-build-core",
"Cython"
"scikit-build-core",
"Cython"
]
build-backend = "scikit_build_core.build"

Expand All @@ -11,7 +11,7 @@ dynamic = ["version"]
description = "An even smaller speech recognizer"
readme = "README.md"
authors = [
{name = "David Huggins-Daines", email = "[email protected]"}
{name = "David Huggins-Daines", email = "[email protected]"}
]
keywords = ["asr", "speech"]
classifiers = [
Expand All @@ -29,6 +29,18 @@ classifiers = [
"Topic :: Multimedia :: Sound/Audio :: Speech",
]

[project.optional-dependencies]
dev = [
"scikit-build",
"Cython",
"pytest",
"numpy",
"pre-commit",
"black==24.3.0",
"isort",
"mypy==0.991",
]

[project.urls]
Homepage = "https://github.com/ReadAlongs/SoundSwallower"
Documentation = "https://soundswallower.readthedocs.io/"
Expand All @@ -39,22 +51,23 @@ Issues = "https://github.com/ReadAlongs/SoundSwallower/issues"
soundswallower = "soundswallower.cli:main"

[tool.cibuildwheel]
# Build a reduced selection of binaries as there are tons of them
# Build binaries for supported versions of Python
build = [
"cp38-*",
"cp39-*",
"cp310-*",
"cp311-*",
"cp312-*",
"cp38-*",
"cp39-*",
"cp310-*",
"cp311-*",
"cp312-*",
"cp313-*",
]
# Build only universal wheels for Mac where possible, and skip 32-bit
# builds to avoid building a gigabyte of stuff all the time
skip = [
"cp*-macosx_x86_64",
"cp*-macosx_arm64",
"*_i686",
"*musl*",
"*-win32",
"cp*-macosx_x86_64",
"cp*-macosx_arm64",
"*_i686",
"*musl*",
"*-win32",
]

[tool.cibuildwheel.macos]
Expand Down
8 changes: 0 additions & 8 deletions requirements.dev.txt

This file was deleted.

0 comments on commit 1b0bf00

Please sign in to comment.