Skip to content

Order of locked package markers is unstable. #1457

@charettes

Description

@charettes

Issue

When performing a poetry update package markers in poetry.lock get re-ordered in an unstable way. For example, running poetry update on the provided pyproject.toml keeps swapping these markers around in the poetry.lock file.

diff --git a/poetry.lock b/poetry.lock
index 204943b..982ec97 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -28,7 +28,7 @@ version = "0.3.3"
 [[package]]
 category = "dev"
 description = "Disable App Nap on OS X 10.9"
-marker = "python_version >= \"3.6\" and python_version < \"4.0\" and sys_platform == \"darwin\" or python_version >= \"3.4\" and sys_platform == \"darwin\" or python_version >= \"2.7\" and python_version < \"3.0\" and sys_platform == \"darwin\" or python_version == \"2.7\" and sys_platform == \"darwin\""
+marker = "python_version >= \"3.4\" and sys_platform == \"darwin\" or python_version >= \"3.6\" and python_version < \"4.0\" and sys_platform == \"darwin\" or python_version == \"2.7\" and sys_platform == \"darwin\" or python_version >= \"2.7\" and python_version < \"3.0\" and sys_platform == \"darwin\""
 name = "appnope"
 optional = false
 python-versions = "*"
@@ -1080,7 +1080,7 @@ version = "0.1.9"
 [[package]]
 category = "main"
 description = "Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4"
-marker = "python_version < \"3.5\" or python_version == \"2.7\" and python_version < \"3.0\" or python_version >= \"2.7\" and python_version < \"3.0\""
+marker = "python_version < \"3.5\" or python_version >= \"2.7\" and python_version < \"3.0\" or python_version == \"2.7\" and python_version < \"3.0\""
 name = "enum34"
 optional = false
 python-versions = "*"
@@ -2094,7 +2094,7 @@ testing = ["docopt", "pytest (>=3.0.7)"]
 [[package]]
 category = "dev"
 description = "Object-oriented filesystem paths"
-marker = "python_version >= \"2.7\" and python_version < \"3.0\" and python_version in \"2.6 2.7 3.2 3.3\" or python_version >= \"2.7\" and python_version < \"3.0\" and (python_version == \"2.7\" or python_version == \"3.3\") or python_version == \"2.7\" or python_version == \"2.7\""
+marker = "python_version == \"2.7\" or python_version == \"2.7\" or python_version >= \"2.7\" and python_version < \"3.0\" and python_version in \"2.6 2.7 3.2 3.3\" or python_version >= \"2.7\" and python_version < \"3.0\" and (python_version == \"2.7\" or python_version == \"3.3\")"
 name = "pathlib2"
 optional = false
 python-versions = "*"
@@ -2139,7 +2139,7 @@ version = "*"
 [[package]]
 category = "dev"
 description = "Pexpect allows easy control of interactive console applications."
-marker = "python_version >= \"3.6\" and python_version < \"4.0\" and sys_platform != \"win32\" or python_version >= \"3.4\" and sys_platform != \"win32\" or python_version >= \"2.7\" and python_version < \"3.0\" and sys_platform != \"win32\" or python_version == \"2.7\" and sys_platform != \"win32\""
+marker = "python_version >= \"3.4\" and sys_platform != \"win32\" or python_version >= \"3.6\" and python_version < \"4.0\" and sys_platform != \"win32\" or python_version == \"2.7\" and sys_platform != \"win32\" or python_version >= \"2.7\" and python_version < \"3.0\" and sys_platform != \"win32\""
 name = "pexpect"
 optional = false
 python-versions = "*"
@@ -2253,7 +2253,7 @@ version = "2.7.7"
 [[package]]
 category = "dev"
 description = "Run a subprocess in a pseudo terminal"
-marker = "python_version >= \"3.6\" and python_version < \"4.0\" and sys_platform != \"win32\" or python_version >= \"3.4\" and sys_platform != \"win32\" or python_version >= \"2.7\" and python_version < \"3.0\" and sys_platform != \"win32\" or python_version == \"2.7\" and sys_platform != \"win32\""
+marker = "python_version >= \"3.4\" and sys_platform != \"win32\" or python_version >= \"3.6\" and python_version < \"4.0\" and sys_platform != \"win32\" or python_version == \"2.7\" and sys_platform != \"win32\" or python_version >= \"2.7\" and python_version < \"3.0\" and sys_platform != \"win32\""
 name = "ptyprocess"
 optional = false
 python-versions = "*"
@@ -3346,7 +3346,7 @@ version = "0.6.1"
 [[package]]
 category = "dev"
 description = "Enable Unicode input and display when running Python from Windows console."
-marker = "python_version >= \"2.7\" and python_version < \"3.0\" and sys_platform == \"win32\" or sys_platform == \"win32\" and python_version == \"2.7\""
+marker = "sys_platform == \"win32\" and python_version == \"2.7\" or python_version >= \"2.7\" and python_version < \"3.0\" and sys_platform == \"win32\""
 name = "win-unicode-console"
 optional = false
 python-versions = "*"

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions