diff --git a/.copier-answers.yaml b/.copier-answers.yaml index 6f40962..2e9970d 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: a03224b +_commit: 9642da9 _src_path: https://github.com/python-project-templates/base.git add_docs: true add_extension: js diff --git a/.github/workflows/wiki.yaml b/.github/workflows/wiki.yaml index 1588acd..d5f3b74 100644 --- a/.github/workflows/wiki.yaml +++ b/.github/workflows/wiki.yaml @@ -22,6 +22,6 @@ jobs: steps: - uses: actions/checkout@v4 - run: cp README.md docs/wiki/Home.md - - uses: Andrew-Chen-Wang/github-wiki-action@v4 + - uses: Andrew-Chen-Wang/github-wiki-action@v5 with: path: docs/wiki diff --git a/Makefile b/Makefile index 73183e1..1c3d804 100644 --- a/Makefile +++ b/Makefile @@ -5,11 +5,21 @@ develop-py: uv pip install -e .[develop] -develop-js: - cd js; pnpm install && npx playwright install +develop-js: requirements-js develop: develop-js develop-py ## setup project for development +.PHONY: requirements-py requirements-js requirements +requirements-py: ## install prerequisite python build requirements + python -m pip install --upgrade pip toml + python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))'` + python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print(" ".join(c["project"]["optional-dependencies"]["develop"]))'` + +requirements-js: ## install prerequisite javascript build requirements + cd js; pnpm install && npx playwright install + +requirements: requirements-js requirements-py ## setup project for development + .PHONY: build-py build-js build build-py: python -m build -w -n