From 6c62be964552d60ea49250904cb98f5fed1f544e Mon Sep 17 00:00:00 2001 From: willGraham01 <1willgraham@gmail.com> Date: Thu, 6 Jul 2023 15:54:29 +0100 Subject: [PATCH 1/3] MANIFEST only necessary files for package install --- MANIFEST.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index aaf57952..680b6390 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,8 @@ -prune tests/data +include README.md +include LICENSE +include pyproject.toml + +graft src + +prune benchmarks +prune tests From 6d9555968b95c8246a76d73b370376ca5d1cfd7c Mon Sep 17 00:00:00 2001 From: willGraham01 <1willgraham@gmail.com> Date: Thu, 6 Jul 2023 16:03:25 +0100 Subject: [PATCH 2/3] Add MANIFEST check to CI --- .github/workflows/test_and_deploy.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 8ec68cfb..d6497728 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -12,9 +12,16 @@ jobs: linting: runs-on: ubuntu-latest steps: - - uses: neuroinformatics-unit/actions/lint@v1.2.0 + - uses: neuroinformatics-unit/actions/lint@v2 + + manifest: + name: Check Manifest + runs-on: ubuntu-latest + steps: + - uses: neuroinformatics-unit/actions/check_manifest@v2 test: + needs: [linting, manifest] runs-on: ${{ matrix.os }} strategy: matrix: @@ -42,6 +49,7 @@ jobs: # Run cellfinder tests to make sure cellfinder is still compatible # with cellfinder-core test_cellfinder: + needs: [linting, manifest] name: Run cellfinder tests runs-on: ubuntu-latest steps: From eca7775e4380b4cae61767a39b1a7d0aacc68b3d Mon Sep 17 00:00:00 2001 From: willGraham01 <1willgraham@gmail.com> Date: Thu, 6 Jul 2023 16:08:51 +0100 Subject: [PATCH 3/3] Obey check-manifest overlords --- MANIFEST.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MANIFEST.in b/MANIFEST.in index 680b6390..995fdf64 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,6 +2,11 @@ include README.md include LICENSE include pyproject.toml +exclude *.yml +exclude *.yaml +exclude tox.ini +exclude CHANGELOG.md + graft src prune benchmarks