|
1 | 1 | .PHONY: clean install-dev build publish-to-pypi lint type-check unit-tests unit-tests-cov \ |
2 | | - integration-tests format check-code build-api-reference build-docs run-docs |
| 2 | + integration-tests format check-code build-api-reference build-docs run-docs |
3 | 3 |
|
4 | 4 | # This is default for local testing, but GitHub workflows override it to a higher value in CI |
5 | 5 | INTEGRATION_TESTS_CONCURRENCY = 1 |
|
8 | 8 | rm -rf .mypy_cache .pytest_cache .ruff_cache build dist htmlcov .coverage |
9 | 9 |
|
10 | 10 | install-dev: |
11 | | - poetry install --all-extras |
12 | | - poetry run pre-commit install |
| 11 | + uv sync --all-extras |
| 12 | + uv run pre-commit install |
13 | 13 |
|
14 | 14 | build: |
15 | | - poetry build --no-interaction -vv |
| 15 | + uv build --verbose |
16 | 16 |
|
17 | 17 | # APIFY_PYPI_TOKEN_CRAWLEE is expected to be set in the environment |
18 | 18 | publish-to-pypi: |
19 | | - poetry config pypi-token.pypi "${APIFY_PYPI_TOKEN_CRAWLEE}" |
20 | | - poetry publish --no-interaction -vv |
| 19 | + uv publish --verbose --token "${APIFY_PYPI_TOKEN_CRAWLEE}" |
21 | 20 |
|
22 | 21 | lint: |
23 | | - poetry run ruff format --check |
24 | | - poetry run ruff check |
| 22 | + uv run ruff format --check |
| 23 | + uv run ruff check |
25 | 24 |
|
26 | 25 | type-check: |
27 | | - poetry run mypy |
| 26 | + uv run mypy |
28 | 27 |
|
29 | 28 | unit-tests: |
30 | | - poetry run pytest --numprocesses=auto --verbose --cov=src/apify tests/unit |
| 29 | + uv run pytest --numprocesses=auto --verbose --cov=src/apify tests/unit |
31 | 30 |
|
32 | 31 | unit-tests-cov: |
33 | | - poetry run pytest --numprocesses=auto --verbose --cov=src/apify --cov-report=html tests/unit |
| 32 | + uv run pytest --numprocesses=auto --verbose --cov=src/apify --cov-report=html tests/unit |
34 | 33 |
|
35 | 34 | integration-tests: |
36 | | - poetry run pytest --numprocesses=$(INTEGRATION_TESTS_CONCURRENCY) --verbose tests/integration |
| 35 | + uv run pytest --numprocesses=$(INTEGRATION_TESTS_CONCURRENCY) --verbose tests/integration |
37 | 36 |
|
38 | 37 | format: |
39 | | - poetry run ruff check --fix |
40 | | - poetry run ruff format |
| 38 | + uv run ruff check --fix |
| 39 | + uv run ruff format |
41 | 40 |
|
42 | 41 | # The check-code target runs a series of checks equivalent to those performed by pre-commit hooks |
43 | 42 | # and the run_checks.yaml GitHub Actions workflow. |
44 | 43 | check-code: lint type-check unit-tests |
45 | 44 |
|
46 | 45 | build-api-reference: |
47 | | - cd website && poetry run ./build_api_reference.sh |
| 46 | + cd website && uv run ./build_api_reference.sh |
48 | 47 |
|
49 | 48 | build-docs: |
50 | | - cd website && poetry run npm clean-install && poetry run npm run build |
| 49 | + cd website && uv run npm clean-install && uv run npm run build |
51 | 50 |
|
52 | 51 | run-docs: build-api-reference |
53 | | - cd website && poetry run npm clean-install && poetry run npm run start |
| 52 | + cd website && uv run npm clean-install && uv run npm run start |
0 commit comments