Skip to content

pyproject.toml: Install package in src/#3

Open
tomtseng wants to merge 1 commit intomainfrom
tomtseng/package-src
Open

pyproject.toml: Install package in src/#3
tomtseng wants to merge 1 commit intomainfrom
tomtseng/package-src

Conversation

@tomtseng
Copy link
Collaborator

@tomtseng tomtseng commented Jan 8, 2026

Changes

Bug:

-> uv run python
Python 3.12.12 (main, Dec 17 2025, 21:10:06) [Clang 21.1.4 ] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sample_project
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'sample_project'

The issue is that we need pyproject.toml to indicate that the package sample_project lives in src/.

Testing

The import works now

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

Successfully merging this pull request may close these issues.

1 participant