From 004fc03899b6dddc93a1685745ccb8546cf031e3 Mon Sep 17 00:00:00 2001 From: heitorlessa Date: Mon, 1 Jun 2020 13:21:52 +0100 Subject: [PATCH] fix: remove integ test --- test/test_poetry_project.py | 65 ------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 test/test_poetry_project.py diff --git a/test/test_poetry_project.py b/test/test_poetry_project.py deleted file mode 100644 index dac1f13f..00000000 --- a/test/test_poetry_project.py +++ /dev/null @@ -1,65 +0,0 @@ -from . import test_projects -from . import utils - -pyproject_package_file = """ -[tool.poetry] -name = "dummy_package" -version = "0.1.0" -description = "dummy" -authors = ["cibuildwheel poetry test"] -classifiers=[ - "Development Status :: 5 - Production/Stable", - "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", - "Natural Language :: English", - "Programming Language :: Python :: 2.7", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", -] -license = "MIT" -[tool.poetry.dependencies] -python = ">=2.7" -[tool.poetry.dev-dependencies] -[build-system] -requires = ["poetry>=0.12"] -build-backend = "poetry.masonry.api" -""" - -poetry_dummy_project = test_projects.TestProject() -poetry_dummy_project.files["dummy_package/__init__.py"] = "" -poetry_dummy_project.files["pyproject.toml"] = pyproject_package_file - - -def test_poetry_package(tmp_path): - - # GIVEN a project that only has pyproject.toml - # managed by poetry - project_dir = tmp_path / "project" - poetry_dummy_project.generate(project_dir) - - # These are temporary as I understand cibuildwheels - # behaviour across different CIs - - # Poetry is installed during wheels built by pip - # however, one of poetry deps require cryptography - # which fails to build in outdated pip versions - # more info: https://github.com/pyca/cryptography/issues/5101 - poetry_project_env = {"CIBW_SKIP": "cp27-* *-win32 *-manylinux_i686 pp*"} - - # Pip on Windows don't seem to honour installing build system deps - # as it happens on Mac/Linux according to CI tests - # so we need to install `poetry` before we build the wheels - # https://dev.azure.com/joerick0429/cibuildwheel/_build/results?buildId=1315&view=logs&j=fff2fde4-faa2-579c-a2fc-f5ab27662b77&t=ba46a93f-85b8-5ca5-6207-999df763f341&l=396 - poetry_project_env["CIBW_BEFORE_BUILD"] = "pip install poetry" - - # WHEN we attempt to build wheels for multiple platforms - # for dummy_package package - actual_wheels = utils.cibuildwheel_run(project_dir, add_env=poetry_project_env) - - # THEN we should have a dummy_package wheel with version 0.1.0 - # expected_wheels = utils.expected_wheels("dummy_package", "0.1.0") - - # Workaround while I await maintainers on correct assertion - expected_wheels = {"dummy_package-0.1.0-py2.py3-none-any.whl"} - assert set(actual_wheels) == set(expected_wheels)