-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #222 from camunda-community-hub/development
v3.0.0
- Loading branch information
Showing
115 changed files
with
4,200 additions
and
2,981 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[bumpversion] | ||
current_version = 3.0.0 | ||
commit = True | ||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?P<rc>.*) | ||
serialize = | ||
{major}.{minor}.{patch}{rc} | ||
{major}.{minor}.{patch} | ||
|
||
[bumpversion:part:rc] | ||
optional_value = final | ||
values = | ||
rc1 | ||
rc2 | ||
rc3 | ||
rc4 | ||
rc5 | ||
final | ||
|
||
[bumpversion:file:setup.py] | ||
|
||
[bumpversion:file:pyzeebe/__init__.py] | ||
|
||
[bumpversion:file:docs/conf.py] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Lint pyzeebe | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
type-checking: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
container: python:3.8 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
pip install pipenv | ||
pipenv install --dev | ||
- name: Lint with mypy | ||
run: | | ||
pipenv run mypy pyzeebe | ||
import-checking: | ||
runs-on: ubuntu-latest | ||
|
||
container: python:3.8 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
pip install pipenv | ||
pipenv install --dev | ||
- name: Check imports | ||
run: | | ||
pipenv run isort . --check --diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Publish pyzeebe | |
|
||
on: | ||
release: | ||
types: [created] | ||
types: [created, prereleased] | ||
|
||
jobs: | ||
publish: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[mypy] | ||
|
||
[mypy-grpc] | ||
ignore_missing_imports = True | ||
|
||
[mypy-oauthlib] | ||
ignore_missing_imports = True | ||
|
||
[mypy-requests_oauthlib] | ||
ignore_missing_imports = True | ||
|
||
[mypy-zeebe_grpc.gateway_pb2] | ||
ignore_missing_imports = True | ||
|
||
[mypy-zeebe_grpc.gateway_pb2_grpc] | ||
ignore_missing_imports = True | ||
|
||
[mypy-requests] | ||
ignore_missing_imports = True | ||
|
||
[mypy-aiofiles] | ||
ignore_missing_imports = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
======== | ||
Channels | ||
======== | ||
|
||
In order to instantiate a ZeebeWorker or ZeebeClient you will need to provide an instance of a `grpc.aio.Channel`. | ||
|
||
Pyzeebe provides a couple standard ways to achieve this: | ||
|
||
|
||
Insecure | ||
-------- | ||
|
||
Create a grpc channel connected to a Zeebe Gateway with tls disabled | ||
|
||
|
||
.. autofunction:: pyzeebe.create_insecure_channel | ||
|
||
|
||
Example: | ||
|
||
.. code-block:: python | ||
from pyzeebe import create_insecure_channel | ||
channel = create_insecure_channel(hostname="zeebe", port=443) | ||
Secure | ||
------ | ||
|
||
Create a grpc channel with a secure connection to a Zeebe Gateway with tls | ||
|
||
.. autofunction:: pyzeebe.create_secure_channel | ||
|
||
Example: | ||
|
||
.. code-block:: python | ||
import grpc | ||
from pyzeebe import create_secure_channel | ||
grpc.ssl_channel_credentials(root_certificates="<root_certificate>", private_key="<private_key>") | ||
channel = create_secure_channel(channel_credentials=credentials) | ||
Camunda Cloud | ||
------------- | ||
|
||
Create a grpc channel connected to a Zeebe Gateway running in camunda cloud | ||
|
||
.. autofunction:: pyzeebe.create_camunda_cloud_channel | ||
|
||
Example: | ||
|
||
.. code-block:: python | ||
from pyzeebe import create_camunda_cloud_channel | ||
channel = create_camunda_cloud_channel("client_id", "client_secret", "cluster_id") |
Oops, something went wrong.