Skip to content

Commit

Permalink
chore(ci): add check-manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Oct 15, 2024
1 parent 52a44d2 commit 8f60f9d
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ jobs:
run: uvx pyroma dist/*.tar.gz
- name: check-wheel-contents
run: uvx check-wheel-contents dist/*.whl
- name: check-manifst
run: uvx check-manifest -v

notes:
runs-on: ubuntu-24.04
Expand Down
15 changes: 10 additions & 5 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
include COPYING
include ChangeLog
include README.rst
include BACKERS.rst
include CONTRIBUTING.md
include manage.py
include *.rst
include *.md
include *.py
recursive-include weblate *.py
recursive-include weblate/static *
recursive-include weblate/templates *
Expand All @@ -16,6 +15,9 @@ recursive-include weblate/locale *.po
recursive-include weblate/locale *.mo
recursive-include weblate/examples *
recursive-include docs *.rst
recursive-include docs *.webp
recursive-include docs *.po
recursive-include docs *.pot
include docs/images/*
include docs/schemas/*.json
include docs/conf.py
Expand All @@ -27,7 +29,10 @@ include docs/_templates/*.html
include weblate/billing/test-data/*
include weblate/trans/tests/data/*
include weblate/trans/fixtures/simple-project.json
include client/*
include client/src/*.js
exclude weblate/settings.py
prune docs/_build
prune data*
global-exclude *.swp *.swo __pycache__ *.pyc *.pyo
prune dev-docker/data*
global-exclude *.swp *.swo *.swn __pycache__ *.pyc *.pyo
33 changes: 33 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,39 @@ Homepage = "https://weblate.org/"
"Source Code" = "https://github.com/WeblateOrg/weblate"
Twitter = "https://twitter.com/WeblateOrg"

[tool.check-manifest]
ignore = [
".gitmodules",
"scripts/*",
"scripts/*/*",
"scripts/*/*/*",
"scripts/*/*/*/*",
"ci/*",
"dev-docker/*",
"dev-docker/*/*",
"LICENSES/*",
"*.toml",
"*.yml",
"*.yaml",
"*.json",
"rundev.sh",
".editorconfig",
".gitmodules",
".imgbotconfig",
".reuse/dep5",
".stylelintrc",
".weblate",
".yamllint.yml",
# These are symlinks which are handled messy
"docs/locales/zh_TW",
"docs/locales/zh_TW/LC_MESSAGES/docs.po",
"docs/locales/zh_CN",
"docs/locales/zh_CN/LC_MESSAGES/docs.po"
]
ignore-bad-ideas = [
"weblate/trans/tests/data/cs.mo" # Test data
]

[tool.check-wheel-contents]
ignore = [
"W002", # Triggered by __init__.py or .license files
Expand Down

0 comments on commit 8f60f9d

Please sign in to comment.