diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4b4af14..01cd56b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: @@ -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: @@ -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: diff --git a/MANIFEST.in b/MANIFEST.in index e9a67fa..c1b0686 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -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 diff --git a/pyproject.toml b/pyproject.toml index ee96eb3..ddd5f6f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] requires = [ - "scikit-build-core", - "Cython" + "scikit-build-core", + "Cython" ] build-backend = "scikit_build_core.build" @@ -11,7 +11,7 @@ dynamic = ["version"] description = "An even smaller speech recognizer" readme = "README.md" authors = [ - {name = "David Huggins-Daines", email = "dhd@ecolingui.ca"} + {name = "David Huggins-Daines", email = "dhd@ecolingui.ca"} ] keywords = ["asr", "speech"] classifiers = [ @@ -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/" @@ -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] diff --git a/requirements.dev.txt b/requirements.dev.txt deleted file mode 100644 index 15e43ae..0000000 --- a/requirements.dev.txt +++ /dev/null @@ -1,8 +0,0 @@ -scikit-build -Cython -pytest -numpy -pre-commit -black==24.3.0 -isort -mypy==0.991