File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1212docs /examples
1313src /init_python_project /template
1414src /init_python_project /copier.yaml
15+ .env
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ test-all: ## run all tests
106106 pytest ${PYTEST_ARGS}
107107
108108
109- .PHONY : build install-build
109+ .PHONY : build install-build copy-template build-clean
110110PKGNAME =init_python_project
111111PKGDIR =src/${PKGNAME}
112112BUILDDIR? =build/dist
@@ -125,6 +125,21 @@ copy-template:
125125build-clean : # # remove build artifacts
126126 rm -rf ${BUILDDIR} ${PKGDIR} /template ${PKGDIR} /copier.yaml
127127
128+ .PHONY : release release-test release-tag release-pypi release-github
129+ release : release-test release-tag build release-pypi release-github
130+ release-test :
131+ @nox
132+ release-tag :
133+ @git tag -m ' bump version to ' ` init-python-project --version` ` init-python-project --version` --sign
134+ release-pypi :
135+ twine upload ${BUILDDIR} /*
136+ release-github :
137+ @git push --tags
138+ gh release create ` init-python-project --version` \
139+ --title ` init-python-project --version` \
140+ --notes ' *[see changes](https://github.com/jannismain/python-project-template/blob/main/CHANGELOG.md#' ` init-python-project --version | tr -d .` ' ---' ` date -Idate` ' )*'
141+ gh release upload ` init-python-project --version` ${BUILDDIR} /* .tar.gz ${BUILDDIR} /* .whl
142+
128143
129144.PHONY : help
130145# a nice way to document Makefiles, found here: https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
You can’t perform that action at this time.
0 commit comments