Skip to content

Commit a156df8

Browse files
authored
chore: fix pytest deps (no module named pkg_resources) (#208)
1 parent 403290c commit a156df8

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
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
29+
python3 -m pytest --numprocesses=auto --verbose -ra --cov=src/apify tests/unit
3030

3131
unit-tests-cov:
32-
python3 -m pytest -n auto -ra tests/unit --cov=src/apify --cov-report=html
32+
python3 -m pytest --numprocesses=auto --verbose -ra --cov=src/apify --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: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ requires-python = ">=3.8"
2626
# compatibility with a wide range of external packages. This decision was discussed in detail in the following PR:
2727
# https://github.com/apify/apify-sdk-python/pull/154
2828
dependencies = [
29-
"apify-client ~= 1.6.2",
30-
"apify-shared ~= 1.1.1",
29+
"apify-client ~= 1.6.0",
30+
"apify-shared ~= 1.1.0",
3131
"aiofiles >= 22.1.0",
3232
"aioshutil >= 1.0",
3333
"colorama >= 0.4.6",
3434
"cryptography >= 39.0.0",
35-
"httpx >= 0.24.1",
36-
"psutil >= 5.9.5",
37-
"pyee >= 11.0.1",
38-
"sortedcollections >= 2.0.1",
35+
"httpx >= 0.24.0",
36+
"psutil >= 5.9.0",
37+
"pyee >= 11.0.0",
38+
"sortedcollections >= 2.0.0",
3939
"typing-extensions >= 4.1.0",
4040
"websockets >= 10.1",
4141
]
@@ -55,6 +55,7 @@ dev = [
5555
"pytest-xdist ~= 3.6.0",
5656
"respx ~= 0.21.0",
5757
"ruff ~= 0.4.0",
58+
"setuptools ~= 70.0.0", # setuptools are used by pytest, but not explicitly required
5859
"twine ~= 5.1.0",
5960
"types-aiofiles ~= 23.2.0.20240403",
6061
"types-colorama ~= 0.4.15.20240311",
@@ -73,7 +74,7 @@ scrapy = [
7374
"Apify Homepage" = "https://apify.com"
7475

7576
[build-system]
76-
requires = ["setuptools>=64.0.0", "wheel"]
77+
requires = ["setuptools ~= 70.0.0", "wheel"]
7778
build-backend = "setuptools.build_meta"
7879

7980
[tool.setuptools.packages.find]

0 commit comments

Comments
 (0)