Skip to content

Commit

Permalink
cicd publish package
Browse files Browse the repository at this point in the history
  • Loading branch information
naushadmohammed committed Jun 18, 2024
1 parent e6c5d41 commit 90dc92e
Show file tree
Hide file tree
Showing 12 changed files with 1,339 additions and 5 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Publish Python 🐍 distribution 📦 to PyPI

on: push

jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/kes-RHDHV
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = kes-RHDHV
version = 1.dev10
version = 1.dev12
author = RoyalHaskoningDHV
author_email = [email protected]
description = KES python client
Expand Down
Empty file added src/__init__.py
Empty file.
4 changes: 0 additions & 4 deletions src/kes/proto/.gitignore

This file was deleted.

128 changes: 128 additions & 0 deletions src/kes/proto/project_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

135 changes: 135 additions & 0 deletions src/kes/proto/project_pb2.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
"""
import builtins
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import typing
import typing_extensions

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

class ListProjectsRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
def __init__(self,
) -> None: ...
global___ListProjectsRequest = ListProjectsRequest

class ListProjectsReply(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
PROJECTS_FIELD_NUMBER: builtins.int
@property
def projects(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Project]: ...
def __init__(self,
*,
projects: typing.Optional[typing.Iterable[global___Project]] = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["projects",b"projects"]) -> None: ...
global___ListProjectsReply = ListProjectsReply

class LookupProjectRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
MASTERPROJECTID_FIELD_NUMBER: builtins.int
masterProjectId: typing.Text
def __init__(self,
*,
masterProjectId: typing.Text = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["masterProjectId",b"masterProjectId"]) -> None: ...
global___LookupProjectRequest = LookupProjectRequest

class LookupProjectReply(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
PROJECTS_FIELD_NUMBER: builtins.int
@property
def projects(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Project]: ...
def __init__(self,
*,
projects: typing.Optional[typing.Iterable[global___Project]] = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["projects",b"projects"]) -> None: ...
global___LookupProjectReply = LookupProjectReply

class ReadActivitiesRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
PROJECTID_FIELD_NUMBER: builtins.int
projectId: typing.Text
def __init__(self,
*,
projectId: typing.Text = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["projectId",b"projectId"]) -> None: ...
global___ReadActivitiesRequest = ReadActivitiesRequest

class ReadActivitiesReply(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ACTIVITIES_FIELD_NUMBER: builtins.int
@property
def activities(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Activity]: ...
def __init__(self,
*,
activities: typing.Optional[typing.Iterable[global___Activity]] = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["activities",b"activities"]) -> None: ...
global___ReadActivitiesReply = ReadActivitiesReply

class Activity(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ID_FIELD_NUMBER: builtins.int
DESCRIPTION_FIELD_NUMBER: builtins.int
TABLELIBRARYID_FIELD_NUMBER: builtins.int
id: typing.Text
description: typing.Text
tableLibraryId: typing.Text
def __init__(self,
*,
id: typing.Text = ...,
description: typing.Text = ...,
tableLibraryId: typing.Text = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["description",b"description","id",b"id","tableLibraryId",b"tableLibraryId"]) -> None: ...
global___Activity = Activity

class Project(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ID_FIELD_NUMBER: builtins.int
NAME_FIELD_NUMBER: builtins.int
PROJECTNUMBER_FIELD_NUMBER: builtins.int
MASTERPROJECTID_FIELD_NUMBER: builtins.int
id: typing.Text
name: typing.Text
projectNumber: typing.Text
masterProjectId: typing.Text
def __init__(self,
*,
id: typing.Text = ...,
name: typing.Text = ...,
projectNumber: typing.Text = ...,
masterProjectId: typing.Text = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["id",b"id","masterProjectId",b"masterProjectId","name",b"name","projectNumber",b"projectNumber"]) -> None: ...
global___Project = Project

class DownloadReportRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ACTIVITYID_FIELD_NUMBER: builtins.int
activityId: typing.Text
def __init__(self,
*,
activityId: typing.Text = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["activityId",b"activityId"]) -> None: ...
global___DownloadReportRequest = DownloadReportRequest

class DownloadReportReply(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
CHUNK_FIELD_NUMBER: builtins.int
chunk: builtins.bytes
def __init__(self,
*,
chunk: builtins.bytes = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["chunk",b"chunk"]) -> None: ...
global___DownloadReportReply = DownloadReportReply
Loading

0 comments on commit 90dc92e

Please sign in to comment.