Closed momartini closed 2 weeks ago
I can't reproduce with the following steps:
[project]
name = "test_pdm"
version = "0.1.0"
description = "Default template for PDM package"
authors = [
{name = "me", email = "me@example.com"},
]
dependencies = [
'tables; sys_platform!="darwin" or platform_machine!="arm64"',
'tables @ git+https://github.com/PyTables/PyTables.git@v3.9.0 ; sys_platform=="darwin" and platform_machine=="arm64"',
]
requires-python = ">=3.10"
readme = "README.md"
license = {text = "MIT"}
[tool.pdm]
distribution = false
pdm lock --platform linux \
&& pdm lock --platform windows --append \
&& pdm lock --platform macos_arm64 --append \
&& pdm lock --platform macos_x86_64 --append
pdm add tqdm --no-sync
I ran the experiment here and you're right, nothing weird happens. I need to find out is why it happens on my local machine.. But no bug! Thanks for responding.. Cheers!
@MhdMartini Can you close this then?
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
pyproject.toml
:Lock for multiple targets:
Add a dependency:
Actual behavior
Looking into
pdm.lock
, all packages (except for newly added ones) receive an incorrect marker:marker = "sys_platform != \"darwin\" or platform_machine != \"arm64\""
which they didn't have before thepdm add
command.Expected behavior
Locked packages to not receive new markers.
Environment Information