Skip to content

Commit 37edeba

Browse files
authored
chore: only install extra modules when needed, bump up version (#103)
* chore: only install extra modules when needed, bump up version * test: remove some of the versions to shorten test time * test: give an image name to avoid unnecessary builds
1 parent b6f6edd commit 37edeba

File tree

6 files changed

+17
-11
lines changed

6 files changed

+17
-11
lines changed
File renamed without changes.

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@ microservices, cloud native and container-based (Docker, Kubernetes, Mesos) arch
2020
The Python agent module is published to [Pypi](https://pypi.org/project/apache-skywalking/), from where you can use `pip` to install:
2121

2222
```shell
23-
# Install the latest version
24-
pip install apache-skywalking
23+
# Install the latest version, using the default gRPC protocol to report data to OAP
24+
pip install "apache-skywalking"
25+
26+
# Install the latest version, using the http protocol to report data to OAP
27+
pip install "apache-skywalking[http]"
28+
29+
# Install the latest version, using the kafka protocol to report data to OAP
30+
pip install "apache-skywalking[kafka]"
2531

2632
# Install a specific version x.y.z
2733
# pip install apache-skywalking==x.y.z

setup.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
setup(
2727
name="apache-skywalking",
28-
version="0.4.0",
28+
version="0.5.0",
2929
description="Python Agent for Apache SkyWalking",
3030
long_description=README,
3131
long_description_content_type="text/markdown",
@@ -38,7 +38,6 @@
3838
install_requires=[
3939
"grpcio",
4040
"grpcio-tools",
41-
"requests",
4241
"packaging",
4342
],
4443
extras_require={
@@ -47,6 +46,12 @@
4746
"pyyaml",
4847
"pytest",
4948
],
49+
"http": [
50+
"requests",
51+
],
52+
"kafka": [
53+
"kafka",
54+
],
5055
},
5156
classifiers=[
5257
"Framework :: Flake8",

tests/plugin/docker/docker-compose.base.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ services:
2222
build:
2323
context: .
2424
dockerfile: Dockerfile.tool
25+
image: skywalking-collector:ci
2526
ports:
2627
- 19876:19876
2728
- 12800:12800
@@ -36,9 +37,9 @@ services:
3637
agent:
3738
build:
3839
context: ../../../
39-
dockerfile: tests/plugin/docker/Dockerfile.agent
4040
args:
4141
- SW_PYTHON_VERSION=${SW_PYTHON_VERSION:-latest}
42+
image: skywalking-agent:ci
4243
environment:
4344
SW_AGENT_COLLECTOR_BACKEND_SERVICES: collector:19876
4445
SW_AGENT_LOGGING_LEVEL: DEBUG

tests/plugin/sw_requests/test_request.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ class TestPlugin(TestPluginBase):
3333
'requests==2.24.0',
3434
'requests==2.20.0',
3535
'requests==2.19.0',
36-
'requests==2.18.0',
37-
'requests==2.17.0',
3836
'requests==2.13.0',
39-
'requests==2.11.0',
4037
'requests==2.9.0',
4138
])
4239
def test_plugin(self, docker_compose, version):

tests/plugin/sw_sanic/test_sanic.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ class TestPlugin(TestPluginBase):
3232
@pytest.mark.parametrize('version', [
3333
'sanic==20.3.0',
3434
'sanic==20.6.0',
35-
'sanic==20.6.1',
36-
'sanic==20.6.2',
37-
'sanic==20.6.3',
3835
'sanic==20.9.0',
3936
'sanic==20.9.1',
4037
])

0 commit comments

Comments
 (0)