Skip to content

Commit b741870

Browse files
committed
Move modules into a package
This structure matches what is recommended in the documentation. https://backend.pdm-project.org/build_config/#the-src-layout This will also solve the problem of each folder inside src/ currently being installed as its own package and top level modules missing from the wheel.
1 parent 287072e commit b741870

242 files changed

Lines changed: 8 additions & 5 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,22 +90,20 @@ dependencies = [
9090

9191

9292
[tool.pyright]
93-
exclude = [
94-
]
95-
extraPaths = ["./src"]
93+
include = ["src", "tests"]
9694

9795
[tool.pdm]
9896
distribution = true
9997

10098
[tool.pdm.version]
10199
source = "file"
102-
path = "src/version.py"
100+
path = "src/lightspeed_stack/version.py"
103101

104102
[tool.behave]
105103
paths = ["tests/e2e/features"]
106104

107105
[project.scripts]
108-
lightspeed-stack = "lightspeed_stack:main"
106+
lightspeed-stack = "lightspeed_stack.cli:main"
109107

110108
[project.urls]
111109
Homepage = "https://github.com/lightspeed-core/lightspeed-stack"

src/lightspeed_stack/__main__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""Module entry point."""
2+
3+
from lightspeed_stack.cli import main
4+
5+
main()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)