Skip to content

Commit 815304d

Browse files
committed
chore(common): add support for projects with src folder
1 parent dd2bcfe commit 815304d

10 files changed

Lines changed: 450 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "my-app"
2+
name = "my-app-1"
33
version = "0.1.0"
44
description = "Add your description here"
55
readme = "README.md"
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/my-app-2/.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

test/my-app-2/README.md

Whitespace-only changes.

test/my-app-2/pyproject.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[project]
2+
name = "my-app-2"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = ">=3.13"
7+
dependencies = [
8+
"fastapi>=0.135.3",
9+
"uvicorn[standard]>=0.44.0",
10+
]
11+
12+
[project.scripts]
13+
start = "server.main:start"
14+
15+
[build-system]
16+
requires = ["uv_build>=0.11.5,<0.12.0"]
17+
build-backend = "uv_build"
18+
19+
[tool.uv.build-backend]
20+
module-name = "server"

test/my-app-2/src/server/__init__.py

Whitespace-only changes.

test/my-app-2/src/server/main.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from fastapi import FastAPI
2+
import uvicorn
3+
4+
app = FastAPI()
5+
6+
7+
@app.get("/")
8+
def hello_world():
9+
return {"message": "Hello, World!"}
10+
11+
12+
def start():
13+
uvicorn.run("server.main:app", host="0.0.0.0", port=8000, reload=True)

test/my-app-2/uv.lock

Lines changed: 414 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)