Skip to content

Commit 28524cc

Browse files
authored
Merge pull request #69 from ReadAlongs/dev.ej/debug-ci
ci: get a proper venv for Ubuntu; build: use pyproject.toml more Thanks to @cclauss for assistance troubleshooting this.
2 parents 3dc4f87 + abe73ac commit 28524cc

File tree

4 files changed

+19
-16
lines changed

4 files changed

+19
-16
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,23 @@ jobs:
2727
steps:
2828
- name: Checkout
2929
uses: actions/checkout@v4
30+
- uses: actions/setup-python@v5
31+
with:
32+
python-version: "3.10"
3033
- name: Install
3134
run: |
32-
pip3 install -r requirements.dev.txt
33-
pip3 install .
35+
pip3 install .[dev]
3436
- name: Run tests
3537
run: python3 -m pytest
3638
wintest:
3739
runs-on: windows-latest
3840
steps:
3941
- name: Checkout
4042
uses: actions/checkout@v4
43+
- uses: actions/setup-python@v5
4144
- name: Install
4245
run: |
43-
pip3 install -r requirements.dev.txt
44-
pip3 install .
46+
pip3 install .[dev]
4547
- name: Run tests
4648
run: python3 -m pytest
4749
mactest:
@@ -52,8 +54,7 @@ jobs:
5254
- uses: actions/setup-python@v5
5355
- name: Install
5456
run: |
55-
pip install -r requirements.dev.txt
56-
pip install .
57+
pip install .[dev]
5758
- name: Run tests
5859
run: python -m pytest
5960
nodetest:

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ include LICENSE
33
include README.md
44
include TODO.md
55
include config.h.in
6-
include requirements.dev.txt
76
include docs/Makefile
87
include docs/gen_config.py
98
include docs/make.bat

pyproject.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[build-system]
22
requires = [
33
"scikit-build-core",
4-
"Cython"
4+
"Cython",
5+
"setuptools>=61.2",
56
]
67
build-backend = "scikit_build_core.build"
78

@@ -30,6 +31,16 @@ classifiers = [
3031
"Topic :: Multimedia :: Sound/Audio :: Speech",
3132
]
3233

34+
[project.optional-dependencies]
35+
dev = [
36+
"pytest",
37+
"numpy",
38+
"pre-commit",
39+
"black==24.3.0",
40+
"isort",
41+
"mypy==0.991",
42+
]
43+
3344
[project.urls]
3445
Homepage = "https://github.com/ReadAlongs/SoundSwallower"
3546
Documentation = "https://soundswallower.readthedocs.io/"

requirements.dev.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)