Skip to content

Commit

Permalink
final touch
Browse files Browse the repository at this point in the history
  • Loading branch information
nopcoder committed Apr 7, 2021
1 parent c5cb595 commit ae9f62d
Show file tree
Hide file tree
Showing 69 changed files with 78 additions and 14 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: pypi

on: workflow_dispatch
#release:
#types: [published]
on:
release:
types: [published]

jobs:
pypi:
Expand All @@ -16,14 +16,12 @@ jobs:
shell: bash
run: echo "::set-output name=tag::$(echo ${GITHUB_REF##*/} | sed s/^v//g)"
id: version
- name: Python re-generate client
run: make client-python PACKAGE_VERSION=${{ steps.version.outputs.tag }}
- name: Python build package
run: |
make client-python PACKAGE_VERSION=${{ steps.version.outputs.tag }}
make package-python
echo "LIST FILES"
ls -l clients/python
run: make package-python
- name: Python publish package
#if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ifndef PACKAGE_VERSION
PACKAGE_VERSION=0.1.0.dev
endif

PYTHON_IMAGE=python:#
PYTHON_IMAGE=python:3

export PATH:= $(PATH):$(GOBINPATH)

Expand Down Expand Up @@ -111,7 +111,7 @@ client-python: api/swagger.yml ## Generate SDK for Python client
clients: client-python

package-python:
$(DOCKER) run --rm -v $(shell pwd):/mnt -w /mnt/clients/python python:3 ./build-package.sh
$(DOCKER) run --rm -v $(shell pwd):/mnt -w /mnt/clients/python $(PYTHON_IMAGE) ./build-package.sh

package: package-python

Expand Down
2 changes: 1 addition & 1 deletion clients/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ Class | Method | HTTP request | Description

## Author


hello@treeverse.io


## Notes for Large OpenAPI documents
Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/api/actions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/api/auth_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/api/branches_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/api/commits_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/api/config_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/api/health_check_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/api/metadata_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/api/objects_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/api/refs_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/api/repositories_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/api/staging_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/api/tags_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/access_key_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/action_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/action_run_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/branch_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/commit_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/commit_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/credentials_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/credentials_with_secret.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/current_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/diff_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/group_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/group_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/hook_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/hook_run_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/merge_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/merge_result_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/object_stage_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/object_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
1 change: 1 addition & 0 deletions clients/python/lakefs/model/object_stats_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
lakeFS HTTP API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: hello@treeverse.io
Generated by: https://openapi-generator.tech
"""

Expand Down
Loading

0 comments on commit ae9f62d

Please sign in to comment.