specklepy/pyproject.toml

75 строки
1.5 KiB
TOML
Исходник Обычный вид История

[tool.poetry]
2021-04-09 14:25:51 +03:00
name = "specklepy"
version = "2.17.14"
2021-04-09 14:25:51 +03:00
description = "The Python SDK for Speckle 2.0"
readme = "README.md"
authors = ["Speckle Systems <devops@speckle.systems>"]
license = "Apache-2.0"
repository = "https://github.com/specklesystems/speckle-py"
documentation = "https://speckle.guide/dev/py-examples.html"
homepage = "https://speckle.systems/"
2022-10-25 12:55:27 +03:00
packages = [
{ include = "specklepy", from = "src" },
{ include = "speckle_automate", from = "src" },
2022-10-25 12:55:27 +03:00
]
2021-04-09 14:25:51 +03:00
[tool.poetry.dependencies]
2023-09-19 21:21:46 +03:00
python = ">=3.8.0, <4.0"
pydantic = "^2.5"
appdirs = "^1.4.4"
gql = { extras = ["requests", "websockets"], version = "^3.3.0" }
ujson = "^5.3.0"
Deprecated = "^1.2.13"
stringcase = "^1.2.0"
2023-07-17 16:39:10 +03:00
attrs = "^23.1.0"
httpx = "^0.25.0"
2022-10-26 15:31:04 +03:00
[tool.poetry.group.dev.dependencies]
black = "23.11.0"
isort = "^5.7.0"
2022-10-25 12:55:27 +03:00
pytest = "^7.1.3"
pytest-ordering = "^0.6"
2021-11-24 18:47:48 +03:00
pytest-cov = "^3.0.0"
SQLite write batching (#188) ### SUMMARY **sqlite transport** This transport now batches and bulk inserts objects when writing resulting in huge performance improvements (100x). **base object serializer** Batching in the sqlite transport necessitated some refactoring here in order to safely call end_write when not using operations.send/receive. This has been resolved by turning traverse_base into a wrapper for _traverse_base which can take care of calling begin/end_write and resetting the writer at the top level. This is not breaking since the top level methods to call have not changed names and the original method has just been prepended with a _ Additionally, missing referenced child objects in the read transport used to raise a SpeckleException. However, using the gql client to call objects.get() will return an object with missing references by design thus throwing an error in serialization. This has been resolved by instead raising a SpeckleWarning when child objects can't be found and just returning the reference + id. ((this method of interacting with objects is discouraged so it is not surprising to me that this bug was lurking for so long - but an oopsie nonetheless!)) **ci / dev** Updates for the ci config and the dev container to work with the recent changes in server. NOTE: dev container seems to be pulling an older version of server -- not resolved yet --- * quick and hacky sqlite batching * feat(transports): batching sqlite inserts * chore: upgrade gql3 also removed py-spy as it's not used and i was getting install errors :/ * ci: bump node version * ci: formatting * update CI versions * update to new circleci redis baseimage * update test fixture auth to non deprecated token based method * add start and finish write method calls to base object serialize * chore: dev container update * fix(serialization): move end and begin write * style: formatting * fix(serializer): warn but don't throw if ref not found this is _not_ an issue with the transports, but an issue with using the graphql api to fetch objects. since you are only receiving one obj and none of the children, the transport has no way to find them and should simply return the reference as is. idk why anyone would really use `object.get` so tbh i'm not surprised no one has found this bug yet lol * fix(client): don't parse obj create response * fix(serializer): wrap `traverse_base` moving `begin` and `end_write` to the seriazlier due to the new sqlite transport with batched writes necessitates a wrapper around `traverse_base` so end/begin write can be called once at the top level. just adding begin/end write to the original traversal method would make tons of calls to `end_write` since the traversal is recursive Co-authored-by: izzy lyseggen <izzy.lyseggen@gmail.com>
2022-06-20 14:00:09 +03:00
devtools = "^0.8.0"
pylint = "^2.14.4"
2024-06-05 18:59:05 +03:00
pydantic-settings = "^2.3.0"
mypy = "^0.982"
2022-12-19 14:37:20 +03:00
pre-commit = "^2.20.0"
2022-12-19 14:44:11 +03:00
commitizen = "^2.38.0"
ruff = "^0.4.4"
types-deprecated = "^1.2.9"
types-ujson = "^5.6.0.0"
types-requests = "^2.28.11.5"
[tool.black]
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
include = '\.pyi?$'
line-length = 88
target-version = ["py37", "py38", "py39", "py310", "py311"]
2022-12-19 14:44:11 +03:00
[tool.commitizen]
name = "cz_conventional_commits"
version = "2.9.2"
tag_format = "$version"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
2022-12-09 22:48:02 +03:00
[tool.isort]
profile = "black"