Skip to content

Commit fc7adf2

Browse files
authored
upgrade localstripe to 1.15.6 and release stripe extensions 0.2.0 (#87)
1 parent 9ef83b6 commit fc7adf2

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ You can install the respective extension by calling `localstack install <Install
7373
| [httpbin](https://github.com/localstack/localstack-extensions/tree/main/httpbin) | localstack-extension-httpbin | 0.1.0 | Stable |
7474
| [MailHog](https://github.com/localstack/localstack-extensions/tree/main/mailhog) | localstack-extension-mailhog | 0.1.0 | Stable |
7575
| [Miniflare](https://github.com/localstack/localstack-extensions/tree/main/miniflare) | localstack-extension-miniflare | 0.1.0 | Experimental |
76-
| [Stripe](https://github.com/localstack/localstack-extensions/tree/main/stripe) | localstack-extension-stripe | 0.1.0 | Stable |
76+
| [Stripe](https://github.com/localstack/localstack-extensions/tree/main/stripe) | localstack-extension-stripe | 0.2.0 | Stable |
7777
| [Terraform Init](https://github.com/localstack/localstack-extensions/tree/main/terraform-init) | localstack-extension-terraform-init | 0.2.0 | Experimental |
7878

7979

stripe/localstack_stripe/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.0"
1+
__version__ = "0.2.0"

stripe/localstack_stripe/extension.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def update_gateway_routes(self, router: http.Router[http.RouteHandler]):
2525
# a ProxyHandler forwards all incoming requests to the backend URL
2626
endpoint = http.ProxyHandler(self.backend_url)
2727

28-
# add path routes for localhost:4566/stripe
28+
# add path routes for localhost:4566/stripe (backwards compatibility)
2929
router.add(
3030
"/stripe",
3131
endpoint=endpoint,
@@ -34,6 +34,15 @@ def update_gateway_routes(self, router: http.Router[http.RouteHandler]):
3434
"/stripe/<path:path>",
3535
endpoint=endpoint,
3636
)
37+
# modern mounts
38+
router.add(
39+
"/_extension/stripe",
40+
endpoint=endpoint,
41+
)
42+
router.add(
43+
"/_extension/stripe/<path:path>",
44+
endpoint=endpoint,
45+
)
3746
# add alternative host routes for stripe.localhost.localstack.cloud:4566
3847
router.add(
3948
"/",

stripe/setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ setup_requires =
2727
wheel
2828
plux>=1.3
2929
install_requires =
30-
stevedore>=3.4
3130
plux>=1.3
32-
localstack-localstripe>=1.13.8
31+
localstack-localstripe>=1.15.6
3332
test_requires =
3433
pytest>=6.2.4
3534

0 commit comments

Comments
 (0)