Skip to content

tdd theme doesn't work with pdm #169

@ljnsn

Description

@ljnsn

Describe the bug
It seems that the tdd theme seup is broken with pdm.

To Reproduce
Steps to reproduce the behavior:

mkdir foopdm && cd foopdm
pdm init -n --backend pdm-backend minimal
# add `pdm-polylith-workspace` hook
touch README.md
pdm add -d polylith-cli
pdm run poly create workspace --name poly
pdm run poly create component --name foo
pdm run poly sync
pdm install
pdm run python -c "from poly import foo"

Results in:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'poly'

Expected behavior
The same behavior as poetry:

mkdir foopoe && cd foopoe
poetry init
poetry poly create workspace --name poly
poetry poly create component --name foo
poetry poly sync
poetry install
poetry run python -c "from poly import foo"  # no error

Desktop (please complete the following information):

  • OS: linux
  • Python version: 3.12
  • Poetry version: 1.7.1
  • Pdm version: 2.12.3

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions