File tree 2 files changed +17
-1
lines changed
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 12
12
docs /examples
13
13
src /init_python_project /template
14
14
src /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
106
106
pytest ${PYTEST_ARGS}
107
107
108
108
109
- .PHONY : build install-build
109
+ .PHONY : build install-build copy-template build-clean
110
110
PKGNAME =init_python_project
111
111
PKGDIR =src/${PKGNAME}
112
112
BUILDDIR? =build/dist
@@ -125,6 +125,21 @@ copy-template:
125
125
build-clean : # # remove build artifacts
126
126
rm -rf ${BUILDDIR} ${PKGDIR} /template ${PKGDIR} /copier.yaml
127
127
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
+
128
143
129
144
.PHONY : help
130
145
# 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