Skip to content

Commit 5830a19

Browse files
feanilclaude
andcommitted
refactor: move package source to src/ layout
Moves sample_plugin/ into src/ to adopt the standard src-layout, which prevents accidental imports from the source tree during tests and fixes editable-install compatibility with mypy and other tools that rely on proper package discovery. - backend/sample_plugin/ moved to backend/src/sample_plugin/ - backend/pyproject.toml: add `where = ["src"]` to [tool.setuptools.packages.find] - backend/MANIFEST.in: update recursive-include path, remove stale requirements/ lines - backend/tox.ini: update quality tool invocations to use src/sample_plugin path Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0884981 commit 5830a19

18 files changed

Lines changed: 6 additions & 7 deletions

File tree

backend/MANIFEST.in

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
include LICENSE.txt
22
include README.md
3-
include requirements/base.in
4-
include requirements/constraints.txt
5-
recursive-include sample_plugin *.html *.png *.gif *.js *.css *.jpg *.jpeg *.svg
3+
recursive-include src/sample_plugin *.html *.png *.gif *.js *.css *.jpg *.jpeg *.svg

backend/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ dev = [
9595
readme = {file = ["README.md"], content-type = "text/markdown" }
9696

9797
[tool.setuptools.packages.find]
98+
where = ["src"]
9899
include = ["sample_plugin*"]
99100
exclude = ["sample_plugin.tests*"]
100101

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)