improv: add integ test dummy poetry package
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
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 :: 3.6",
|
||||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3.8",
|
||||
]
|
||||
license = "MIT"
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.6"
|
||||
[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):
|
||||
|
||||
project_dir = tmp_path / "project"
|
||||
poetry_dummy_project.generate(project_dir)
|
||||
# build the wheels
|
||||
actual_wheels = utils.cibuildwheel_run(project_dir)
|
||||
|
||||
# check that the expected wheels are produced
|
||||
expected_wheels = utils.expected_wheels("dummy_package", "0.1.0")
|
||||
assert set(actual_wheels) == set(expected_wheels)
|
||||
Reference in New Issue
Block a user