Skip to content

Commit e3ecd99

Browse files
🔖 bump version 0.6.0 -> 0.6.1 (#78)
1 parent 00ba5b3 commit e3ecd99

File tree

5 files changed

+22
-10
lines changed

5 files changed

+22
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/
1818

1919
## [Unreleased]
2020

21+
## [0.6.1]
22+
2123
### Fixed
2224

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

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

103-
[unreleased]: https://github.com/joshuadavidthomas/django-github-app/compare/v0.6.0...HEAD
105+
[unreleased]: https://github.com/joshuadavidthomas/django-github-app/compare/v0.6.1...HEAD
104106
[0.1.0]: https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.1.0
105107
[0.2.0]: https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.2.0
106108
[0.2.1]: https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.2.1
107109
[0.3.0]: https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.3.0
108110
[0.4.0]: https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.4.0
109111
[0.5.0]: https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.5.0
110112
[0.6.0]: https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.6.0
113+
[0.6.1]: https://github.com/joshuadavidthomas/django-github-app/releases/tag/v0.6.1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Source = "https://github.com/joshuadavidthomas/django-github-app"
102102
[tool.bumpver]
103103
commit = true
104104
commit_message = ":bookmark: bump version {old_version} -> {new_version}"
105-
current_version = "0.6.0"
105+
current_version = "0.6.1"
106106
push = false # set to false for CI
107107
tag = false
108108
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"

src/django_github_app/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from __future__ import annotations
22

3-
__version__ = "0.6.0"
3+
__version__ = "0.6.1"

tests/test_routing.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,26 +77,35 @@ def test_duplicate_routers_without_module_level_router(self):
7777

7878
assert len(router_ids) == 5
7979

80-
@pytest.mark.limit_memory("2.5MB")
80+
@pytest.mark.limit_memory("100KB")
81+
@pytest.mark.xdist_group(group="memory_tests")
8182
def test_router_memory_stress_test(self):
82-
view_count = 50000
83+
view_count = 10000
8384
views = []
8485

8586
for _ in range(view_count):
8687
view = View()
8788
views.append(view)
8889

90+
view1_router = views[0].router
91+
8992
assert len(views) == view_count
90-
assert all(view.router is views[0].router for view in views)
93+
assert all(view.router is view1_router for view in views)
9194

92-
@pytest.mark.limit_memory("4MB")
95+
@pytest.mark.limit_memory("1.5MB")
96+
@pytest.mark.xdist_group(group="memory_tests")
97+
@pytest.mark.skip(
98+
"does not reliably allocate memory when run with other memory test"
99+
)
93100
def test_router_memory_stress_test_legacy(self):
94-
view_count = 50000
101+
view_count = 10000
95102
views = []
96103

97104
for _ in range(view_count):
98105
view = LegacyView()
99106
views.append(view)
100107

108+
view1_router = views[0].router
109+
101110
assert len(views) == view_count
102-
assert not all(view.router is views[0].router for view in views)
111+
assert not all(view.router is view1_router for view in views)

tests/test_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55

66
def test_version():
7-
assert __version__ == "0.6.0"
7+
assert __version__ == "0.6.1"

0 commit comments

Comments
 (0)