Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI errors with latest tox #1820

Merged
merged 2 commits into from
May 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pythonforandroid/pythonpackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,11 @@ def _extract_metainfo_files_from_package_unsafe(
os.path.join(output_path, 'pyproject.toml')
)

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

# Get a virtualenv with build requirements and get all metadata:
env = BuildEnvironment()
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ deps =
# makes it possible to override pytest args, e.g.
# tox -- tests/test_graph.py
commands = pytest {posargs:tests/}
setenv =
PYTHONPATH={toxinidir}

[testenv:pep8]
deps = flake8
Expand Down