Skip to content

Commit 004ec21

Browse files
authored
chore: fix pytest deps (no module named pkg_resources) (#233)
1 parent 1aef982 commit 004ec21

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ lint:
2626
python3 -m ruff check $(DIRS_WITH_CODE)
2727

2828
unit-tests:
29-
python3 -m pytest -n auto -ra tests/unit --cov=src/apify_client
29+
python3 -m pytest --numprocesses=auto --verbose -ra --cov=src/apify_client tests/unit
3030

3131
unit-tests-cov:
32-
python3 -m pytest -n auto -ra tests/unit --cov=src/apify_client --cov-report=html
32+
python3 -m pytest --numprocesses=auto --verbose -ra --cov=src/apify_client --cov-report=html tests/unit
3333

3434
integration-tests:
35-
python3 -m pytest -n $(INTEGRATION_TESTS_CONCURRENCY) -ra tests/integration
35+
python3 -m pytest --numprocesses=$(INTEGRATION_TESTS_CONCURRENCY) --verbose -ra tests/integration
3636

3737
type-check:
3838
python3 -m mypy $(DIRS_WITH_CODE)

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ requires-python = ">=3.8"
2727
# https://github.com/apify/apify-sdk-python/pull/154
2828
dependencies = [
2929
"apify-shared ~= 1.1.1",
30-
"httpx >= 0.25.1",
30+
"httpx >= 0.25.0",
3131
]
3232

3333
[project.optional-dependencies]
@@ -44,6 +44,7 @@ dev = [
4444
"pytest-xdist ~= 3.6.0",
4545
"redbaron ~= 0.9.0",
4646
"ruff ~= 0.4.0",
47+
"setuptools ~= 70.0.0", # setuptools are used by pytest, but not explicitly required
4748
"twine ~= 5.1.0",
4849
]
4950

@@ -56,7 +57,7 @@ dev = [
5657
"Apify Homepage" = "https://apify.com"
5758

5859
[build-system]
59-
requires = ["setuptools>=64.0.0", "wheel"]
60+
requires = ["setuptools ~= 70.0.0", "wheel"]
6061
build-backend = "setuptools.build_meta"
6162

6263
[tool.setuptools.packages.find]

0 commit comments

Comments
 (0)