Skip to content

Commit 03567d2

Browse files
authored
Merge pull request #25 from fastapi-startkit/realease
Realease
2 parents d54e73f + 7e09588 commit 03567d2

16 files changed

Lines changed: 588 additions & 202 deletions

File tree

application

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 266a6143defc0c17ef4c242feab280b5a503e762

bin/release.sh

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
# Exit on error
44
set -e
55

6-
echo "🚀 Starting release process..."
6+
BUMP_TYPE=${1:-patch}
7+
8+
echo "🚀 Starting release process with $BUMP_TYPE bump..."
79

810
PACKAGE_DIR="fastapi_startkit"
911

@@ -13,10 +15,17 @@ if [ -d "$PACKAGE_DIR" ]; then
1315
# Navigate to package directory
1416
cd "$PACKAGE_DIR"
1517

16-
# Build and Publish
17-
echo " Building and publishing..."
18+
# Bump version
19+
echo " Bumping version..."
20+
uv version --bump "$BUMP_TYPE"
21+
22+
# Build
23+
echo " Building..."
1824
uv build
19-
uv publish
25+
26+
# Publish via twine
27+
echo " Publishing..."
28+
uv run twine upload dist/* --verbose
2029

2130
# Return to root
2231
cd - > /dev/null

example/console-app/uv.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/fastapi-app/bootstrap/application.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from pathlib import Path
22

3-
from fastapi_startkit.application import Application
4-
from fastapi_startkit.logging.providers import LogProvider
5-
from fastapi_startkit.fastapi.providers.fastapi_provider import FastAPIProvider
3+
from fastapi_startkit import Application
4+
from fastapi_startkit.logging import LogProvider
5+
from providers.fastapi_provider import FastAPIProvider
66

77
app: Application = Application(
88
base_path=str(Path.cwd()), # This always gives path relative to the execution.

example/fastapi-app/providers/fastapi_provider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from fastapi_startkit.fastapi.providers import FastAPIProvider
1+
from fastapi_startkit.fastapi import FastAPIProvider as BaseFastapiProvider
22
from routes.api import public
33

4-
class FastAPIServiceProvider(FastAPIProvider):
4+
class FastAPIProvider(BaseFastapiProvider):
55
def boot(self) -> None:
66
super().boot()
77

example/fastapi-app/routes/api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
@public.get("/")
88
async def index():
99
Logger.info("Welcome to FastAPI StartKit!")
10+
Logger.info("Version: 1.0.0")
11+
Logger.info("Docs: /docs")
12+
Logger.log("debug", "Debugging the application.")
1013
return {
1114
"message": "Welcome to FastAPI StartKit!",
1215
"version": "1.0.0",

example/fastapi-app/uv.lock

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

example/inertia-app/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "vite-example"
2+
name = "inertia-example"
33
version = "0.1.0"
44
description = "Vite + FastAPI example using fastapi-startkit"
55
requires-python = ">=3.12"

example/onefile-app/main.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from pathlib import Path
2+
from fastapi_startkit import Application
3+
from fastapi_startkit.fastapi import FastAPIProvider
4+
5+
# Define providers
6+
providers = [
7+
FastAPIProvider
8+
]
9+
10+
# Initialize Application
11+
app: Application = Application(
12+
base_path=str(Path().cwd()),
13+
providers=providers
14+
)
15+
16+
17+
@app.get('/hello')
18+
async def hello():
19+
return {"message": "Hello from the Fastapi Starkit!"}
20+
21+
if __name__ == "__main__":
22+
app.handle_command()

fastapi_startkit/pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "fastapi-startkit"
3-
version = "0.1.3"
3+
version = "0.13.6"
44
description = "Fastapi Starter kit components"
55
authors = [
66
{name = "Bedram Tamang", email = "tmgbedu@gmail.com"}
@@ -46,11 +46,16 @@ dev = [
4646
"dumpdie>=1.5.0",
4747
"pytest>=9.0.3",
4848
"pytest-asyncio>=1.3.0",
49+
"twine>=6.2.0",
4950
]
5051

52+
5153
[tool.pytest.ini_options]
5254
asyncio_mode = "auto"
5355

5456
[build-system]
5557
requires = ["uv_build >= 0.10.10, <0.11.0"]
5658
build-backend = "uv_build"
59+
60+
[tool.uv]
61+
workspace = { members = ["application", "example/*"] }

0 commit comments

Comments
 (0)