diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4b4af14..554c535 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,10 +27,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.10" - name: Install run: | - pip3 install -r requirements.dev.txt - pip3 install . + pip3 install .[dev] - name: Run tests run: python3 -m pytest wintest: @@ -38,10 +40,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - uses: actions/setup-python@v5 - name: Install run: | - pip3 install -r requirements.dev.txt - pip3 install . + pip3 install .[dev] - name: Run tests run: python3 -m pytest mactest: @@ -52,8 +54,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 469c522..eb28d06 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,8 @@ [build-system] requires = [ "scikit-build-core", - "Cython" + "Cython", + "setuptools>=61.2", ] build-backend = "scikit_build_core.build" @@ -30,6 +31,16 @@ classifiers = [ "Topic :: Multimedia :: Sound/Audio :: Speech", ] +[project.optional-dependencies] +dev = [ + "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/" 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