Skip to content

Commit

Permalink
Update the MANIFEST.in file
Browse files Browse the repository at this point in the history
We include built asset files (in static/dist).
We exclude files that are only useful for dev.

We also add a CI job to check the Manifest.

Co-authored-by: Matthias Dötsch <[email protected]>
  • Loading branch information
pgiraud and brainexe committed Dec 5, 2024
1 parent 472c2c8 commit 79791e3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/python_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ jobs:
run: |
ruff check --output-format=github .
ruff format --check
- name: Check manifest
run: |
check-manifest
20 changes: 16 additions & 4 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
exclude powa/templates/
# Exclude all dot files and dot directories
exclude .*
recursive-exclude .* *

exclude vite.config.js
exclude *.json

recursive-exclude powa/static/js *
recursive-exclude powa/static/styles *
recursive-include powa/templates *.html
recursive-include powa/static/css *
recursive-include powa/static/img *
include powa/static/js/powa.min-all.js
include powa/static/js/config.js
include powa/static/js/require.js
recursive-include powa/static/dist *
include powa/powa.wsgi
include powa-web.conf-dist
include run_powa.py

include *.md
include *.txt
include CHANGELOG
include readme
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
-r requirements.txt
ruff --only-binary=ruff
check-manifest

0 comments on commit 79791e3

Please sign in to comment.