Skip to content

Commit 4266c91

Browse files
authored
Merge pull request #15 from Jhonatan-Jeferson/main
Fix for upload issue and changing some deps to devdeps
2 parents 85c7f3c + d890fe3 commit 4266c91

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

pyproject.toml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = 'squarecloud-api'
3-
version = '3.7.4'
3+
version = '3.7.5'
44
description = 'SquareCloud API wrapper'
55
authors = ['Robert Nogueira <robertlucasnogueira@gmail.com>']
66
repository = 'https://github.com/squarecloudofc/wrapper-api-py'
@@ -14,6 +14,12 @@ packages = [{ include = "squarecloud" }]
1414
python = '^3.13'
1515
typing-extensions = "^4.12.2"
1616
aiohttp = "^3.11.14"
17+
pydantic = "2.9.2"
18+
19+
[tool.poetry.extras]
20+
pydantic = ["pydantic"]
21+
22+
[tool.poetry.group.dev.dependencies]
1723
isort = "^6.0.1"
1824
pre-commit = "^4.2.0"
1925
pytest = "^8.3.5"
@@ -22,22 +28,15 @@ pytest-cov = "^6.0.0"
2228
pytest-rerunfailures = "^15.0"
2329
ruff = "^0.11.2"
2430
taskipy = "^1.14.1"
25-
pydantic = "2.9.2"
2631
bandit = {extras = ["toml"], version = "^1.8.3"}
2732
cz-conventional-gitmoji = "^0.7.0"
28-
29-
[tool.poetry.extras]
30-
pydantic = ["pydantic"]
31-
32-
[tool.poetry.group.dev.dependencies]
3333
memory-profiler = '^0.61.0'
3434
requests = '^2.31.0'
3535
python-dotenv = "^1.0.1"
3636
safety = "^3.3.1"
3737
vulture = "^2.14"
3838
mypy-extensions = "^1.0.0"
3939
commitizen = "^4.5.1"
40-
bandit = "^1.8.3"
4140

4241
[build-system]
4342
requires = ['poetry-core']
@@ -60,7 +59,7 @@ profile = 'black'
6059
line_length = 79
6160

6261
[tool.taskipy.tasks]
63-
lint = 'isort . && blue . && ruff check .'
62+
lint = 'isort . && ruff check .'
6463
pre_test = 'task lint'
6564
test = 'pytest -vv -s --reruns 5 --only-rerun TooManyRequests --reruns-delay 90 -x --cov=tests tests'
6665
post_test = 'coverage html'

squarecloud/data.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,22 +240,25 @@ class UploadData(BaseDataClass):
240240
:ivar ram: Ram allocated for the uploaded application
241241
:ivar cpu: Cpu of the uploaded application
242242
:ivar description: Description of the uploaded application
243-
:ivar subdomain: Subdomain of the uploaded application (only in websites)
243+
:ivar domain: Subdomain of the uploaded application (only in websites)
244+
:ivar cluster: Cluster where the application is hosted
244245
245246
:type id: str
246247
:type name: str
247248
:type language: Language
248249
:type ram: confloat(ge=0)
249250
:type cpu: confloat(ge=0)
250-
:type subdomain: str | None = None
251+
:type domain: str | None = None
251252
:type description: str | None = None
253+
:type cluster: str
252254
"""
253255

254256
id: str
255257
name: str
256258
language: Language
257259
ram: float
258260
cpu: float
261+
cluster: str
259262
domain: str | None = None
260263
description: str | None = None
261264

0 commit comments

Comments
 (0)