diff --git a/poetry.lock b/poetry.lock index 9ebeed0bc2e..f3f32785ea2 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1040,15 +1040,19 @@ testing = ["pytest", "pytest-benchmark"] [[package]] name = "poetry-core" -version = "2.0.0" +version = "2.0.1.dev0" description = "Poetry PEP 517 Build Backend" optional = false -python-versions = "<4.0,>=3.9" +python-versions = ">=3.9, <4.0" groups = ["main"] -files = [ - {file = "poetry_core-2.0.0-py3-none-any.whl", hash = "sha256:1da7dd9279c5af8ed63f05c87a743dcadbf048dfe78f21c436710829cfff95fe"}, - {file = "poetry_core-2.0.0.tar.gz", hash = "sha256:3317a3cc3932011a61114236b2d49883f4fb1403d2f5e97771ac0d077cfa396f"}, -] +files = [] +develop = false + +[package.source] +type = "git" +url = "https://github.com/python-poetry/poetry-core" +reference = "main" +resolved_reference = "6243e3f18ac2be4bfd651530da1df6dc9aadf3ff" [[package]] name = "pre-commit" @@ -1735,4 +1739,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.1" python-versions = ">=3.9,<4.0" -content-hash = "14639f627526358bfe85610cf088ba469ddaa5a768d77568e56b741634ed393c" +content-hash = "627ed538dc55e47a76e2532ef5e374a830504544966277d3128c664aac1e677f" diff --git a/pyproject.toml b/pyproject.toml index e73c0c94b3e..46bcc0861f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ version = "2.0.0" description = "Python dependency management and packaging made easy." requires-python = ">=3.9,<4.0" dependencies = [ - "poetry-core (==2.0.0)", + "poetry-core @ git+https://github.com/python-poetry/poetry-core@main", "build (>=1.2.1,<2.0.0)", "cachecontrol[filecache] (>=0.14.0,<0.15.0)", "cleo (>=2.1.0,<3.0.0)", diff --git a/tests/test_factory.py b/tests/test_factory.py index 98d127ad80c..104141d0d20 100644 --- a/tests/test_factory.py +++ b/tests/test_factory.py @@ -198,25 +198,25 @@ def test_create_poetry_with_packages_and_includes( package = poetry.package assert package.packages == [ - {"include": "extra_dir/**/*.py"}, - {"include": "extra_dir/**/*.py"}, - {"include": "my_module.py"}, - {"include": "package_with_include"}, - {"include": "tests", "format": "sdist"}, + {"include": "extra_dir/**/*.py", "format": ["sdist", "wheel"]}, + {"include": "extra_dir/**/*.py", "format": ["sdist", "wheel"]}, + {"include": "my_module.py", "format": ["sdist", "wheel"]}, + {"include": "package_with_include", "format": ["sdist", "wheel"]}, + {"include": "tests", "format": ["sdist"]}, {"include": "for_wheel_only", "format": ["wheel"]}, - {"include": "src_package", "from": "src"}, + {"include": "src_package", "from": "src", "format": ["sdist", "wheel"]}, ] assert package.include in ( # with https://github.com/python-poetry/poetry-core/pull/773 [ - {"path": "extra_dir/vcs_excluded.txt"}, - {"path": "notes.txt"}, + {"path": "extra_dir/vcs_excluded.txt", "format": ["sdist", "wheel"]}, + {"path": "notes.txt", "format": ["sdist"]}, ], # without https://github.com/python-poetry/poetry-core/pull/773 [ - {"path": "extra_dir/vcs_excluded.txt", "format": []}, - {"path": "notes.txt", "format": []}, + {"path": "extra_dir/vcs_excluded.txt", "format": ["sdist"]}, + {"path": "notes.txt", "format": ["sdist"]}, ], )