add git ignore document

Commit 1ee6bc4 · patx · 2025-07-07T15:38:08-04:00

Changeset
1ee6bc4d426b99b8b60ce66b679705d727c66003
Parents
c38bd89bc3495ecb95e4331bf646c3fc4b30980d

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ddf19ea
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,15 @@
+*.pyc
+__pycache__/
+*.pyo
+*.pyd
+.Python
+env/
+venv/
+ENV/
+env.bak/
+venv.bak/
+*.egg-info/
+dist/
+build/
+*.egg
+.pypirc
diff --git a/docs/release_notes.md b/docs/release_notes.md
index 77a2996..9cf30f1 100644
--- a/docs/release_notes.md
+++ b/docs/release_notes.md
@@ -1,6 +1,7 @@
 [![Logo](https://patx.github.io/micropie/logo.png)](https://patx.github.io/micropie)
 
 ## Releases Notes
+- **[0.17](https://github.com/patx/micropie/releases/tag/v0.17)** - Change API of lifespan events to match API of middles, eg. `app.startup_handlers.append(handler)`
 - **[0.16](https://github.com/patx/micropie/releases/tag/v0.16)** - Add support for lifespan events using `on_startup` and `on_shutdown`
 - **[0.15](https://github.com/patx/micropie/releases/tag/v0.15)** - Minor bug fixes in the optional dependencies if statements
 - **[0.14](https://github.com/patx/micropie/releases/tag/v0.14)** - Change import to `micropie` instead of `MicroPie` **BREAKING CHANGE**
diff --git a/examples/socketio/webtrc/__pycache__/app.cpython-312.pyc b/examples/socketio/webtrc/__pycache__/app.cpython-312.pyc
deleted file mode 100644
index 90a7439..0000000
Binary files a/examples/socketio/webtrc/__pycache__/app.cpython-312.pyc and /dev/null differ
diff --git a/micropie.py b/micropie.py
index 291b890..6f7387f 100644
--- a/micropie.py
+++ b/micropie.py
@@ -402,7 +402,6 @@ class App:
                         self._started = True
                     await send({"type": "lifespan.startup.complete"})
                 except Exception as e:
-                    print(f"Startup error: {e}")
                     await send({"type": "lifespan.startup.failed", "message": str(e)})
                     return
             elif message["type"] == "lifespan.shutdown":
@@ -413,7 +412,6 @@ class App:
                         self._started = False
                     await send({"type": "lifespan.shutdown.complete"})
                 except Exception as e:
-                    print(f"Shutdown error: {e}")
                     await send({"type": "lifespan.shutdown.failed", "message": str(e)})
                 return
 
diff --git a/pyproject.toml b/pyproject.toml
index f428628..58e2ff7 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
 
 [project]
 name = "micropie"
-version = "0.16"
+version = "0.17"
 description = "An ultra micro ASGI web framework"
 keywords = ["micropie", "asgi", "microframework", "http"]
 readme = "docs/README.md"