|
32 | 32 | test: ## run test suite |
33 | 33 | PYTHONPATH=$(SRC):$(TESTS) pipenv run pytest $(TESTS) |
34 | 34 |
|
35 | | -########################################################################## |
36 | | -# DOCS |
37 | | -########################################################################## |
38 | | - |
39 | | -.PHONY: sphinx-quickstart |
40 | | -sphinx-quickstart: ## run the sphinx quickstart |
41 | | - pipenv run docker run -it --rm -v $(PWD)/docs:/docs sphinxdoc/sphinx sphinx-quickstart |
42 | | - |
43 | | -.PHONY: sphinx-html |
44 | | -sphinx-html: ## build the sphinx html |
45 | | - pipenv run make -C docs html |
46 | | - |
47 | | -.PHONY: sphinx-rebuild |
48 | | -sphinx-rebuild: ## re-build the sphinx docs |
49 | | - cd $(DOCS) && \ |
50 | | - pipenv run make clean && pipenv run make html |
51 | | - |
52 | | -.PHONY: sphinx-autobuild |
53 | | -sphinx-autobuild: ## activate autobuild of docs |
54 | | - cd $(DOCS) && \ |
55 | | - pipenv run sphinx-autobuild . _build/html --watch $(SRC) |
56 | | - |
57 | | -################################################################################ |
58 | | -# WORKFLOWS |
59 | | -################################################################################ |
60 | | - |
61 | 35 | .PHONY: test-all-versions |
62 | 36 | test-all-versions: ## Run tests across all supported Python versions with pyenv + pipenv |
63 | 37 | @for PY in 3.9 3.10 3.11 3.12; do \ |
@@ -88,17 +62,27 @@ test-version: ## Run tests with a specific Python version via pyenv + pipenv. Us |
88 | 62 | PYTHONPATH=./src:./tests $$VENV_DIR/bin/pipenv run pytest ./tests/unit || exit 1; \ |
89 | 63 | rm -rf $$VENV_DIR |
90 | 64 |
|
91 | | -.PHONY: release-please-pr-dry-run |
92 | | -release-please-pr-dry-run: ## Preview next release version and change log using release-please |
93 | | - release-please release-pr \ |
94 | | - --config-file release-please-config.json \ |
95 | | - --manifest-file .release-please-manifest.json \ |
96 | | - --token=${GITHUB_TOKEN} \ |
97 | | - --repo-url=runemalm/codius-cli \ |
98 | | - --target-branch=master \ |
99 | | - --release-type=python \ |
100 | | - --debug \ |
101 | | - --dry-run |
| 65 | +########################################################################## |
| 66 | +# DOCS |
| 67 | +########################################################################## |
| 68 | + |
| 69 | +.PHONY: sphinx-quickstart |
| 70 | +sphinx-quickstart: ## run the sphinx quickstart |
| 71 | + pipenv run docker run -it --rm -v $(PWD)/docs:/docs sphinxdoc/sphinx sphinx-quickstart |
| 72 | + |
| 73 | +.PHONY: sphinx-html |
| 74 | +sphinx-html: ## build the sphinx html |
| 75 | + pipenv run make -C docs html |
| 76 | + |
| 77 | +.PHONY: sphinx-rebuild |
| 78 | +sphinx-rebuild: ## re-build the sphinx docs |
| 79 | + cd $(DOCS) && \ |
| 80 | + pipenv run make clean && pipenv run make html |
| 81 | + |
| 82 | +.PHONY: sphinx-autobuild |
| 83 | +sphinx-autobuild: ## activate autobuild of docs |
| 84 | + cd $(DOCS) && \ |
| 85 | + pipenv run sphinx-autobuild . _build/html --watch $(SRC) |
102 | 86 |
|
103 | 87 | ################################################################################ |
104 | 88 | # RELEASE (LOCALLY) |
|
0 commit comments