This is an automated email from the ASF dual-hosted git repository. kezhenxu94 pushed a commit to branch chore/makefile-release in repository https://gitbox.apache.org/repos/asf/skywalking-python.git
commit a2a34152de8a5601c604e0410f4b819bb867217e Author: kezhenxu94 <kezhenx...@163.com> AuthorDate: Mon Jul 27 13:35:10 2020 +0800 chore: add make goal to package release tar ball --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0ee496c..a116b4d 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +VERSION ?= latest + .PHONY: license setup: @@ -59,4 +61,10 @@ upload: package clean: rm -rf browser common language_agent management profile service_mesh_probe rm -rf skywalking_python.egg-info dist build - find . -type d -name "__pycache__" -exec rm -r {} + \ No newline at end of file + rm -rf skywalking-python*.tgz* + find . \( -d -name "__pycache__" -o -type file -name "*.pyc" \) -exec rm -r {} + + +release: clean lint license + -tar -zcvf skywalking-python-src-$(VERSION).tgz * + gpg --batch --yes --armor --detach-sig skywalking-python-src-$(VERSION).tgz + shasum -a 512 skywalking-python-src-$(VERSION).tgz > skywalking-python-src-$(VERSION).tgz.tgz.sha512