File tree Expand file tree Collapse file tree 8 files changed +41
-13
lines changed Expand file tree Collapse file tree 8 files changed +41
-13
lines changed Original file line number Diff line number Diff line change 2424 - uses : actions/checkout@v2
2525 - run : |
2626 PROBE_VERSION="$(python setup.py --version)"
27- echo "PROBE_VERSION =$PROBE_VERSION" >> $GITHUB_ENV
27+ echo "SPP_PROBE_VERSION =$PROBE_VERSION" >> $GITHUB_ENV
2828 - run : python setup.py sdist
29- - run : cp dist/sourceplusplus-${{ env.PROBE_VERSION }}.tar.gz e2e && ls && pwd
29+ - run : cp dist/sourceplusplus-${{ env.SPP_PROBE_VERSION }}.tar.gz e2e && ls && pwd
3030 - run : cd e2e && docker-compose up -d
3131 - name : Docker IPs
3232 run : docker inspect --format='{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq)
9090 - name : Docker logs
9191 run : cd e2e && docker-compose logs -t --tail="all"
9292 if : ${{ always() }}
93+
94+ - name : Remove Old Release Drafts
95+ if : github.ref == 'refs/heads/master'
96+ env :
97+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
98+ run : |
99+ curl -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/repos/$GITHUB_REPOSITORY/releases \
100+ | tr '\r\n' ' ' \
101+ | jq '.[] | select(.draft == true) | .id' \
102+ | xargs -I '{}' \
103+ curl -X DELETE -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/repos/$GITHUB_REPOSITORY/releases/{}
104+
105+ - name : Create Release Draft
106+ if : github.ref == 'refs/heads/master'
107+ id : createDraft
108+ uses : actions/create-release@v1
109+ env :
110+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
111+ with :
112+ tag_name : ${{ env.SPP_PROBE_VERSION }}
113+ release_name : v${{ env.SPP_PROBE_VERSION }}
114+ draft : true
Original file line number Diff line number Diff line change @@ -11,3 +11,9 @@ This project provides Python support to the [Source++](https://github.com/source
1111# Usage
1212
1313- ` pip install sourceplusplus `
14+
15+ ## Attach
16+
17+ ``` sh
18+ SourcePlusPlus().attach ()
19+ ```
Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ plugins {
44
55python {
66 pip(" apache-skywalking:0.7.0" )
7- }
7+ pip(" vertx-eventbus-client:1.0.0" )
8+ }
Original file line number Diff line number Diff line change @@ -4,14 +4,11 @@ WORKDIR /usr/local/bin
44
55RUN pip install Flask
66RUN pip install PyYAML
7+ RUN pip install vertx-eventbus-client
78
8- COPY vertx-eventbus-client-1.0.0.dev0 .tar.gz .
9+ COPY sourceplusplus-0.1.2 .tar.gz .
910
10- RUN pip install vertx-eventbus-client-1.0.0.dev0.tar.gz
11-
12- COPY sourceplusplus-0.1.0.tar.gz .
13-
14- RUN pip install sourceplusplus-0.1.0.tar.gz
11+ RUN pip install sourceplusplus-0.1.2.tar.gz
1512
1613COPY E2ETest.py .
1714
Original file line number Diff line number Diff line change 1+ vertx-eventbus-client ~= 1.0.0
12apache-skywalking ~= 0.7.0
23nopdb ~= 0.1.0
34pyhumps ~= 3.0.2
Original file line number Diff line number Diff line change 22from setuptools import setup
33
44setup (name = 'sourceplusplus' ,
5- version = '0.1.0 ' ,
5+ version = '0.1.2 ' ,
66 description = 'Source++ Python Probe' ,
77 url = 'https://github.com/sourceplusplus/probe-python' ,
88 author = 'Source++' ,
99 author_email = 'hello@sourceplusplus.com' ,
1010 license = 'Apache License, Version 2.0' ,
1111 packages = setuptools .find_packages (),
12- install_requires = ['apache-skywalking>=0.7.0' ,
12+ install_requires = ['vertx-eventbus-client>=1.0.0' ,
13+ 'apache-skywalking>=0.7.0' ,
1314 'nopdb>=0.1.0' ,
1415 'pyhumps>=3.0.2' ,
1516 'PyYAML>=6.0' ])
Original file line number Diff line number Diff line change 1- __version__ = '0.1.0 '
1+ __version__ = '0.1.2 '
22__name__ = 'Source++'
33agent_name = 'Source++ Python Probe'
44
55__version_major__ = '0'
66__version_minor__ = '1'
7- __version_micro__ = '0 '
7+ __version_micro__ = '2 '
You can’t perform that action at this time.
0 commit comments