Skip to content

Commit

Permalink
add ci manifest check
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle committed Mar 13, 2023
1 parent d546f95 commit 790df0c
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 8 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci-manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Reference:
# - https://github.com/actions/checkout

name: ci-manifest

on:
pull_request:
branches:
- "*"

push:
branches-ignore:
- "dependabot/*"

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
manifest:
name: "check-manifest"

runs-on: ubuntu-latest

defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: "check-manifest"
run: |
pipx run check-manifest
23 changes: 15 additions & 8 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
include *.md
prune .github
prune .circleci
prune benchmarks
prune docs
prune examples
include requirements/*.txt
graft tools
exclude .appveyor.yml
exclude .coveragerc
exclude .git-blame-ignore-revs
include .gitattributes
include .gitignore
exclude .pre-commit-config.yaml
include CHANGES
include COPYING*
include environment.yml
include INSTALL
include README.rst
include requirements/*.txt
include lib/cartopy/data/*
include lib/cartopy/io/srtm.npz
include lib/cartopy/tests/lakes_shapefile/*
recursive-include lib *.py
recursive-include lib *.pyx *.pxd *.h *.c *.cpp
recursive-include lib/cartopy *.cpp *.h *.py *.pyx
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ requires = [
"setuptools_scm >= 7.0.0",
]
build-backend = "setuptools.build_meta"

[tool.check-manifest]
ignore = [
"lib/cartopy/_version.py",
"lib/cartopy/trace.cpp",
]

0 comments on commit 790df0c

Please sign in to comment.