We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given config like this, which is meant to install a dependency on macOS and Windows, but not Linux:
[project] name = "testing" classifiers = [ "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", ] dependencies = [ 'pyperclip; platform_system == "Darwin"', 'pyperclip; platform_system == "Windows"', ]
pyproject-fmt 2.1.3 deletes the first dependency:
❯ pyproject-fmt pyproject.toml --- pyproject.toml +++ pyproject.toml @@ -9,6 +9,5 @@ "Programming Language :: Python :: 3.12", ] dependencies = [ - 'pyperclip; platform_system == "Darwin"', - 'pyperclip; platform_system == "Windows"', + "pyperclip; platform_system=='Windows'", ]
If I switch them so Windows is first instead, it deletes the Windows one.
I guess it thinks they're duplicates, without considering the platform_system?
platform_system
The text was updated successfully, but these errors were encountered:
PR welcome 🤗
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Given config like this, which is meant to install a dependency on macOS and Windows, but not Linux:
pyproject-fmt 2.1.3 deletes the first dependency:
If I switch them so Windows is first instead, it deletes the Windows one.
I guess it thinks they're duplicates, without considering the
platform_system
?The text was updated successfully, but these errors were encountered: