Skip to content

Commit 7a57781

Browse files
committed
revert uv
1 parent ea9470c commit 7a57781

File tree

6 files changed

+273
-184
lines changed

6 files changed

+273
-184
lines changed

.github/workflows/pyci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ jobs:
1313
python-version: [3.8, 3.9]
1414
steps:
1515
- uses: actions/checkout@v4
16-
- name: Set up Python
17-
uses: actions/setup-python@v5
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v4
1818
with:
19-
python-version: '3.12'
20-
# make depends on uv
19+
python-version: ${{ matrix.python-version }}
20+
# make depends on poetry
2121
- name: Install dependencies
2222
run: |
23-
pip install uv
23+
pip install poetry
2424
make install
2525
- name: Run linter and pytest
2626
run: |
2727
make check
2828
- name: Test & publish code coverage
29-
uses: paambaati/codeclimate-action@v9.0.0
29+
uses: paambaati/codeclimate-action@v5.0.0
3030
if: github.ref_name == 'main'
3131
env:
3232
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

Makefile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
install:
2-
uv sync
2+
poetry install
33

44
test:
5-
uv run pytest
5+
poetry run pytest
66

77
test-coverage:
8-
uv run pytest --cov=hexlet_python_package --cov-report xml
8+
poetry run pytest --cov=hexlet_python_package --cov-report xml
99

1010
lint:
11-
uv run ruff check
11+
poetry run flake8 hexlet_python_package
1212

13-
check: test lint
13+
selfcheck:
14+
poetry check
1415

15-
build:
16-
uv build
16+
check: selfcheck test lint
17+
18+
build: check
19+
poetry build
1720

1821
.PHONY: install test lint selfcheck check build

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88

99
This project was built using these tools:
1010

11-
| Tool | Description |
12-
|------------------------------------------------------------------------|---------------------------------------------------------|
13-
| [uv](https://docs.astral.sh/uv/) | "An extremely fast Python package and project manager, written in Rust" |
14-
| [Pytest](https://pytest.org) | "A mature full-featured Python testing tool" |
15-
| [ruff](https://docs.astral.sh/ruff/) | "An extremely fast Python linter and code formatter, written in Rust" |
11+
| Tool | Description |
12+
|-----------------------------------------------------------------------------|---------------------------------------------------------|
13+
| [poetry](https://python-poetry.org/) | "Python dependency management and packaging made easy" |
14+
| [Py.Test](https://pytest.org) | "A mature full-featured Python testing tool" |
15+
| [flake8](https://flake8.pycqa.org/) | "Your tool for style guide enforcement" |
1616

1717
---
1818

1919
[![Hexlet Ltd. logo](https://raw.githubusercontent.com/Hexlet/assets/master/images/hexlet_logo128.png)](https://hexlet.io/?utm_source=github&utm_medium=link&utm_campaign=python-package)
2020

2121
This repository is created and maintained by the team and the community of Hexlet, an educational project. [Read more about Hexlet](https://hexlet.io/?utm_source=github&utm_medium=link&utm_campaign=python-package).
2222

23-
See most active contributors on [hexlet-friends](https://friends.hexlet.io/).
23+
See most active contributors on [hexlet-friends](https://friends.hexlet.io/).

poetry.lock

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

pyproject.toml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
[project]
2-
authors = [
3-
{name = "Hexlet team", email = "[email protected]"},
4-
]
5-
requires-python = "<4.0,>=3.12"
6-
name = "python-example-app"
7-
version = "0.1.0"
8-
description = "Example application"
1+
[tool.poetry]
2+
name = "hexlet-python-package"
3+
version = "0.3.0"
4+
description = ""
5+
authors = ["skip"]
96
readme = "README.md"
107

11-
[tool.uv]
12-
dev-dependencies = [
13-
"ruff>=0.7.1",
14-
"pytest>=8.3.3",
15-
"pytest-cov>=5.0.0",
16-
]
8+
[tool.poetry.dependencies]
9+
python = ">=3.8.1,<4.0"
1710

18-
[project.scripts]
11+
[tool.poetry.group.dev.dependencies]
12+
pytest = "^7.4.2"
13+
pytest-cov = "^4.1.0"
14+
flake8 = "^6.1.0"
15+
16+
[tool.poetry.scripts]
1917
hexlet-python-package = "hexlet_python_package.scripts.hexlet_python_package:main"
18+
19+
[build-system]
20+
requires = ["poetry-core>=1.0.0"]
21+
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)