Skip to content

Commit

Permalink
Fix distribution build (#1028)
Browse files Browse the repository at this point in the history
* Fix distribution build.

* Fix manifest file list.
  • Loading branch information
arkid15r authored Mar 15, 2023
1 parent 80927d6 commit 9f7fa06
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
pip install --upgrade .
- name: Build Distribution
run: |
make build
make package
- name: Publish Package
uses: pypa/[email protected]
Expand Down
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
help:
@echo "Usage: make <target>"
@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
Expand All @@ -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

Expand Down

0 comments on commit 9f7fa06

Please sign in to comment.