Skip to content

Commit 2a6a7a6

Browse files
committed
internal: add releasing features
1 parent d734e40 commit 2a6a7a6

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,9 @@ test-coverage: $(VENV_FOLDER) ## run tests with coverage
132132
## Add bobtemplates features (check bobtemplates.plone's documentation to get the list of available features)
133133
add: $(VENV_FOLDER)
134134
@uvx plonecli add -b .mrbob.ini $(filter-out $@,$(MAKECMDGOALS))
135+
136+
.PHONY: release
137+
release: $(VENV_FOLDER) ## Create a release
138+
@echo "$(GREEN)==> Create a release$(RESET)"
139+
@uv pip install -e ".[release]"
140+
@uv run fullrelease

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ test = [
3939
"pytest-cov",
4040
"pytest-plone>=0.5.0",
4141
]
42+
release = [
43+
"zest.releaser[recommended]",
44+
"zestreleaser.towncrier",
45+
"zest.pocompile",
46+
]
4247

4348
[project.urls]
4449
Homepage = "https://github.com/collective/cs_dynamicpages"
@@ -169,3 +174,7 @@ source_pkgs = ["cs_dynamicpages", "tests"]
169174
branch = true
170175
parallel = true
171176
omit = ["src/cs_dynamicpages/locales/*.py"]
177+
178+
179+
[tool.zest-releaser]
180+
python-file-with-version = "src/cs_dynamicpages/__init__.py"

0 commit comments

Comments
 (0)