Skip to content

🔖 bump version 0.6.0 -> 0.6.1 #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/

## [Unreleased]

## [0.6.1]

### Fixed

- Fixed excessive memory usage in `AsyncWebhookView` and `SyncWebhookView` caused by creating a new `GitHubRouter` instance on each request.
Expand Down Expand Up @@ -100,11 +102,12 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/

- Josh Thomas <[email protected]> (maintainer)

[unreleased]: https://github.com/joshuadavidthomas/django-github-app/compare/v0.6.0...HEAD
[unreleased]: https://github.com/joshuadavidthomas/django-github-app/compare/v0.6.1...HEAD
[0.1.0]: https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.1.0
[0.2.0]: https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.2.0
[0.2.1]: https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.2.1
[0.3.0]: https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.3.0
[0.4.0]: https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.4.0
[0.5.0]: https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.5.0
[0.6.0]: https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.6.0
[0.6.1]: https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.6.1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Source = "https://github.com/joshuadavidthomas/django-github-app"
[tool.bumpver]
commit = true
commit_message = ":bookmark: bump version {old_version} -> {new_version}"
current_version = "0.6.0"
current_version = "0.6.1"
push = false # set to false for CI
tag = false
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
Expand Down
2 changes: 1 addition & 1 deletion src/django_github_app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from __future__ import annotations

__version__ = "0.6.0"
__version__ = "0.6.1"
21 changes: 15 additions & 6 deletions tests/test_routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,26 +77,35 @@ def test_duplicate_routers_without_module_level_router(self):

assert len(router_ids) == 5

@pytest.mark.limit_memory("2.5MB")
@pytest.mark.limit_memory("100KB")
@pytest.mark.xdist_group(group="memory_tests")
def test_router_memory_stress_test(self):
view_count = 50000
view_count = 10000
views = []

for _ in range(view_count):
view = View()
views.append(view)

view1_router = views[0].router

assert len(views) == view_count
assert all(view.router is views[0].router for view in views)
assert all(view.router is view1_router for view in views)

@pytest.mark.limit_memory("4MB")
@pytest.mark.limit_memory("1.5MB")
@pytest.mark.xdist_group(group="memory_tests")
@pytest.mark.skip(
"does not reliably allocate memory when run with other memory test"
)
def test_router_memory_stress_test_legacy(self):
view_count = 50000
view_count = 10000
views = []

for _ in range(view_count):
view = LegacyView()
views.append(view)

view1_router = views[0].router

assert len(views) == view_count
assert not all(view.router is views[0].router for view in views)
assert not all(view.router is view1_router for view in views)
2 changes: 1 addition & 1 deletion tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@


def test_version():
assert __version__ == "0.6.0"
assert __version__ == "0.6.1"