Skip to content

Commit 3dbc118

Browse files
author
Islam Alibekov
committed
migrating from setup.py to pyproject.toml only
1 parent 12cc8a8 commit 3dbc118

File tree

8 files changed

+1313
-97
lines changed

8 files changed

+1313
-97
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: "v4.4.0"
4+
hooks:
5+
- id: check-case-conflict
6+
- id: check-merge-conflict
7+
- id: check-toml
8+
- id: check-yaml
9+
- id: end-of-file-fixer
10+
- id: trailing-whitespace

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ lint: ## run linters, formatters for current python versions
2727
python3 -m mypy yandexcloud
2828

2929
format:
30-
python3 -m isort yandexcloud setup.py tests examples
31-
python3 -m black yandexcloud setup.py tests examples
30+
python3 -m isort yandexcloud tests examples
31+
python3 -m black yandexcloud tests examples
3232

3333
test-all-versions: ## run test for multiple python versions using docker
3434
# python 3.12 and 3.13 are not provided in image so we skip them
@@ -48,7 +48,7 @@ proto: ## regenerate code from protobuf
4848
--mypy_grpc_out=. \
4949
`find cloudapi/yandex -name '*.proto'`
5050
find yandex -type d -exec touch {}/__init__.py \;
51-
touch yandex/py.typed \;
51+
touch yandex/py.typed
5252

5353
help: ## Show help message
5454
@IFS=$$'\n' ; \

pyproject.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,26 @@ Homepage = "https://github.com/yandex-cloud/python-sdk"
3737

3838
[project.optional-dependencies]
3939
dev = [
40-
"python-semantic-release>=v9.8.8",
41-
"tox-gh-actions>=3.2.0",
42-
"tox>=4.14.2",
40+
"python-semantic-release==v9.8.8",
41+
"tox-gh-actions==3.2.0",
42+
"tox==4.14.2",
4343
"yandexcloud[format,genproto,lint,test]",
4444
]
4545
format = [
46-
"black>=24.4.2",
47-
"isort>=5.13.2",
46+
"black==24.4.2",
47+
"isort==5.13.2",
4848
]
4949
genproto = [
50-
"grpcio-tools>=1.59.3",
51-
"mypy-protobuf>=3.6.0",
50+
"grpcio-tools==1.59.3",
51+
"mypy-protobuf==3.6.0",
5252
]
5353
lint = [
54-
"flake8>=7.0.0",
55-
"mypy>=1.10",
56-
"pylint>=3.1.0",
54+
"flake8==7.0.0",
55+
"mypy==1.10",
56+
"pylint==3.1.0",
5757
]
5858
test = [
59-
"pytest>=8.1.1",
59+
"pytest==8.1.1",
6060
]
6161

6262
[tool.setuptools]

requirements-dev.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.

requirements-genproto.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

tox.ini

Lines changed: 0 additions & 22 deletions
This file was deleted.

uv.lock

Lines changed: 1289 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)