This repository has been archived by the owner on Jun 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
69 lines (59 loc) · 1.57 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[tool.poetry]
name = "qua"
version = "0.1.0"
description = "SDK to interact with a quantum computer at the pulse level"
authors = ["Tal Shani <tal@quantum-machines.co>"]
license = "BSD-3-Clause"
repository = "https://github.com/qua-platform/qua-sdk-py"
readme = "README.md"
include = [
"CHANGELOG.md",
"LICENSE",
"qua/grpc/**/*.py"
]
exclude = [
"qua/tests",
"qua/*/tests"
]
[tool.poetry.dependencies]
python = "^3.7"
betterproto = "^1.2.5"
grpclib = "^0.4.2"
[tool.poetry.dev-dependencies]
black = "^21.7b0"
flake8 = "^3.9.2"
pytest = "^6.2.2"
flake8-bugbear = "^21.4.3"
poethepoet = "^0.10.0"
grpcio-tools = "^1.39.0"
betterproto = { extras = ["compiler"], version = "^1.2.5" }
pytest-cov = "^2.12.1"
pytest-asyncio = "^0.15.1"
[tool.poe.tasks]
[tool.poe.tasks.generate-grpc]
cmd = '''
poetry run python -m grpc_tools.protoc -Iproto --python_betterproto_out=qua/grpc
io/qualang/api/v1/info_service.proto
'''
help = "Generate gRPC python files for communicating with QUA machine"
[tool.poe.tasks.format]
cmd = "black qua"
help = "Format source files according to the style rules"
[tool.poe.tasks.check-format]
cmd = "black qua --check"
help = "Check that all files are formatted according to the style rules"
[tool.poe.tasks.lint]
cmd = "flake8 qua"
help = "Check for lint errors"
[tool.poe.tasks.test]
sequence = [
{ cmd = "pytest qua" },
{ cmd = "pytest tests" }
]
help = "Run all unit tests"
[tool.poe.tasks.test-server]
cmd = "pytest tests_server"
help = "Run all unit tests"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"