Skip to content

Commit eb0e63a

Browse files
authored
Merge pull request #1820 from opacam/ci-fix-tox
Fix `CI` errors with latest tox
2 parents 61e092c + f74d4f3 commit eb0e63a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pythonforandroid/pythonpackage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,10 +436,11 @@ def _extract_metainfo_files_from_package_unsafe(
436436
os.path.join(output_path, 'pyproject.toml')
437437
)
438438

439-
# Get build backend from pyproject.toml:
439+
# Get build backend and requirements from pyproject.toml:
440440
with open(os.path.join(path, 'pyproject.toml')) as f:
441441
build_sys = pytoml.load(f)['build-system']
442442
backend = build_sys["build-backend"]
443+
build_requires.extend(build_sys["requires"])
443444

444445
# Get a virtualenv with build requirements and get all metadata:
445446
env = BuildEnvironment()

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ deps =
1010
# makes it possible to override pytest args, e.g.
1111
# tox -- tests/test_graph.py
1212
commands = pytest {posargs:tests/}
13+
setenv =
14+
PYTHONPATH={toxinidir}
1315

1416
[testenv:pep8]
1517
deps = flake8

0 commit comments

Comments
 (0)