question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

poetry lock/export wrong with sys_platform (works fine on ver 1.0.10)

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: Ubuntu 20.04
  • Poetry version: 1.1.2 & 1.0.10
  • pyproject.toml
[tool.poetry]
name = "testpoetry-pywin32"
version = "0.1.0"
description = ""
authors = []

[tool.poetry.dependencies]
python = "~3.8"
azureml-widgets = "1.15.0"
azureml-dataset-runtime = "^1.15.0"

[tool.poetry.dev-dependencies]

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

Issue

run poetry lock then poetry export --without-hashes

version 1.0.10

pywin32==228; sys_platform == "win32" and python_version >= "3.6" or platform_system == "Windows" or sys_platform == "win32"

version 1.1.0 & above

pywin32==228
pywin32==228; platform_system == "Windows"
pywin32==228; sys_platform == "win32"

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
kichikcommented, Feb 5, 2021

I am still able to reproduce this issue with Poetry 1.1.4. I used the following pyproject.toml on both Windows and in the python:3.7 Docker image. After locking I can see the right data in poetry.lock. But when exporting all of a sudden it removes the platform limitations.

[tool.poetry]
name = "testpoetry-pywin32"
version = "0.1.0"
description = ""
authors = []

[tool.poetry.dependencies]
python = "~3.7"
azure-identity = "^1.5.0"

[tool.poetry.dev-dependencies]

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

And this is the export result:

$ poetry export | grep pywin32
pywin32==300 \

If I revert to Poetry 1.1.3, it works fine.

1reaction
radiophysicistcommented, Aug 18, 2021

The same on version 1.1.7 in docker (but not reproduced on bare linux host)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Poetry Foundation
Poems, readings, poetry news and the entire 100-year archive of POETRY magazine.
Read more >
Song of Myself (1892 version) by Walt Whitman
I celebrate myself, and sing myself,. And what I assume you shall assume,. For every atom belonging to me as good belongs to...
Read more >
Browse Poems | Poetry Foundation
Explore Poems · Topics · Forms · School/Period · Poet's Region.
Read more >
The Waste Land by T. S. Eliot - Poetry Foundation
April is the cruellest month, breeding. Lilacs out of the dead land, mixing. Memory and desire, stirring. Dull roots with spring rain. Winter...
Read more >
Emily Dickinson | Poetry Foundation
Like the Concord Transcendentalists whose works she knew well, ... Austin Dickinson gradually took over his father's role: He too became the citizen...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found