Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: Add MANIFEST.in #278

Merged
merged 4 commits into from
Sep 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: test distribution build
on:
push:
branches:
- master
tags:
- v*
pull_request:
branches:
- master
workflow_dispatch:

jobs:
build-package:
name: Build and test Python distro
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install python-build, check-manifest, and twine
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install build check-manifest twine
python -m pip list

- name: Check MANIFEST
run: |
check-manifest --verbose

- name: Build a wheel and a sdist
run: |
python -m build --outdir dist/ .

- name: Verify the distribution
run: twine check dist/*

- name: List contents of sdist
run: python -m tarfile --list dist/cabinetry-*.tar.gz

- name: List contents of wheel
run: python -m zipfile --list dist/cabinetry-*.whl
12 changes: 12 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
prune **
graft src
graft tests

include setup.py
include setup.cfg
include LICENSE
include README.md
include pyproject.toml
include MANIFEST.in

global-exclude __pycache__ *.py[cod] *.png