Skip to content

Commit

Permalink
fix: test_pep518 with pyodide
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Jun 16, 2024
1 parent abcf749 commit db2b935
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions test/test_pep518.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@

import textwrap

import pytest

from . import test_projects, utils

basic_project = test_projects.new_c_project(
setup_py_add=textwrap.dedent(
"""
# Will fail if PEP 518 does work
import requests
assert requests.__version__ == "2.27.0", "Requests found but wrong version ({0})".format(requests.__version__)
import jmespath
assert jmespath.__version__ == "0.10.0", "'jmespath' found but wrong version ({0})".format(jmespath.__version__)
# Just making sure environment is still set
import os
Expand All @@ -26,15 +24,13 @@
requires = [
"setuptools >= 42",
"setuptools_scm[toml]>=4.1.2",
"wheel",
"requests==2.27.0"
"jmespath==0.10.0"
]
build-backend = "setuptools.build_meta"
"""


@pytest.mark.xfail(condition=utils.platform == "pyodide", reason="unknown...", strict=True)
def test_pep518(tmp_path, build_frontend_env):
project_dir = tmp_path / "project"
basic_project.generate(project_dir)
Expand Down

0 comments on commit db2b935

Please sign in to comment.