Skip to content

Commit d6f5994

Browse files
committed
Merge branch 'master' into live-meter
2 parents a5641ad + 51d787a commit d6f5994

File tree

8 files changed

+41
-13
lines changed

8 files changed

+41
-13
lines changed

.github/workflows/e2e.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
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)
@@ -90,3 +90,25 @@ jobs:
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

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
```

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ plugins {
44

55
python {
66
pip("apache-skywalking:0.7.0")
7-
}
7+
pip("vertx-eventbus-client:1.0.0")
8+
}

e2e/Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@ WORKDIR /usr/local/bin
44

55
RUN pip install Flask
66
RUN 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

1613
COPY E2ETest.py .
1714

-8.19 KB
Binary file not shown.

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
vertx-eventbus-client~=1.0.0
12
apache-skywalking~=0.7.0
23
nopdb~=0.1.0
34
pyhumps~=3.0.2

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
from setuptools import setup
33

44
setup(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'])

sourceplusplus/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
__version__ = '0.1.0'
1+
__version__ = '0.1.2'
22
__name__ = 'Source++'
33
agent_name = 'Source++ Python Probe'
44

55
__version_major__ = '0'
66
__version_minor__ = '1'
7-
__version_micro__ = '0'
7+
__version_micro__ = '2'

0 commit comments

Comments
 (0)