diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 06ceac691..e2a0327a6 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -79,7 +79,7 @@ jobs: pip install --upgrade . - name: Build Distribution run: | - make build + make package - name: Publish Package uses: pypa/gh-action-pypi-publish@v1.6.4 diff --git a/MANIFEST.in b/MANIFEST.in index a0e0509b7..f0f9c5c6b 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,6 +2,7 @@ include CHANGES include holidays/py.typed recursive-include docs * recursive-include holidays *.py -recursive-include holidays/locale *.(mp)o +recursive-include holidays/locale *.mo +recursive-include holidays/locale *.po recursive-include scripts/l10n *.py recursive-include tests *.py diff --git a/Makefile b/Makefile index 8c679d88e..3f7c299d7 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,16 @@ help: @echo "Usage: make " - @echo " build build distribution" @echo " check run pre-commit and tests" @echo " coverage identify code not covered with tests" @echo " doc run documentation build process" @echo " help show summary of available commands" @echo " l10n update .pot and .po files" + @echo " package build package distribution" @echo " pre-commit run pre-commit against all files" @echo " setup setup development environment" @echo " test run tests (in parallel)" @echo " tox run tox (in parallel)" -build: - scripts/l10n/generate_mo_files.py - python -m build - check: make pre-commit make doc @@ -31,6 +27,10 @@ l10n: scripts/l10n/generate_po_files.py scripts/l10n/generate_mo_files.py +package: + scripts/l10n/generate_mo_files.py + python -m build + pre-commit: pre-commit run --all-files