th2_grpc_act_ssh
Project description
th2 gRPC act template library (2.0.0)
This is the template project for creating custom gRPC act libraries. It contains proto messages and Act
service that are used th2 act template. See act_template.proto file for details.
Tool generates code from .proto
files and uploads built packages (.proto
files and generated code) to specified repositories.
How to transform template
- Create a directory with the same name as project name (use underscores instead of dashes) under
src/main/proto
directory (remove other files and directories if they exist). - Place your custom
.proto
files in created directory. Pay attention topackage
specifier andimport
statements. - Edit
release_version
andvcs_url
properties ingradle.properties
file. - Edit
rootProject.name
variable insettings.gradle
file. This will be the name of Java package. - Edit
package_info.json
file in order to specify name and version for Python package (create file if it's absent). - Edit parameters of
setup.py
insetup
function invocation such as:author
,author_email
,url
. Do not edit the others.
Note that the name of created directory under src/main/proto
directory is used in Python (it's a package name).
How to maintain project
- Make your changes.
- Up version of Java package in
gradle.properties
file. - Up version of Python package in
package_info.json
file. - Commit everything.
How to run project
Java
If you wish to manually create and publish package for Java, run these command:
gradle --no-daemon clean build publish artifactoryPublish \
-Pbintray_user=${BINTRAY_USER} \
-Pbintray_key=${BINTRAY_KEY}
BINTRAY_USER
and BINTRAY_KEY
are parameters for publishing.
Python
If you wish to manually create and publish package for Python:
- Generate services by gradle:
You can find the generated files by following path:gradle --no-daemon clean generateProto
src/gen/main/services/python
- Generate code from
.proto
files and publish everything:pip install -r requirements.txt python setup.py generate python setup.py sdist twine upload --repository-url ${PYPI_REPOSITORY_URL} --username ${PYPI_USER} --password ${PYPI_PASSWORD} dist/*
PYPI_REPOSITORY_URL
,PYPI_USER
andPYPI_PASSWORD
are parameters for publishing.
Release Notes
2.0.0
- Migrate to book and pages
1.1.0
- Update grpc-common version
1.0.0
- Up major version for common V3 component
0.0.5
- The exit code value can be unknown when the script or command is interrupting by the act. The interrupted flag will be
true
in this case.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file th2_grpc_act_ssh-2.0.0.dev5409734028.tar.gz
.
File metadata
- Download URL: th2_grpc_act_ssh-2.0.0.dev5409734028.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d62a26b8039553f51fe57d99d44252337beabe866ce1e9dff946dc0d7cd0637 |
|
MD5 | 9e5a354ccbe51fdcebdb0da53dd6ed1c |
|
BLAKE2b-256 | e77e762f6ae24fcee76429b921e9b69c708bb5dbdacf3e2494fd89fc857d2e5b |