Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,38 +24,11 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r test-requirements.txt

- name: Test with pytest
run: |
pytest --cov=gridly

release:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
permissions:
contents: write

steps:
- uses: actions/checkout@v4

- name: Get version
run: |
VER=$(cat VERSION)
echo "RELEASE_VERSION=$VER" >> $GITHUB_ENV

- name: Github Release
uses: softprops/action-gh-release@v1
id: create_release
with:
draft: false
prerelease: true
tag_name: v${{ env.RELEASE_VERSION }}
env:
GITHUB_TOKEN: ${{ github.token }}
2 changes: 0 additions & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ docs/LqaModelApi.md
docs/MergeBranchRequest.md
docs/MergeCellConflict.md
docs/MergeRecordConflict.md
docs/MergeRecordOption.md
docs/MovePath.md
docs/NumberFormat.md
docs/PathApi.md
Expand Down Expand Up @@ -209,7 +208,6 @@ gridly/models/lqa_model_sub_category_response.py
gridly/models/merge_branch_request.py
gridly/models/merge_cell_conflict.py
gridly/models/merge_record_conflict.py
gridly/models/merge_record_option.py
gridly/models/move_path.py
gridly/models/number_format.py
gridly/models/path_list.py
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Gridly API documentation
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 6.13.0
- Package version: 1.5.0
- Package version: 1.5.1
- Generator version: 7.14.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://www.gridly.com](https://www.gridly.com)
Expand Down Expand Up @@ -262,7 +262,6 @@ Class | Method | HTTP request | Description
- [MergeBranchRequest](docs/MergeBranchRequest.md)
- [MergeCellConflict](docs/MergeCellConflict.md)
- [MergeRecordConflict](docs/MergeRecordConflict.md)
- [MergeRecordOption](docs/MergeRecordOption.md)
- [MovePath](docs/MovePath.md)
- [NumberFormat](docs/NumberFormat.md)
- [PathList](docs/PathList.md)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.0
1.5.1
1 change: 1 addition & 0 deletions docs/Cell.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**column_id** | **str** | | [optional]
**color** | **str** | | [optional]
**dependency_status** | **str** | | [optional]
**length_limit** | **int** | | [optional]
**line_limit** | **int** | | [optional]
Expand Down
16 changes: 0 additions & 16 deletions docs/MergeRecordOption.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/PathApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Name | Type | Description | Notes

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | OK | - |
**201** | Created | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

Expand Down
1 change: 1 addition & 0 deletions docs/SetCell.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**color** | **str** | | [optional]
**column_id** | **str** | | [optional]
**dependency_status** | **str** | | [optional]
**length_limit** | **int** | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/ViewApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Name | Type | Description | Notes

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**201** | OK | - |
**201** | Created | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

Expand Down
4 changes: 1 addition & 3 deletions gridly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
""" # noqa: E501


__version__ = "1.5.0"
__version__ = "1.5.1"

# Define package exports
__all__ = [
Expand Down Expand Up @@ -107,7 +107,6 @@
"MergeBranchRequest",
"MergeCellConflict",
"MergeRecordConflict",
"MergeRecordOption",
"MovePath",
"NumberFormat",
"PathList",
Expand Down Expand Up @@ -242,7 +241,6 @@
from gridly.models.merge_branch_request import MergeBranchRequest as MergeBranchRequest
from gridly.models.merge_cell_conflict import MergeCellConflict as MergeCellConflict
from gridly.models.merge_record_conflict import MergeRecordConflict as MergeRecordConflict
from gridly.models.merge_record_option import MergeRecordOption as MergeRecordOption
from gridly.models.move_path import MovePath as MovePath
from gridly.models.number_format import NumberFormat as NumberFormat
from gridly.models.path_list import PathList as PathList
Expand Down
6 changes: 3 additions & 3 deletions gridly/api/path_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def create(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "PathList",
'201': "PathList",
}
response_data = self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -175,7 +175,7 @@ def create_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "PathList",
'201': "PathList",
}
response_data = self.api_client.call_api(
*_param,
Expand Down Expand Up @@ -246,7 +246,7 @@ def create_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "PathList",
'201': "PathList",
}
response_data = self.api_client.call_api(
*_param,
Expand Down
2 changes: 1 addition & 1 deletion gridly/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Gridly Python SDK 1.5.0'
self.user_agent = 'Gridly Python SDK 1.5.1'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion gridly/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def to_debug_report(self) -> str:
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 6.13.0\n"\
"SDK Package Version: 1.5.0".\
"SDK Package Version: 1.5.1".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
1 change: 0 additions & 1 deletion gridly/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
from gridly.models.merge_branch_request import MergeBranchRequest
from gridly.models.merge_cell_conflict import MergeCellConflict
from gridly.models.merge_record_conflict import MergeRecordConflict
from gridly.models.merge_record_option import MergeRecordOption
from gridly.models.move_path import MovePath
from gridly.models.number_format import NumberFormat
from gridly.models.path_list import PathList
Expand Down
4 changes: 3 additions & 1 deletion gridly/models/cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class Cell(BaseModel):
Cell
""" # noqa: E501
column_id: Optional[StrictStr] = Field(default=None, alias="columnId")
color: Optional[StrictStr] = None
dependency_status: Optional[StrictStr] = Field(default=None, alias="dependencyStatus")
length_limit: Optional[StrictInt] = Field(default=None, alias="lengthLimit")
line_limit: Optional[StrictInt] = Field(default=None, alias="lineLimit")
Expand All @@ -37,7 +38,7 @@ class Cell(BaseModel):
source_status: Optional[StrictStr] = Field(default=None, alias="sourceStatus")
tm: Optional[StrictBool] = None
value: Optional[Dict[str, Any]] = None
__properties: ClassVar[List[str]] = ["columnId", "dependencyStatus", "lengthLimit", "lineLimit", "mt", "readOnly", "referencedIds", "sourceStatus", "tm", "value"]
__properties: ClassVar[List[str]] = ["columnId", "color", "dependencyStatus", "lengthLimit", "lineLimit", "mt", "readOnly", "referencedIds", "sourceStatus", "tm", "value"]

@field_validator('dependency_status')
def dependency_status_validate_enum(cls, value):
Expand Down Expand Up @@ -111,6 +112,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:

_obj = cls.model_validate({
"columnId": obj.get("columnId"),
"color": obj.get("color"),
"dependencyStatus": obj.get("dependencyStatus"),
"lengthLimit": obj.get("lengthLimit"),
"lineLimit": obj.get("lineLimit"),
Expand Down
4 changes: 3 additions & 1 deletion gridly/models/set_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ class SetCell(BaseModel):
"""
SetCell
""" # noqa: E501
color: Optional[StrictStr] = None
column_id: Optional[StrictStr] = Field(default=None, alias="columnId")
dependency_status: Optional[StrictStr] = Field(default=None, alias="dependencyStatus")
length_limit: Optional[StrictInt] = Field(default=None, alias="lengthLimit")
referenced_ids: Optional[List[StrictStr]] = Field(default=None, alias="referencedIds")
source_status: Optional[StrictStr] = Field(default=None, alias="sourceStatus")
value: Optional[Dict[str, Any]] = None
__properties: ClassVar[List[str]] = ["columnId", "dependencyStatus", "lengthLimit", "referencedIds", "sourceStatus", "value"]
__properties: ClassVar[List[str]] = ["color", "columnId", "dependencyStatus", "lengthLimit", "referencedIds", "sourceStatus", "value"]

@field_validator('dependency_status')
def dependency_status_validate_enum(cls, value):
Expand Down Expand Up @@ -106,6 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)

_obj = cls.model_validate({
"color": obj.get("color"),
"columnId": obj.get("columnId"),
"dependencyStatus": obj.get("dependencyStatus"),
"lengthLimit": obj.get("lengthLimit"),
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "gridly"
version = "1.5.0"
version = "1.5.1"
description = "Gridly API"
authors = [
{name = "Gridly Team",email = "support@gridly.com"},
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "gridly"
VERSION = "1.5.0"
VERSION = "1.5.1"
PYTHON_REQUIRES = ">= 3.9"
REQUIRES = [
"urllib3 >= 2.1.0, < 3.0.0",
Expand Down