Skip to content

Commit

Permalink
chore: fix pytest deps (no module named pkg_resources) (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
vdusek committed May 30, 2024
1 parent 1aef982 commit 004ec21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ lint:
python3 -m ruff check $(DIRS_WITH_CODE)

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

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

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

type-check:
python3 -m mypy $(DIRS_WITH_CODE)
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ requires-python = ">=3.8"
# https://github.com/apify/apify-sdk-python/pull/154
dependencies = [
"apify-shared ~= 1.1.1",
"httpx >= 0.25.1",
"httpx >= 0.25.0",
]

[project.optional-dependencies]
Expand All @@ -44,6 +44,7 @@ dev = [
"pytest-xdist ~= 3.6.0",
"redbaron ~= 0.9.0",
"ruff ~= 0.4.0",
"setuptools ~= 70.0.0", # setuptools are used by pytest, but not explicitly required
"twine ~= 5.1.0",
]

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

[build-system]
requires = ["setuptools>=64.0.0", "wheel"]
requires = ["setuptools ~= 70.0.0", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools.packages.find]
Expand Down

0 comments on commit 004ec21

Please sign in to comment.