Skip to content

Commit

Permalink
Merge pull request #2154 from bjlittle/check-manifest
Browse files Browse the repository at this point in the history
add ci manifest check
  • Loading branch information
dopplershift authored Mar 13, 2023
2 parents 5a9aeb4 + 24c170c commit 135d215
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 @@ -11,3 +11,9 @@ build-backend = "setuptools.build_meta"
[tool.codespell]
ignore-words-list = "damon,koordinates,linz,slippy,subtiles,tring"
skip = "./.git,./docs/build,./docs/source/gallery,./docs/source/reference,*.cpp,*.css,*.examples,*.js,*.html,*.ipynb,*.pdf,*.rst.txt"

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

0 comments on commit 135d215

Please sign in to comment.