Skip to content

Commit 12cc8a8

Browse files
author
Islam Alibekov
committed
extend pyproject.toml
1 parent c5844ac commit 12cc8a8

File tree

1 file changed

+98
-4
lines changed

1 file changed

+98
-4
lines changed

pyproject.toml

Lines changed: 98 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,75 @@
1-
[tool.semantic_release]
2-
version_variables = [
3-
"setup.py:__version__",
1+
[build-system]
2+
requires = ["setuptools>=61.2"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "yandexcloud"
7+
version = "0.328.0"
8+
authors = [{name = "Yandex LLC", email = "[email protected]"}]
9+
license = {text = "MIT"}
10+
description = "The Yandex.Cloud official SDK"
11+
requires-python = ">=3.9"
12+
classifiers = [
13+
"Programming Language :: Python",
14+
"Programming Language :: Python :: 3",
15+
"Programming Language :: Python :: 3.9",
16+
"Programming Language :: Python :: 3.10",
17+
"Programming Language :: Python :: 3.11",
18+
"Programming Language :: Python :: 3.12",
19+
"Programming Language :: Python :: 3.13",
20+
]
21+
dependencies = [
22+
"cryptography>=41.0.7,<43",
23+
"grpcio>=1.64.0,<2",
24+
"protobuf>=4.25.3,<5",
25+
"googleapis-common-protos>=1.63.0,<2",
26+
"pyjwt>=2.8.0,<3",
27+
"requests>=2.32.3,<3",
28+
"six>=1.16.0,<2",
29+
]
30+
31+
[project.readme]
32+
file = "README.md"
33+
content-type = "text/markdown"
34+
35+
[project.urls]
36+
Homepage = "https://github.com/yandex-cloud/python-sdk"
37+
38+
[project.optional-dependencies]
39+
dev = [
40+
"python-semantic-release>=v9.8.8",
41+
"tox-gh-actions>=3.2.0",
42+
"tox>=4.14.2",
43+
"yandexcloud[format,genproto,lint,test]",
44+
]
45+
format = [
46+
"black>=24.4.2",
47+
"isort>=5.13.2",
48+
]
49+
genproto = [
50+
"grpcio-tools>=1.59.3",
51+
"mypy-protobuf>=3.6.0",
452
]
53+
lint = [
54+
"flake8>=7.0.0",
55+
"mypy>=1.10",
56+
"pylint>=3.1.0",
57+
]
58+
test = [
59+
"pytest>=8.1.1",
60+
]
61+
62+
[tool.setuptools]
63+
zip-safe = false
64+
include-package-data = true
65+
66+
[tool.setuptools.packages.find]
67+
# include = ["yandexcloud*"] # yandex*
68+
include = ["yandexcloud*", "yandex*"]
69+
namespaces = false
70+
71+
[tool.semantic_release]
72+
version_variable = "pyproject.toml:version"
573
# https://python-semantic-release.readthedocs.io/en/latest/configuration.html#major-on-zero
674
major_on_zero = false
775

@@ -54,4 +122,30 @@ module = [
54122
"google.rpc.status_pb2.*",
55123
"google.rpc.*",
56124
]
57-
ignore_missing_imports = true
125+
ignore_missing_imports = true
126+
127+
[tool.tox]
128+
legacy_tox_ini = """
129+
[gh-actions]
130+
python =
131+
3.9: py39
132+
3.10: py310
133+
3.11: py311
134+
3.12: py312
135+
3.13: py313
136+
137+
[tox]
138+
envlist = py{39,310,311,312,313}
139+
140+
[testenv]
141+
deps = -rrequirements-dev.txt
142+
commands =
143+
pytest tests
144+
flake8 yandexcloud
145+
pylint yandexcloud
146+
mypy yandexcloud
147+
isort --diff yandexcloud setup.py
148+
isort --check yandexcloud setup.py
149+
black --diff yandexcloud setup.py
150+
black --check yandexcloud setup.py
151+
"""

0 commit comments

Comments
 (0)