Skip to content

Commit

Permalink
Merge pull request #1 from Project-OMOTES/first_version
Browse files Browse the repository at this point in the history
First version
  • Loading branch information
lfse-slafleur authored Jan 26, 2024
2 parents d47d359 + 6cbb8bb commit ae80619
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build-Test-Lint-etc (linux)
name: Build (linux)

on: [push]

jobs:
build:
build-python:
name: Build the python package
runs-on: ubuntu-latest
strategy:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/python_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ jobs:
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: python/dist/
2 changes: 1 addition & 1 deletion ci/linux/create_venv.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh

python3.11 -m venv ./.venv
python3 -m venv ./.venv
. .venv/bin/activate
pip3 install pip-tools
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "omotes_sdk_protocol_generation"
dynamic = ["version"]
authors = [{ name = "Sebastiaan la Fleur", email = "[email protected]" }]
description = "Maintains and generates the OMOTES SDK protocol in various language."
readme = "README.md"
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
Expand Down
15 changes: 15 additions & 0 deletions python/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# OMOTES SDK Protocol
This package contains the protobuf (proto3) message definitions in Python for the OMOTES SDK protocol.
This protocol specifies job communication between OMOTES and any user of the SDK.

# Example
```python
import uuid
import datetime
from omotes_sdk_protocol.job_pb2 import JobSubmission

some_message = JobSubmission(uuid=uuid.uuid4(),
timeout_ms=round(datetime.timedelta(seconds=10).total_seconds() * 1000),
workflow_type="grow_optimizer",
esdl=b'your raw esdl encoded as UTF-8 here')
```
2 changes: 1 addition & 1 deletion python/ci/linux/create_venv.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh

python3.11 -m venv ./python/.venv
python3 -m venv ./python/.venv
. ./python/.venv/bin/activate
pip3 install pip-tools
1 change: 1 addition & 0 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "omotes_sdk_protocol"
dynamic = ["version"]
authors = [{ name = "Sebastiaan la Fleur", email = "[email protected]" }]
description = "Python implementation of OMOTES SDK protocol through which jobs may be submitted and administered. Messages include checking on progress, cancelling a job and receiving status updates."
readme = "README.md"
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
Expand Down

0 comments on commit ae80619

Please sign in to comment.