From 4b1953b43b1bcc836d436d37752cbdd52bb64c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8xbro=20Hansen?= Date: Sun, 26 Mar 2023 13:45:50 +0200 Subject: [PATCH] Clean up --- .github/workflows/build.yaml | 2 +- .github/workflows/test.yaml | 4 ++-- pyproject.toml | 7 +------ 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7a08efd..f7265ef 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -17,7 +17,7 @@ jobs: - name: Install hatch run: pipx install hatch - name: Build sdist and wheel - run: hatch build -c + run: hatch build --clean - name: Publish if: github.event_name == 'release' && github.event.action == 'published' run: hatch publish --user __token__ --auth ${{ secrets.pypi_password }} diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6229c88..bec9ef1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -21,7 +21,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] timeout-minutes: 10 steps: - uses: actions/checkout@v3 @@ -31,4 +31,4 @@ jobs: - name: Install hatch run: pipx install hatch - name: Testing - run: hatch run test.py${{ matrix.python-version }}:run + run: hatch run +py=${{ matrix.python-version }} test:run diff --git a/pyproject.toml b/pyproject.toml index e5b1bbe..372c5da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,11 +31,6 @@ clean-notebook = "clean_notebook.__main__:main" [project.optional-dependencies] dev = ["hatch", "pytest", "black", "ruff", "mypy", "pre-commit"] -# [tool.setuptools.packages.find] -# where = ["src"] -# include = ["clean_notebook*"] -# namespaces = false - [tool.hatch.version] source = "vcs" @@ -46,7 +41,7 @@ scripts.run = "pre-commit run --all" [tool.hatch.envs.test] dependencies = ["pytest"] scripts.run = "pytest tests" -matrix = [{python = ["3.8", "3.9", "3.10", "3.11"]}] +matrix = [{python = ["3.8", "3.9", "3.10", "3.11", "3.12"]}] [tool.hatch.build] sources = ["src"]