Skip to content
New issue

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

PDM - Build fails with python-jwt and paho-mqtt dependencies (and possibly more) #785

Open
JonBoyleCoding opened this issue Nov 7, 2023 · 0 comments

Comments

@JonBoyleCoding
Copy link

JonBoyleCoding commented Nov 7, 2023

I've had a few dependencies that fail to build with the WIP pdm module at the same point.

  • python-jwt
  • paho-mqtt

I've used the example project in this repo, and just done pdm add with the relevant package and when building the package fails.

The full trace: https://gist.github.com/JonBoyleCoding/461e3a2fb3fa9ba59e50003a6bd1dca9

error: A definition for option `pdm.sourceSelector.<function body>' is not of type `string'. Definition values:
       - In `/nix/store/5vgzjcl7wrjpi942cffsr3q6zj5nwszd-source/modules/dream2nix/WIP-python-pdm': null
(use '--show-trace' to show detailed location information)

I thought at first it was projects with hypens, but the in-place package seems to work fine so that's not it.

I'm on dream2nix 24e81d5. Here an example pyproject.toml that seems to fail

[project]
name = "my-project"
version = "0.1.0"
description = ""
dependencies = [
    "requests>=2.31.0",
    "python-jwt>=4.0.0",
]
requires-python = ">=3.10"
readme = "README.md"
license = {text = "MIT"}

[project.scripts]
my-script = "my_project:main"

[project.optional-dependencies]
dev = [
    "pi>=0.1.2",
]

[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
@JonBoyleCoding JonBoyleCoding changed the title PDM - Build fails with some dependencies PDM - Build fails with python-jwt and paho-mqtt dependencies (and possibly more) Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant