diff --git a/src/poetry/packages/locker.py b/src/poetry/packages/locker.py index 8784a391ebd..a885c436a89 100644 --- a/src/poetry/packages/locker.py +++ b/src/poetry/packages/locker.py @@ -126,7 +126,6 @@ def locked_repository(self) -> LockfileRepository: source_subdirectory=source.get("subdirectory"), ) package.description = info.get("description", "") - package.category = info.get("category", "main") package.optional = info["optional"] metadata = cast("dict[str, Any]", lock_data["metadata"]) @@ -411,7 +410,6 @@ def _dump_package(self, package: Package) -> dict[str, Any]: "name": package.pretty_name, "version": package.pretty_version, "description": package.description or "", - "category": package.category, "optional": package.optional, "python-versions": package.python_versions, "files": sorted( diff --git a/src/poetry/puzzle/solver.py b/src/poetry/puzzle/solver.py index 66e1aca6a5b..76d51ed400b 100644 --- a/src/poetry/puzzle/solver.py +++ b/src/poetry/puzzle/solver.py @@ -10,8 +10,6 @@ from typing import Tuple from typing import TypeVar -from poetry.core.packages.dependency_group import MAIN_GROUP - from poetry.mixology import resolve_version from poetry.mixology.failure import SolveFailure from poetry.puzzle.exceptions import OverrideNeeded @@ -273,11 +271,9 @@ def __init__( self.depth = -1 if not previous: - self.category = "dev" self.groups: frozenset[str] = frozenset() self.optional = True elif dep: - self.category = "main" if MAIN_GROUP in dep.groups else "dev" self.groups = dep.groups self.optional = dep.is_optional() else: @@ -327,14 +323,11 @@ def aggregate_package_nodes(nodes: list[PackageNode]) -> tuple[Package, int]: for node in nodes: groups.extend(node.groups) - category = "main" if any(MAIN_GROUP in node.groups for node in nodes) else "dev" optional = all(node.optional for node in nodes) for node in nodes: node.depth = depth - node.category = category node.optional = optional - package.category = category package.optional = optional return package, depth diff --git a/tests/console/commands/self/test_remove_plugins.py b/tests/console/commands/self/test_remove_plugins.py index 660b3584012..51cf058f835 100644 --- a/tests/console/commands/self/test_remove_plugins.py +++ b/tests/console/commands/self/test_remove_plugins.py @@ -45,7 +45,6 @@ def install_plugin(installed: Repository) -> None: { "name": "poetry-plugin", "version": "1.2.3", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", diff --git a/tests/console/commands/test_show.py b/tests/console/commands/test_show.py index 8f7eadb2d3f..3274b72fbee 100644 --- a/tests/console/commands/test_show.py +++ b/tests/console/commands/test_show.py @@ -44,7 +44,6 @@ def test_show_basic_with_installed_packages( pytest_373 = get_package("pytest", "3.7.3") pytest_373.description = "Pytest package" - pytest_373.category = "dev" installed.add_package(cachy_010) installed.add_package(pendulum_200) @@ -57,7 +56,6 @@ def test_show_basic_with_installed_packages( "name": "cachy", "version": "0.1.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -67,7 +65,6 @@ def test_show_basic_with_installed_packages( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -77,7 +74,6 @@ def test_show_basic_with_installed_packages( "name": "pytest", "version": "3.7.3", "description": "Pytest package", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -121,11 +117,9 @@ def _configure_project_with_groups(poetry: Poetry, installed: Repository) -> Non pendulum_200 = get_package("pendulum", "2.0.0") pendulum_200.description = "Pendulum package" - pendulum_200.category = "dev" pytest_373 = get_package("pytest", "3.7.3") pytest_373.description = "Pytest package" - pytest_373.category = "dev" installed.add_package(cachy_010) installed.add_package(pendulum_200) @@ -138,7 +132,6 @@ def _configure_project_with_groups(poetry: Poetry, installed: Repository) -> Non "name": "cachy", "version": "0.1.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -148,7 +141,6 @@ def _configure_project_with_groups(poetry: Poetry, installed: Repository) -> Non "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -158,7 +150,6 @@ def _configure_project_with_groups(poetry: Poetry, installed: Repository) -> Non "name": "pytest", "version": "3.7.3", "description": "Pytest package", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -283,7 +274,6 @@ def test_show_basic_with_installed_packages_single( "name": "cachy", "version": "0.1.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -325,7 +315,6 @@ def test_show_basic_with_installed_packages_single_canonicalized( "name": "foo-bar", "version": "0.1.0", "description": "Foobar package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -370,7 +359,6 @@ def test_show_basic_with_not_installed_packages_non_decorated( "name": "cachy", "version": "0.1.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -380,7 +368,6 @@ def test_show_basic_with_not_installed_packages_non_decorated( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -426,7 +413,6 @@ def test_show_basic_with_not_installed_packages_decorated( "name": "cachy", "version": "0.1.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -436,7 +422,6 @@ def test_show_basic_with_not_installed_packages_decorated( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -496,7 +481,6 @@ def test_show_latest_non_decorated( "name": "cachy", "version": "0.1.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -506,7 +490,6 @@ def test_show_latest_non_decorated( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -566,7 +549,6 @@ def test_show_latest_decorated( "name": "cachy", "version": "0.1.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -576,7 +558,6 @@ def test_show_latest_decorated( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -635,7 +616,6 @@ def test_show_outdated( "name": "cachy", "version": "0.1.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -645,7 +625,6 @@ def test_show_outdated( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -689,7 +668,6 @@ def test_show_outdated_with_only_up_to_date_packages( "name": "cachy", "version": "0.2.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -748,7 +726,6 @@ def test_show_outdated_has_prerelease_but_not_allowed( "name": "cachy", "version": "0.1.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -758,7 +735,6 @@ def test_show_outdated_has_prerelease_but_not_allowed( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -823,7 +799,6 @@ def test_show_outdated_has_prerelease_and_allowed( "name": "cachy", "version": "0.1.0.dev1", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -833,7 +808,6 @@ def test_show_outdated_has_prerelease_and_allowed( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -892,7 +866,6 @@ def test_show_outdated_formatting( "name": "cachy", "version": "0.1.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -902,7 +875,6 @@ def test_show_outdated_formatting( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -975,7 +947,6 @@ def test_show_outdated_local_dependencies( "name": "cachy", "version": "0.2.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -985,7 +956,6 @@ def test_show_outdated_local_dependencies( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -995,7 +965,6 @@ def test_show_outdated_local_dependencies( "name": "demo", "version": "0.1.0", "description": "Demo package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1010,7 +979,6 @@ def test_show_outdated_local_dependencies( "name": "project-with-setup", "version": "0.1.1", "description": "Demo project.", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1090,7 +1058,6 @@ def test_show_outdated_git_dev_dependency( "name": "cachy", "version": "0.1.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1100,7 +1067,6 @@ def test_show_outdated_git_dev_dependency( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1110,7 +1076,6 @@ def test_show_outdated_git_dev_dependency( "name": "demo", "version": "0.1.1", "description": "Demo package", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1126,7 +1091,6 @@ def test_show_outdated_git_dev_dependency( "name": "pytest", "version": "3.4.3", "description": "Pytest", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1190,7 +1154,6 @@ def test_show_outdated_no_dev_git_dev_dependency( "name": "cachy", "version": "0.1.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1200,7 +1163,6 @@ def test_show_outdated_no_dev_git_dev_dependency( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1210,7 +1172,6 @@ def test_show_outdated_no_dev_git_dev_dependency( "name": "demo", "version": "0.1.1", "description": "Demo package", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1225,7 +1186,6 @@ def test_show_outdated_no_dev_git_dev_dependency( "name": "pytest", "version": "3.4.3", "description": "Pytest", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1276,7 +1236,6 @@ def test_show_hides_incompatible_package( "name": "cachy", "version": "0.1.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1286,7 +1245,6 @@ def test_show_hides_incompatible_package( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1332,7 +1290,6 @@ def test_show_all_shows_incompatible_package( "name": "cachy", "version": "0.1.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1343,7 +1300,6 @@ def test_show_all_shows_incompatible_package( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1483,7 +1439,6 @@ def test_show_non_dev_with_basic_installed_packages( pytest_373 = get_package("pytest", "3.7.3") pytest_373.description = "Pytest package" - pytest_373.category = "dev" installed.add_package(cachy_010) installed.add_package(pendulum_200) @@ -1496,7 +1451,6 @@ def test_show_non_dev_with_basic_installed_packages( "name": "cachy", "version": "0.1.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1506,7 +1460,6 @@ def test_show_non_dev_with_basic_installed_packages( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1516,7 +1469,6 @@ def test_show_non_dev_with_basic_installed_packages( "name": "pytest", "version": "3.7.3", "description": "Pytest package", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1559,7 +1511,6 @@ def test_show_with_group_only( pytest_373 = get_package("pytest", "3.7.3") pytest_373.description = "Pytest package" - pytest_373.category = "dev" installed.add_package(cachy_010) installed.add_package(pendulum_200) @@ -1572,7 +1523,6 @@ def test_show_with_group_only( "name": "cachy", "version": "0.1.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1582,7 +1532,6 @@ def test_show_with_group_only( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1592,7 +1541,6 @@ def test_show_with_group_only( "name": "pytest", "version": "3.7.3", "description": "Pytest package", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1634,7 +1582,6 @@ def test_show_with_optional_group( pytest_373 = get_package("pytest", "3.7.3") pytest_373.description = "Pytest package" - pytest_373.category = "dev" installed.add_package(cachy_010) installed.add_package(pendulum_200) @@ -1647,7 +1594,6 @@ def test_show_with_optional_group( "name": "cachy", "version": "0.1.0", "description": "Cachy package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1657,7 +1603,6 @@ def test_show_with_optional_group( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1667,7 +1612,6 @@ def test_show_with_optional_group( "name": "pytest", "version": "3.7.3", "description": "Pytest package", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1718,7 +1662,6 @@ def test_show_tree(tester: CommandTester, poetry: Poetry, installed: Repository) "name": "cachy", "version": "0.2.0", "description": "", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1729,7 +1672,6 @@ def test_show_tree(tester: CommandTester, poetry: Poetry, installed: Repository) "name": "msgpack-python", "version": "0.5.1", "description": "", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1775,7 +1717,6 @@ def test_show_tree_no_dev(tester: CommandTester, poetry: Poetry, installed: Repo "name": "cachy", "version": "0.2.0", "description": "", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1786,7 +1727,6 @@ def test_show_tree_no_dev(tester: CommandTester, poetry: Poetry, installed: Repo "name": "msgpack-python", "version": "0.5.1", "description": "", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1796,7 +1736,6 @@ def test_show_tree_no_dev(tester: CommandTester, poetry: Poetry, installed: Repo "name": "pytest", "version": "6.1.1", "description": "", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1959,7 +1898,6 @@ def test_show_required_by_deps( "name": "cachy", "version": "0.2.0", "description": "", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1970,7 +1908,6 @@ def test_show_required_by_deps( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1981,7 +1918,6 @@ def test_show_required_by_deps( "name": "msgpack-python", "version": "0.5.1", "description": "", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -2055,7 +1991,6 @@ def test_show_dependency_installed_from_git_in_dev( "name": "demo", "version": "0.1.2", "description": "Demo package", - "category": "main", "optional": False, "python-versions": "*", "develop": False, @@ -2070,7 +2005,6 @@ def test_show_dependency_installed_from_git_in_dev( "name": "pendulum", "version": "2.0.0", "description": "Pendulum package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -2117,7 +2051,6 @@ def test_url_dependency_is_not_outdated_by_repository_package( "name": "demo", "version": "0.1.0", "description": "Demo package", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", diff --git a/tests/fixtures/deleted_directory_dependency/poetry.lock b/tests/fixtures/deleted_directory_dependency/poetry.lock index de0370101b8..5fd7b6aeb59 100644 --- a/tests/fixtures/deleted_directory_dependency/poetry.lock +++ b/tests/fixtures/deleted_directory_dependency/poetry.lock @@ -4,7 +4,6 @@ name = "missing" version = "1.2.3" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/fixtures/deleted_file_dependency/poetry.lock b/tests/fixtures/deleted_file_dependency/poetry.lock index d5bb9f16541..8230a5a9845 100644 --- a/tests/fixtures/deleted_file_dependency/poetry.lock +++ b/tests/fixtures/deleted_file_dependency/poetry.lock @@ -4,7 +4,6 @@ name = "missing" version = "1.2.3" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/fixtures/missing_directory_dependency/poetry.lock b/tests/fixtures/missing_directory_dependency/poetry.lock index 671a7060742..5fd7b6aeb59 100644 --- a/tests/fixtures/missing_directory_dependency/poetry.lock +++ b/tests/fixtures/missing_directory_dependency/poetry.lock @@ -4,7 +4,6 @@ name = "missing" version = "1.2.3" description = "" -category = "dev" optional = false python-versions = "*" files = [] diff --git a/tests/fixtures/missing_file_dependency/poetry.lock b/tests/fixtures/missing_file_dependency/poetry.lock index 76c3027db45..8230a5a9845 100644 --- a/tests/fixtures/missing_file_dependency/poetry.lock +++ b/tests/fixtures/missing_file_dependency/poetry.lock @@ -4,7 +4,6 @@ name = "missing" version = "1.2.3" description = "" -category = "dev" optional = false python-versions = "*" files = [] diff --git a/tests/fixtures/old_lock/poetry.lock b/tests/fixtures/old_lock/poetry.lock index 498df2edc9f..b343db23916 100644 --- a/tests/fixtures/old_lock/poetry.lock +++ b/tests/fixtures/old_lock/poetry.lock @@ -1,5 +1,4 @@ [[package]] -category = "main" description = "A sample Python project" name = "sampleproject" optional = false diff --git a/tests/fixtures/old_lock_path_dependency/poetry.lock b/tests/fixtures/old_lock_path_dependency/poetry.lock index 45c6e792d7f..c5e6f34efc7 100644 --- a/tests/fixtures/old_lock_path_dependency/poetry.lock +++ b/tests/fixtures/old_lock_path_dependency/poetry.lock @@ -4,7 +4,6 @@ name = "quix" version = "1.2.3" description = "Some description." -category = "main" optional = false python-versions = "~2.7 || ^3.4" files = [] diff --git a/tests/fixtures/outdated_lock/poetry.lock b/tests/fixtures/outdated_lock/poetry.lock index 51c1e1d1f09..fe331972248 100644 --- a/tests/fixtures/outdated_lock/poetry.lock +++ b/tests/fixtures/outdated_lock/poetry.lock @@ -2,7 +2,6 @@ name = "certifi" version = "2020.6.20" description = "Python package for providing Mozilla's CA Bundle." -category = "main" optional = false python-versions = "*" @@ -18,7 +17,6 @@ hash = "sha256:5930595817496dd21bb8dc35dad090f1c2cd0adfaf21204bf6732ca5d8ee34d3" name = "chardet" version = "3.0.4" description = "Universal encoding detector for Python 2 and 3" -category = "main" optional = false python-versions = "*" @@ -34,7 +32,6 @@ hash = "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae" name = "docker" version = "4.3.0" description = "A Python library for the Docker Engine API." -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" @@ -60,7 +57,6 @@ tls = ["pyOpenSSL (>=17.5.0)", "cryptography (>=1.3.4)", "idna (>=2.0.0)"] name = "idna" version = "2.10" description = "Internationalized Domain Names in Applications (IDNA)" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" @@ -76,7 +72,6 @@ hash = "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6" name = "pywin32" version = "227" description = "Python for Window Extensions" -category = "main" optional = false python-versions = "*" @@ -132,7 +127,6 @@ hash = "sha256:f27cec5e7f588c3d1051651830ecc00294f90728d19c3bf6916e6dba93ea357c" name = "requests" version = "2.24.0" description = "Python HTTP for Humans." -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" @@ -158,7 +152,6 @@ socks = ["PySocks (>=1.5.6,<1.5.7 || >1.5.7)", "win-inet-pton"] name = "six" version = "1.15.0" description = "Python 2 and 3 compatibility utilities" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" @@ -174,7 +167,6 @@ hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259" name = "urllib3" version = "1.25.10" description = "HTTP library with thread-safe connection pooling, file post, and more." -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4" @@ -195,7 +187,6 @@ socks = ["PySocks (>=1.5.6,<1.5.7 || >1.5.7,<2.0)"] name = "websocket-client" version = "0.57.0" description = "WebSocket client for Python. hybi13 is supported." -category = "main" optional = false python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" diff --git a/tests/fixtures/up_to_date_lock/poetry.lock b/tests/fixtures/up_to_date_lock/poetry.lock index 569ab9d4239..8b2ca8737e0 100644 --- a/tests/fixtures/up_to_date_lock/poetry.lock +++ b/tests/fixtures/up_to_date_lock/poetry.lock @@ -2,7 +2,6 @@ name = "certifi" version = "2020.12.5" description = "Python package for providing Mozilla's CA Bundle." -category = "main" optional = false python-versions = "*" @@ -18,7 +17,6 @@ hash = "sha256:1a4995114262bffbc2413b159f2a1a480c969de6e6eb13ee966d470af86af59c" name = "chardet" version = "4.0.0" description = "Universal encoding detector for Python 2 and 3" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" @@ -34,7 +32,6 @@ hash = "sha256:0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa" name = "docker" version = "4.3.1" description = "A Python library for the Docker Engine API." -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" @@ -60,7 +57,6 @@ tls = ["pyOpenSSL (>=17.5.0)", "cryptography (>=1.3.4)", "idna (>=2.0.0)"] name = "idna" version = "2.10" description = "Internationalized Domain Names in Applications (IDNA)" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" @@ -76,7 +72,6 @@ hash = "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6" name = "pywin32" version = "227" description = "Python for Window Extensions" -category = "main" optional = false python-versions = "*" @@ -132,7 +127,6 @@ hash = "sha256:f27cec5e7f588c3d1051651830ecc00294f90728d19c3bf6916e6dba93ea357c" name = "requests" version = "2.25.1" description = "Python HTTP for Humans." -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" @@ -158,7 +152,6 @@ socks = ["PySocks (>=1.5.6,!=1.5.7)", "win-inet-pton"] name = "six" version = "1.15.0" description = "Python 2 and 3 compatibility utilities" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" @@ -174,7 +167,6 @@ hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259" name = "urllib3" version = "1.26.3" description = "HTTP library with thread-safe connection pooling, file post, and more." -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4" @@ -195,7 +187,6 @@ socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] name = "websocket-client" version = "0.58.0" description = "WebSocket client for Python with low level API options" -category = "main" optional = false python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" diff --git a/tests/installation/fixtures/extras-with-dependencies.test b/tests/installation/fixtures/extras-with-dependencies.test index c4b71a2dd00..2dc9f2bafb3 100644 --- a/tests/installation/fixtures/extras-with-dependencies.test +++ b/tests/installation/fixtures/extras-with-dependencies.test @@ -2,7 +2,6 @@ name = "A" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -11,7 +10,6 @@ files = [] name = "B" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -20,7 +18,6 @@ files = [] name = "C" version = "1.0" description = "" -category = "main" optional = true python-versions = "*" files = [] @@ -32,7 +29,6 @@ D = "^1.0" name = "D" version = "1.1" description = "" -category = "main" optional = true python-versions = "*" files = [] diff --git a/tests/installation/fixtures/extras.test b/tests/installation/fixtures/extras.test index 5c33b6e373f..e3b4b1653a3 100644 --- a/tests/installation/fixtures/extras.test +++ b/tests/installation/fixtures/extras.test @@ -2,7 +2,6 @@ name = "A" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -11,7 +10,6 @@ files = [] name = "B" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -20,7 +18,6 @@ files = [] name = "C" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -29,7 +26,6 @@ files = [] name = "D" version = "1.1" description = "" -category = "main" optional = true python-versions = "*" files = [] diff --git a/tests/installation/fixtures/install-no-dev.test b/tests/installation/fixtures/install-no-dev.test index 282c54d578f..d874343c155 100644 --- a/tests/installation/fixtures/install-no-dev.test +++ b/tests/installation/fixtures/install-no-dev.test @@ -2,7 +2,6 @@ name = "A" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -11,7 +10,6 @@ files = [] name = "B" version = "1.1" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -20,7 +18,6 @@ files = [] name = "C" version = "1.2" description = "" -category = "dev" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/old-lock.test b/tests/installation/fixtures/old-lock.test index e1898fbd3f1..2e058c7f01d 100644 --- a/tests/installation/fixtures/old-lock.test +++ b/tests/installation/fixtures/old-lock.test @@ -2,7 +2,6 @@ name = "attrs" version = "17.4.0" description = "Classes Without Boilerplate" -category = "dev" optional = false python-versions = "*" @@ -15,7 +14,6 @@ tests = ["coverage", "hypothesis", "pympler", "pytest", "six", "zope.interface"] name = "colorama" version = "0.3.9" description = "Cross-platform colored terminal text." -category = "dev" marker = "sys_platform == \"win32\"" optional = false python-versions = "*" @@ -24,7 +22,6 @@ python-versions = "*" name = "funcsigs" version = "1.0.2" description = "Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+" -category = "dev" marker = "python_version < \"3.0\"" optional = false python-versions = "*" @@ -33,7 +30,6 @@ python-versions = "*" name = "more-itertools" version = "4.1.0" description = "More routines for operating on iterables, beyond itertools" -category = "dev" optional = false python-versions = "*" @@ -44,7 +40,6 @@ six = ">=1.0.0,<2.0.0" name = "pluggy" version = "0.6.0" description = "plugin and hook calling mechanisms for python" -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" @@ -52,7 +47,6 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" name = "py" version = "1.5.3" description = "library with cross-python path, ini-parsing, io, code, log facilities" -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" @@ -60,7 +54,6 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" name = "pytest" version = "3.5.0" description = "pytest: simple powerful testing with Python" -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" @@ -77,7 +70,6 @@ colorama = "*" name = "six" version = "1.11.0" description = "Python 2 and 3 compatibility utilities" -category = "dev" optional = false python-versions = "*" diff --git a/tests/installation/fixtures/remove.test b/tests/installation/fixtures/remove.test index 3a8f1a33159..0a264b66e42 100644 --- a/tests/installation/fixtures/remove.test +++ b/tests/installation/fixtures/remove.test @@ -2,7 +2,6 @@ name = "A" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/update-with-lock.test b/tests/installation/fixtures/update-with-lock.test index fe6f798f87c..eafd48836c0 100644 --- a/tests/installation/fixtures/update-with-lock.test +++ b/tests/installation/fixtures/update-with-lock.test @@ -2,7 +2,6 @@ name = "A" version = "1.1" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/update-with-locked-extras.test b/tests/installation/fixtures/update-with-locked-extras.test index e748875f102..348621aa9a3 100644 --- a/tests/installation/fixtures/update-with-locked-extras.test +++ b/tests/installation/fixtures/update-with-locked-extras.test @@ -2,7 +2,6 @@ name = "A" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -18,7 +17,6 @@ foo = ["B"] name = "B" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -27,7 +25,6 @@ files = [] name = "C" version = "1.1" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -36,7 +33,6 @@ files = [] name = "D" version = "1.1" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/with-category-change.test b/tests/installation/fixtures/with-category-change.test deleted file mode 100644 index 66838707b2e..00000000000 --- a/tests/installation/fixtures/with-category-change.test +++ /dev/null @@ -1,25 +0,0 @@ -[[package]] -name = "A" -version = "1.0" -description = "" -category = "main" -optional = false -python-versions = "*" -files = [] - -[[package]] -name = "B" -version = "1.1" -description = "" -category = "main" -optional = false -python-versions = "*" -files = [] - -[package.dependencies] -A = "^1.0" - -[metadata] -python-versions = "*" -lock-version = "2.0" -content-hash = "123456789" diff --git a/tests/installation/fixtures/with-conditional-dependency.test b/tests/installation/fixtures/with-conditional-dependency.test index 3fac6462f9b..090bee4025e 100644 --- a/tests/installation/fixtures/with-conditional-dependency.test +++ b/tests/installation/fixtures/with-conditional-dependency.test @@ -2,7 +2,6 @@ name = "A" version = "1.0.0" description = "" -category = "main" optional = false python-versions = ">=3.5" files = [] @@ -14,7 +13,6 @@ python = ">=3.5,<4.0" name = "A" version = "1.0.1" description = "" -category = "main" optional = false python-versions = ">=3.6" files = [] diff --git a/tests/installation/fixtures/with-dependencies-extras.test b/tests/installation/fixtures/with-dependencies-extras.test index 0c25d7777f8..486e43fbc32 100644 --- a/tests/installation/fixtures/with-dependencies-extras.test +++ b/tests/installation/fixtures/with-dependencies-extras.test @@ -2,7 +2,6 @@ name = "A" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -11,7 +10,6 @@ files = [] name = "B" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -26,7 +24,6 @@ foo = ["C (>=1.0,<2.0)"] name = "C" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/with-dependencies-nested-extras.test b/tests/installation/fixtures/with-dependencies-nested-extras.test index a743d1a44d7..6b07ddb4271 100644 --- a/tests/installation/fixtures/with-dependencies-nested-extras.test +++ b/tests/installation/fixtures/with-dependencies-nested-extras.test @@ -2,7 +2,6 @@ name = "A" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -17,7 +16,6 @@ b = ["B[c] (>=1.0,<2.0)"] name = "B" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -32,7 +30,6 @@ c = ["C (>=1.0,<2.0)"] name = "C" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/with-dependencies.test b/tests/installation/fixtures/with-dependencies.test index 2cc6ee051b3..aa74c20c8f7 100644 --- a/tests/installation/fixtures/with-dependencies.test +++ b/tests/installation/fixtures/with-dependencies.test @@ -2,7 +2,6 @@ name = "A" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -11,7 +10,6 @@ files = [] name = "B" version = "1.1" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/with-directory-dependency-poetry-transitive.test b/tests/installation/fixtures/with-directory-dependency-poetry-transitive.test index bcc61584b46..4459d737602 100644 --- a/tests/installation/fixtures/with-directory-dependency-poetry-transitive.test +++ b/tests/installation/fixtures/with-directory-dependency-poetry-transitive.test @@ -1,5 +1,4 @@ [[package]] -category = "main" description = "" name = "demo" optional = false @@ -22,7 +21,6 @@ type = "file" url = "../distributions/demo-0.1.0-py2.py3-none-any.whl" [[package]] -category = "main" description = "This is a description" develop = false name = "inner-directory-project" @@ -36,7 +34,6 @@ type = "directory" url = "project_with_transitive_file_dependencies/inner-directory-project" [[package]] -category = "main" description = "" name = "pendulum" optional = false @@ -45,7 +42,6 @@ files = [] version = "1.4.4" [[package]] -category = "main" description = "This is a description" develop = false name = "project-with-extras" @@ -63,7 +59,6 @@ type = "directory" url = "../project_with_extras" [[package]] -category = "main" description = "This is a description" develop = false name = "project-with-transitive-directory-dependencies" @@ -81,7 +76,6 @@ type = "directory" url = "project_with_transitive_directory_dependencies" [[package]] -category = "main" description = "This is a description" develop = false name = "project-with-transitive-file-dependencies" diff --git a/tests/installation/fixtures/with-directory-dependency-poetry.test b/tests/installation/fixtures/with-directory-dependency-poetry.test index c05c80c0f81..312970eeea9 100644 --- a/tests/installation/fixtures/with-directory-dependency-poetry.test +++ b/tests/installation/fixtures/with-directory-dependency-poetry.test @@ -1,6 +1,5 @@ [[package]] description = "" -category = "main" name = "pendulum" optional = false python-versions = "*" @@ -8,7 +7,6 @@ files = [] version = "1.4.4" [[package]] -category = "main" description = "This is a description" develop = false name = "project-with-extras" diff --git a/tests/installation/fixtures/with-directory-dependency-setuptools.test b/tests/installation/fixtures/with-directory-dependency-setuptools.test index c4700222187..8557b067dd3 100644 --- a/tests/installation/fixtures/with-directory-dependency-setuptools.test +++ b/tests/installation/fixtures/with-directory-dependency-setuptools.test @@ -2,7 +2,6 @@ name = "cachy" version = "0.2.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -11,7 +10,6 @@ files = [] name = "pendulum" version = "1.4.4" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -21,7 +19,6 @@ name = "project-with-setup" version = "0.1.2" develop = false description = "Demo project." -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/with-duplicate-dependencies-update.test b/tests/installation/fixtures/with-duplicate-dependencies-update.test index ed2544695c3..d68fe893918 100644 --- a/tests/installation/fixtures/with-duplicate-dependencies-update.test +++ b/tests/installation/fixtures/with-duplicate-dependencies-update.test @@ -2,7 +2,6 @@ name = "A" version = "1.1" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -14,7 +13,6 @@ B = "^2.0" name = "B" version = "2.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -26,7 +24,6 @@ C = "1.5" name = "C" version = "1.5" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/with-duplicate-dependencies.test b/tests/installation/fixtures/with-duplicate-dependencies.test index c2b16990725..2c3030a34e5 100644 --- a/tests/installation/fixtures/with-duplicate-dependencies.test +++ b/tests/installation/fixtures/with-duplicate-dependencies.test @@ -2,7 +2,6 @@ name = "A" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -17,7 +16,6 @@ B = [ name = "B" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -29,7 +27,6 @@ C = "1.2" name = "B" version = "2.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -41,7 +38,6 @@ C = "1.5" name = "C" version = "1.2" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -50,7 +46,6 @@ files = [] name = "C" version = "1.5" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/with-file-dependency-transitive.test b/tests/installation/fixtures/with-file-dependency-transitive.test index a863af4487a..738c388e779 100644 --- a/tests/installation/fixtures/with-file-dependency-transitive.test +++ b/tests/installation/fixtures/with-file-dependency-transitive.test @@ -1,5 +1,4 @@ [[package]] -category = "main" description = "" name = "demo" optional = false @@ -22,7 +21,6 @@ type = "file" url = "../distributions/demo-0.1.0-py2.py3-none-any.whl" [[package]] -category = "main" description = "This is a description" develop = false name = "inner-directory-project" @@ -36,7 +34,6 @@ type = "directory" url = "project_with_transitive_file_dependencies/inner-directory-project" [[package]] -category = "main" description = "" name = "pendulum" optional = false @@ -45,7 +42,6 @@ files = [] version = "1.4.4" [[package]] -category = "main" description = "This is a description" develop = false name = "project-with-transitive-file-dependencies" diff --git a/tests/installation/fixtures/with-file-dependency.test b/tests/installation/fixtures/with-file-dependency.test index 15b080c0002..e5be6578903 100644 --- a/tests/installation/fixtures/with-file-dependency.test +++ b/tests/installation/fixtures/with-file-dependency.test @@ -2,7 +2,6 @@ name = "demo" version = "0.1.0" description = "" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" @@ -25,7 +24,6 @@ foo = ["cleo"] name = "pendulum" version = "1.4.4" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/with-multiple-updates.test b/tests/installation/fixtures/with-multiple-updates.test index 929322c608d..76bc65a2a5b 100644 --- a/tests/installation/fixtures/with-multiple-updates.test +++ b/tests/installation/fixtures/with-multiple-updates.test @@ -2,7 +2,6 @@ name = "A" version = "1.1" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -18,7 +17,6 @@ C = [ name = "B" version = "1.1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -27,7 +25,6 @@ files = [] name = "C" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -36,7 +33,6 @@ files = [] name = "C" version = "2.0" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/with-optional-dependencies.test b/tests/installation/fixtures/with-optional-dependencies.test index f3f6ff16882..9d6c85f70f9 100644 --- a/tests/installation/fixtures/with-optional-dependencies.test +++ b/tests/installation/fixtures/with-optional-dependencies.test @@ -2,7 +2,6 @@ name = "A" version = "1.0" description = "" -category = "main" optional = true python-versions = "*" files = [] @@ -11,7 +10,6 @@ files = [] name = "C" version = "1.3" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -23,7 +21,6 @@ D = "^1.2" name = "D" version = "1.4" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/with-platform-dependencies.test b/tests/installation/fixtures/with-platform-dependencies.test index 32ff7af1884..4fc99d9183b 100644 --- a/tests/installation/fixtures/with-platform-dependencies.test +++ b/tests/installation/fixtures/with-platform-dependencies.test @@ -2,7 +2,6 @@ name = "A" version = "1.0" description = "" -category = "main" optional = true python-versions = "*" files = [] @@ -11,7 +10,6 @@ files = [] name = "B" version = "1.1" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -20,7 +18,6 @@ files = [] name = "C" version = "1.3" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -32,7 +29,6 @@ D = "^1.2" name = "D" version = "1.4" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/with-prereleases.test b/tests/installation/fixtures/with-prereleases.test index 8c29f0dfb0a..19347ae9364 100644 --- a/tests/installation/fixtures/with-prereleases.test +++ b/tests/installation/fixtures/with-prereleases.test @@ -2,7 +2,6 @@ name = "A" version = "1.0a2" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -11,7 +10,6 @@ files = [] name = "B" version = "1.1" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/with-pypi-repository.test b/tests/installation/fixtures/with-pypi-repository.test index de60c4ffce2..3ada7ffc673 100644 --- a/tests/installation/fixtures/with-pypi-repository.test +++ b/tests/installation/fixtures/with-pypi-repository.test @@ -4,7 +4,6 @@ name = "attrs" version = "17.4.0" description = "Classes Without Boilerplate" -category = "dev" optional = false python-versions = "*" files = [ @@ -21,7 +20,6 @@ tests = ["coverage", "hypothesis", "pympler", "pytest", "six", "zope.interface"] name = "colorama" version = "0.3.9" description = "Cross-platform colored terminal text." -category = "dev" optional = false python-versions = "*" files = [ @@ -33,7 +31,6 @@ files = [ name = "more-itertools" version = "4.1.0" description = "More routines for operating on iterables, beyond itertools" -category = "dev" optional = false python-versions = "*" files = [ @@ -49,7 +46,6 @@ six = ">=1.0.0,<2.0.0" name = "pluggy" version = "0.6.0" description = "plugin and hook calling mechanisms for python" -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -60,7 +56,6 @@ files = [ name = "py" version = "1.5.3" description = "library with cross-python path, ini-parsing, io, code, log facilities" -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -72,7 +67,6 @@ files = [ name = "pytest" version = "3.5.0" description = "pytest: simple powerful testing with Python" -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -93,7 +87,6 @@ six = ">=1.10.0" name = "setuptools" version = "67.6.1" description = "Easily download, build, install, upgrade, and uninstall Python packages" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -110,7 +103,6 @@ testing-integration = ["build[virtualenv]", "filelock (>=3.4.0)", "jaraco.envs ( name = "six" version = "1.11.0" description = "Python 2 and 3 compatibility utilities" -category = "dev" optional = false python-versions = "*" files = [ diff --git a/tests/installation/fixtures/with-python-versions.test b/tests/installation/fixtures/with-python-versions.test index 39b18c5132e..6c39d957e88 100644 --- a/tests/installation/fixtures/with-python-versions.test +++ b/tests/installation/fixtures/with-python-versions.test @@ -2,7 +2,6 @@ name = "A" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -11,7 +10,6 @@ files = [] name = "B" version = "1.1" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -20,7 +18,6 @@ files = [] name = "C" version = "1.2" description = "" -category = "main" optional = false python-versions = "~2.7 || ^3.3" files = [] diff --git a/tests/installation/fixtures/with-same-version-url-dependencies.test b/tests/installation/fixtures/with-same-version-url-dependencies.test index 52a3690e887..47b8c1006c5 100644 --- a/tests/installation/fixtures/with-same-version-url-dependencies.test +++ b/tests/installation/fixtures/with-same-version-url-dependencies.test @@ -2,7 +2,6 @@ name = "demo" version = "0.1.0" description = "" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -24,7 +23,6 @@ foo = ["cleo"] name = "demo" version = "0.1.0" description = "" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -45,7 +43,6 @@ foo = ["cleo"] name = "pendulum" version = "1.4.4" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/with-sub-dependencies.test b/tests/installation/fixtures/with-sub-dependencies.test index ac967d6fa72..03ece3f5b62 100644 --- a/tests/installation/fixtures/with-sub-dependencies.test +++ b/tests/installation/fixtures/with-sub-dependencies.test @@ -2,7 +2,6 @@ name = "A" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -14,7 +13,6 @@ D = "^1.0" name = "B" version = "1.1" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -26,7 +24,6 @@ C = "~1.2" name = "C" version = "1.2" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -35,7 +32,6 @@ files = [] name = "D" version = "1.3" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/with-url-dependency.test b/tests/installation/fixtures/with-url-dependency.test index e6878546942..6cfbe6d8f6c 100644 --- a/tests/installation/fixtures/with-url-dependency.test +++ b/tests/installation/fixtures/with-url-dependency.test @@ -2,7 +2,6 @@ name = "demo" version = "0.1.0" description = "" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -24,7 +23,6 @@ foo = ["cleo"] name = "pendulum" version = "1.4.4" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/with-vcs-dependency-with-extras.test b/tests/installation/fixtures/with-vcs-dependency-with-extras.test index 12c5da5c941..aead6aabc1f 100644 --- a/tests/installation/fixtures/with-vcs-dependency-with-extras.test +++ b/tests/installation/fixtures/with-vcs-dependency-with-extras.test @@ -2,7 +2,6 @@ name = "demo" version = "0.1.2" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -25,7 +24,6 @@ resolved_reference = "123456" name = "pendulum" version = "1.4.4" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -34,7 +32,6 @@ files = [] name = "cleo" version = "1.0.0" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/with-vcs-dependency-without-ref.test b/tests/installation/fixtures/with-vcs-dependency-without-ref.test index 67c2c962eb5..31fecec2c78 100644 --- a/tests/installation/fixtures/with-vcs-dependency-without-ref.test +++ b/tests/installation/fixtures/with-vcs-dependency-without-ref.test @@ -2,7 +2,6 @@ name = "demo" version = "0.1.2" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -21,7 +20,6 @@ resolved_reference = "123456" name = "pendulum" version = "1.4.4" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/installation/fixtures/with-wheel-dependency-no-requires-dist.test b/tests/installation/fixtures/with-wheel-dependency-no-requires-dist.test index a484b41e8cd..a7bc27e596c 100644 --- a/tests/installation/fixtures/with-wheel-dependency-no-requires-dist.test +++ b/tests/installation/fixtures/with-wheel-dependency-no-requires-dist.test @@ -2,7 +2,6 @@ name = "demo" version = "0.1.0" description = "" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" diff --git a/tests/installation/test_installer.py b/tests/installation/test_installer.py index 841a2ccde64..9e7725c5961 100644 --- a/tests/installation/test_installer.py +++ b/tests/installation/test_installer.py @@ -246,7 +246,6 @@ def test_run_update_after_removing_dependencies( { "name": "A", "version": "1.0", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -255,7 +254,6 @@ def test_run_update_after_removing_dependencies( { "name": "B", "version": "1.1", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -264,7 +262,6 @@ def test_run_update_after_removing_dependencies( { "name": "C", "version": "1.2", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -323,7 +320,6 @@ def _configure_run_install_dev( { "name": "A", "version": "1.0", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -332,7 +328,6 @@ def _configure_run_install_dev( { "name": "B", "version": "1.1", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -341,7 +336,6 @@ def _configure_run_install_dev( { "name": "C", "version": "1.2", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -453,7 +447,6 @@ def test_run_install_does_not_remove_locked_packages_if_installed_but_not_requir { "name": package_a.name, "version": package_a.version.text, - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -462,7 +455,6 @@ def test_run_install_does_not_remove_locked_packages_if_installed_but_not_requir { "name": package_b.name, "version": package_b.version.text, - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -471,7 +463,6 @@ def test_run_install_does_not_remove_locked_packages_if_installed_but_not_requir { "name": package_c.name, "version": package_c.version.text, - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -524,7 +515,6 @@ def test_run_install_removes_locked_packages_if_installed_and_synchronization_is { "name": package_a.name, "version": package_a.version.text, - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -533,7 +523,6 @@ def test_run_install_removes_locked_packages_if_installed_and_synchronization_is { "name": package_b.name, "version": package_b.version.text, - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -542,7 +531,6 @@ def test_run_install_removes_locked_packages_if_installed_and_synchronization_is { "name": package_c.name, "version": package_c.version.text, - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -595,7 +583,6 @@ def test_run_install_removes_no_longer_locked_packages_if_installed( { "name": package_a.name, "version": package_a.version.text, - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -604,7 +591,6 @@ def test_run_install_removes_no_longer_locked_packages_if_installed( { "name": package_b.name, "version": package_b.version.text, - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -613,7 +599,6 @@ def test_run_install_removes_no_longer_locked_packages_if_installed( { "name": package_c.name, "version": package_c.version.text, - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -691,7 +676,6 @@ def test_run_install_with_synchronization( { "name": pkg.name, "version": pkg.version, - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -735,7 +719,6 @@ def test_run_whitelist_add( { "name": "A", "version": "1.0", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -784,7 +767,6 @@ def test_run_whitelist_remove( { "name": "A", "version": "1.0", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -793,7 +775,6 @@ def test_run_whitelist_remove( { "name": "B", "version": "1.1", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1385,7 +1366,6 @@ def test_run_with_prereleases( { "name": "A", "version": "1.0a2", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1420,53 +1400,6 @@ def test_run_with_prereleases( assert locker.written_data == expected -def test_run_changes_category_if_needed( - installer: Installer, locker: Locker, repo: Repository, package: ProjectPackage -): - locker.locked(True) - locker.mock_lock_data( - { - "package": [ - { - "name": "A", - "version": "1.0", - "category": "dev", - "optional": True, - "platform": "*", - "python-versions": "*", - "checksum": [], - } - ], - "metadata": { - "python-versions": "*", - "platform": "*", - "content-hash": "123456789", - "files": {"A": []}, - }, - } - ) - package_a = get_package("A", "1.0") - package_b = get_package("B", "1.1") - package_b.add_dependency(Factory.create_dependency("A", "^1.0")) - repo.add_package(package_a) - repo.add_package(package_b) - - package.add_dependency( - Factory.create_dependency( - "A", {"version": "^1.0", "optional": True}, groups=["dev"] - ) - ) - package.add_dependency(Factory.create_dependency("B", "^1.1")) - - installer.update(True) - installer.whitelist(["B"]) - - installer.run() - expected = fixture("with-category-change") - - assert locker.written_data == expected - - def test_run_update_all_with_lock( installer: Installer, locker: Locker, repo: Repository, package: ProjectPackage ): @@ -1477,7 +1410,6 @@ def test_run_update_all_with_lock( { "name": "A", "version": "1.0", - "category": "dev", "optional": True, "platform": "*", "python-versions": "*", @@ -1517,7 +1449,6 @@ def test_run_update_with_locked_extras( { "name": "A", "version": "1.0", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1527,7 +1458,6 @@ def test_run_update_with_locked_extras( { "name": "B", "version": "1.0", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1536,7 +1466,6 @@ def test_run_update_with_locked_extras( { "name": "C", "version": "1.1", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1635,7 +1564,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock( { "name": "A", "version": "1.0", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1650,7 +1578,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock( { "name": "B", "version": "1.0", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1661,7 +1588,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock( { "name": "B", "version": "2.0", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1672,7 +1598,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock( { "name": "C", "version": "1.2", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1681,7 +1606,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock( { "name": "C", "version": "1.5", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1747,7 +1671,6 @@ def test_run_update_uninstalls_after_removal_transient_dependency( { "name": "A", "version": "1.0", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1757,7 +1680,6 @@ def test_run_update_uninstalls_after_removal_transient_dependency( { "name": "B", "version": "1.0", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1810,7 +1732,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock_upda { "name": "A", "version": "1.0", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1825,7 +1746,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock_upda { "name": "B", "version": "1.0", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1836,7 +1756,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock_upda { "name": "B", "version": "2.0", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1847,7 +1766,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock_upda { "name": "C", "version": "1.2", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1856,7 +1774,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock_upda { "name": "C", "version": "1.5", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -2135,7 +2052,6 @@ def test_update_multiple_times_with_split_dependencies_is_idempotent( { "name": "A", "version": "1.0", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -2145,7 +2061,6 @@ def test_update_multiple_times_with_split_dependencies_is_idempotent( { "name": "B", "version": "1.0.1", - "category": "main", "optional": False, "platform": "*", "python-versions": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", @@ -2457,7 +2372,6 @@ def test_installer_should_use_the_locked_version_of_git_dependencies( { "name": "demo", "version": "0.1.1", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -2473,7 +2387,6 @@ def test_installer_should_use_the_locked_version_of_git_dependencies( { "name": "pendulum", "version": "1.4.4", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -2635,7 +2548,6 @@ def test_installer_distinguishes_locked_packages_by_source( { "name": "torch", "version": "1.11.0", - "category": "main", "optional": False, "files": [], "python-versions": "*", @@ -2643,7 +2555,6 @@ def test_installer_distinguishes_locked_packages_by_source( { "name": "torch", "version": "1.11.0+cpu", - "category": "main", "optional": False, "files": [], "python-versions": "*", diff --git a/tests/installation/test_installer_old.py b/tests/installation/test_installer_old.py index 45d3a5c767d..1ef81bf6beb 100644 --- a/tests/installation/test_installer_old.py +++ b/tests/installation/test_installer_old.py @@ -193,7 +193,6 @@ def test_run_update_after_removing_dependencies( { "name": "A", "version": "1.0", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -202,7 +201,6 @@ def test_run_update_after_removing_dependencies( { "name": "B", "version": "1.1", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -211,7 +209,6 @@ def test_run_update_after_removing_dependencies( { "name": "C", "version": "1.2", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -271,7 +268,6 @@ def test_run_install_no_group( { "name": "A", "version": "1.0", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -280,7 +276,6 @@ def test_run_install_no_group( { "name": "B", "version": "1.1", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -289,7 +284,6 @@ def test_run_install_no_group( { "name": "C", "version": "1.2", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -386,7 +380,6 @@ def test_run_install_with_synchronization( { "name": pkg.name, "version": pkg.version, - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -433,7 +426,6 @@ def test_run_whitelist_add( { "name": "A", "version": "1.0", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -482,7 +474,6 @@ def test_run_whitelist_remove( { "name": "A", "version": "1.0", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -491,7 +482,6 @@ def test_run_whitelist_remove( { "name": "B", "version": "1.1", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1031,7 +1021,6 @@ def test_run_with_prereleases( { "name": "A", "version": "1.0a2", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1066,53 +1055,6 @@ def test_run_with_prereleases( assert locker.written_data == expected -def test_run_changes_category_if_needed( - installer: Installer, locker: Locker, repo: Repository, package: ProjectPackage -): - locker.locked(True) - locker.mock_lock_data( - { - "package": [ - { - "name": "A", - "version": "1.0", - "category": "dev", - "optional": True, - "platform": "*", - "python-versions": "*", - "checksum": [], - } - ], - "metadata": { - "python-versions": "*", - "platform": "*", - "content-hash": "123456789", - "files": {"A": []}, - }, - } - ) - package_a = get_package("A", "1.0") - package_b = get_package("B", "1.1") - package_b.add_dependency(Factory.create_dependency("A", "^1.0")) - repo.add_package(package_a) - repo.add_package(package_b) - - package.add_dependency( - Factory.create_dependency( - "A", {"version": "^1.0", "optional": True}, groups=["dev"] - ) - ) - package.add_dependency(Factory.create_dependency("B", "^1.1")) - - installer.update(True) - installer.whitelist(["B"]) - - installer.run() - expected = fixture("with-category-change") - - assert locker.written_data == expected - - def test_run_update_all_with_lock( installer: Installer, locker: Locker, repo: Repository, package: ProjectPackage ): @@ -1123,7 +1065,6 @@ def test_run_update_all_with_lock( { "name": "A", "version": "1.0", - "category": "dev", "optional": True, "platform": "*", "python-versions": "*", @@ -1163,7 +1104,6 @@ def test_run_update_with_locked_extras( { "name": "A", "version": "1.0", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1173,7 +1113,6 @@ def test_run_update_with_locked_extras( { "name": "B", "version": "1.0", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1182,7 +1121,6 @@ def test_run_update_with_locked_extras( { "name": "C", "version": "1.1", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1283,7 +1221,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock( { "name": "A", "version": "1.0", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1298,7 +1235,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock( { "name": "B", "version": "1.0", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1309,7 +1245,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock( { "name": "B", "version": "2.0", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1320,7 +1255,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock( { "name": "C", "version": "1.2", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1329,7 +1263,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock( { "name": "C", "version": "1.5", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1398,7 +1331,6 @@ def test_run_update_uninstalls_after_removal_transient_dependency( { "name": "A", "version": "1.0", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1408,7 +1340,6 @@ def test_run_update_uninstalls_after_removal_transient_dependency( { "name": "B", "version": "1.0", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1464,7 +1395,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock_upda { "name": "A", "version": "1.0", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1479,7 +1409,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock_upda { "name": "B", "version": "1.0", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1490,7 +1419,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock_upda { "name": "B", "version": "2.0", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1501,7 +1429,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock_upda { "name": "C", "version": "1.2", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1510,7 +1437,6 @@ def test_run_install_duplicate_dependencies_different_constraints_with_lock_upda { "name": "C", "version": "1.5", - "category": "dev", "optional": False, "platform": "*", "python-versions": "*", @@ -1763,7 +1689,6 @@ def test_update_multiple_times_with_split_dependencies_is_idempotent( { "name": "A", "version": "1.0", - "category": "main", "optional": False, "platform": "*", "python-versions": "*", @@ -1773,7 +1698,6 @@ def test_update_multiple_times_with_split_dependencies_is_idempotent( { "name": "B", "version": "1.0.1", - "category": "main", "optional": False, "platform": "*", "python-versions": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", diff --git a/tests/packages/test_locker.py b/tests/packages/test_locker.py index 80b689b1570..e07f978dbe6 100644 --- a/tests/packages/test_locker.py +++ b/tests/packages/test_locker.py @@ -101,7 +101,6 @@ def test_lock_file_data_is_ordered(locker: Locker, root: ProjectPackage) -> None name = "A" version = "1.0.0" description = "" -category = "main" optional = false python-versions = "*" files = [ @@ -116,7 +115,6 @@ def test_lock_file_data_is_ordered(locker: Locker, root: ProjectPackage) -> None name = "A" version = "2.0.0" description = "" -category = "main" optional = false python-versions = "*" files = [ @@ -127,7 +125,6 @@ def test_lock_file_data_is_ordered(locker: Locker, root: ProjectPackage) -> None name = "B" version = "1.2" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -136,7 +133,6 @@ def test_lock_file_data_is_ordered(locker: Locker, root: ProjectPackage) -> None name = "git-package" version = "1.2.3" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -152,7 +148,6 @@ def test_lock_file_data_is_ordered(locker: Locker, root: ProjectPackage) -> None name = "git-package-subdir" version = "1.2.3" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -169,7 +164,6 @@ def test_lock_file_data_is_ordered(locker: Locker, root: ProjectPackage) -> None name = "url-package" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -182,7 +176,6 @@ def test_lock_file_data_is_ordered(locker: Locker, root: ProjectPackage) -> None name = "url-package" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -208,7 +201,6 @@ def test_locker_properly_loads_extras(locker: Locker) -> None: name = "cachecontrol" version = "0.12.5" description = "httplib2 caching for requests" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [] @@ -254,7 +246,6 @@ def test_locker_properly_loads_nested_extras(locker: Locker) -> None: name = "a" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -269,7 +260,6 @@ def test_locker_properly_loads_nested_extras(locker: Locker) -> None: name = "b" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -284,7 +274,6 @@ def test_locker_properly_loads_nested_extras(locker: Locker) -> None: name = "c" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -335,7 +324,6 @@ def test_locker_properly_loads_extras_legacy(locker: Locker) -> None: name = "a" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -350,7 +338,6 @@ def test_locker_properly_loads_extras_legacy(locker: Locker) -> None: name = "b" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -384,7 +371,6 @@ def test_locker_properly_loads_subdir(locker: Locker) -> None: name = "git-package-subdir" version = "1.2.3" description = "" -category = "main" optional = false python-versions = "*" develop = false @@ -427,7 +413,6 @@ def test_locker_properly_assigns_metadata_files(locker: Locker) -> None: name = "demo" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" develop = false @@ -436,7 +421,6 @@ def test_locker_properly_assigns_metadata_files(locker: Locker) -> None: name = "demo" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" develop = false @@ -451,7 +435,6 @@ def test_locker_properly_assigns_metadata_files(locker: Locker) -> None: name = "demo" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" develop = false @@ -464,7 +447,6 @@ def test_locker_properly_assigns_metadata_files(locker: Locker) -> None: name = "demo" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" develop = false @@ -477,7 +459,6 @@ def test_locker_properly_assigns_metadata_files(locker: Locker) -> None: name = "demo" version = "1.0" description = "" -category = "main" optional = false python-versions = "*" develop = false @@ -548,7 +529,6 @@ def test_lock_packages_with_null_description( name = "A" version = "1.0.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -582,7 +562,6 @@ def test_lock_file_should_not_have_mixed_types( name = "A" version = "1.0.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -618,7 +597,6 @@ def test_reading_lock_file_should_raise_an_error_on_invalid_data( name = "A" version = "1.0.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -667,7 +645,6 @@ def test_locking_legacy_repository_package_should_include_source_section( name = "A" version = "1.0.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -791,7 +768,6 @@ def test_extras_dependencies_are_ordered(locker: Locker, root: ProjectPackage) - name = "A" version = "1.0.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -899,7 +875,6 @@ def test_locker_dumps_dependency_information_correctly( name = "A" version = "1.0.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -946,7 +921,6 @@ def test_locker_dumps_subdir(locker: Locker, root: ProjectPackage) -> None: name = "git-package-subdir" version = "1.2.3" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -996,7 +970,6 @@ def test_locker_dumps_dependency_extras_in_correct_order( name = "A" version = "1.0.0" description = "" -category = "main" optional = false python-versions = "*" files = [] @@ -1024,7 +997,6 @@ def test_locked_repository_uses_root_dir_of_package( name = "lib-a" version = "0.1.0" description = "" -category = "main" optional = false python-versions = "^2.7.9" develop = true @@ -1165,7 +1137,6 @@ def test_lock_file_resolves_file_url_symlinks(root: ProjectPackage) -> None: name = "local-package" version = "1.2.3" description = "" -category = "main" optional = false python-versions = "*" files = [] diff --git a/tests/puzzle/test_solver.py b/tests/puzzle/test_solver.py index 0018da79da5..6cdbd7d2d48 100644 --- a/tests/puzzle/test_solver.py +++ b/tests/puzzle/test_solver.py @@ -360,10 +360,6 @@ def test_solver_sets_groups(solver: Solver, repo: Repository, package: ProjectPa ], ) - assert ops[0].package.category == "dev" - assert ops[2].package.category == "dev" - assert ops[1].package.category == "main" - def test_solver_respects_root_package_python_versions( solver: Solver, repo: Repository, package: ProjectPackage @@ -1095,16 +1091,6 @@ def test_solver_with_dependency_in_both_main_and_dev_dependencies( ], ) - d = ops[0].package - b = ops[1].package - c = ops[2].package - a = ops[3].package - - assert d.category == "dev" - assert b.category == "main" - assert c.category == "dev" - assert a.category == "main" - def test_solver_with_dependency_in_both_main_and_dev_dependencies_with_one_more_dependent( # noqa: E501 solver: Solver, repo: Repository, package: ProjectPackage @@ -1153,18 +1139,6 @@ def test_solver_with_dependency_in_both_main_and_dev_dependencies_with_one_more_ ], ) - b = ops[0].package - d = ops[1].package - a = ops[2].package - c = ops[3].package - e = ops[4].package - - assert b.category == "main" - assert d.category == "dev" - assert a.category == "main" - assert c.category == "dev" - assert e.category == "main" - def test_solver_with_dependency_and_prerelease_sub_dependencies( solver: Solver, repo: Repository, package: ProjectPackage @@ -1222,8 +1196,6 @@ def test_solver_circular_dependency( ], ) - assert ops[0].package.category == "main" - def test_solver_circular_dependency_chain( solver: Solver, repo: Repository, package: ProjectPackage @@ -1259,8 +1231,6 @@ def test_solver_circular_dependency_chain( ], ) - assert ops[0].package.category == "main" - def test_solver_dense_dependencies( solver: Solver, repo: Repository, package: ProjectPackage