Order of locked package markers is unstable.
See original GitHub issue-
I am on the latest Poetry version.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option). -
OS version and name: macOS
-
Poetry version: 1.0.0b1
-
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/charettes/99485f7aeb5f440129f0391c35d38804
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 = "*"
Issue Analytics
- State:
- Created 4 years ago
- Reactions:13
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Unstable Features - The Cargo Book
The Cargo.lock file is always included when a package is published if the package contains a binary target. cargo install requires the --locked...
Read more >Nixpkgs 23.05 manual - NixOS
This manual primarily describes how to write packages for the Nix ... Both nixos-unstable and nixpkgs follow the master branch of the ...
Read more >apt.conf(5) — apt — Debian unstable
Defaults to on, which will cause APT to install essential and important packages as soon as possible in an install/upgrade operation, in order...
Read more >Molecular and Computational Methods for the Detection of ...
The other tumors are classified as MSS (microsatellite stable) or MSI-L (MSI-low) if no markers or only one marker is unstable (or <30–40% ......
Read more >Package Markers (Dozen) - PJSIGNS.com
PLEASE NOTE: THESE MARKERS ARE MADE FROM A STURDY, YET FLEXIBLE PLASTIC MATERIAL (POLYETHYLENE) THAT WILL NOT CHIP, CRACK, OR BREAK. GUARANTEED! THOUSANDS...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is still a legitimate issue that I believe should be addressed. No one else commented on it yet but I assume from the 👍 that it’s affecting a few other users as well.
This topic has improved a lot since this issue was open. I guess it should be solved.
Feel free to leave a comment if you disagree.