fakecloud 0.44.0__tar.gz → 0.44.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fakecloud
3
- Version: 0.44.0
3
+ Version: 0.44.2
4
4
  Summary: Python SDK for fakecloud — local AWS cloud emulator
5
5
  License-Expression: AGPL-3.0-or-later
6
6
  License-File: LICENSE
@@ -11,7 +11,7 @@ Requires-Dist: boto3>=1.28; extra == 'dev'
11
11
  Requires-Dist: mypy>=1.10; extra == 'dev'
12
12
  Requires-Dist: pytest-asyncio>=0.21; extra == 'dev'
13
13
  Requires-Dist: pytest>=7; extra == 'dev'
14
- Requires-Dist: ruff>=0.4; extra == 'dev'
14
+ Requires-Dist: ruff<0.17,>=0.4; extra == 'dev'
15
15
  Description-Content-Type: text/markdown
16
16
 
17
17
  # fakecloud
@@ -34,6 +34,7 @@ pip install fakecloud
34
34
  import asyncio
35
35
  from fakecloud import FakeCloud
36
36
 
37
+
37
38
  async def main():
38
39
  async with FakeCloud("http://localhost:4566") as fc:
39
40
  # Check server health
@@ -58,6 +59,7 @@ async def main():
58
59
  # Reset all state between tests
59
60
  await fc.reset()
60
61
 
62
+
61
63
  asyncio.run(main())
62
64
  ```
63
65
 
@@ -405,7 +407,7 @@ def test_classifier_branches_on_spam_vs_ham():
405
407
  ],
406
408
  )
407
409
 
408
- classify("hello friend") # user code that calls Bedrock
410
+ classify("hello friend") # user code that calls Bedrock
409
411
  classify("buy now cheap pills")
410
412
 
411
413
  invocations = fc.bedrock.get_invocations().invocations
@@ -452,6 +454,7 @@ except FakeCloudError as e:
452
454
  import pytest
453
455
  from fakecloud import FakeCloudSync
454
456
 
457
+
455
458
  @pytest.fixture(autouse=True)
456
459
  def reset_fakecloud():
457
460
  fc = FakeCloudSync()
@@ -459,6 +462,7 @@ def reset_fakecloud():
459
462
  yield fc
460
463
  fc.close()
461
464
 
465
+
462
466
  def test_email_sent(reset_fakecloud):
463
467
  # ... your code that sends an email via SES ...
464
468
  emails = reset_fakecloud.ses.get_emails()
@@ -18,6 +18,7 @@ pip install fakecloud
18
18
  import asyncio
19
19
  from fakecloud import FakeCloud
20
20
 
21
+
21
22
  async def main():
22
23
  async with FakeCloud("http://localhost:4566") as fc:
23
24
  # Check server health
@@ -42,6 +43,7 @@ async def main():
42
43
  # Reset all state between tests
43
44
  await fc.reset()
44
45
 
46
+
45
47
  asyncio.run(main())
46
48
  ```
47
49
 
@@ -389,7 +391,7 @@ def test_classifier_branches_on_spam_vs_ham():
389
391
  ],
390
392
  )
391
393
 
392
- classify("hello friend") # user code that calls Bedrock
394
+ classify("hello friend") # user code that calls Bedrock
393
395
  classify("buy now cheap pills")
394
396
 
395
397
  invocations = fc.bedrock.get_invocations().invocations
@@ -436,6 +438,7 @@ except FakeCloudError as e:
436
438
  import pytest
437
439
  from fakecloud import FakeCloudSync
438
440
 
441
+
439
442
  @pytest.fixture(autouse=True)
440
443
  def reset_fakecloud():
441
444
  fc = FakeCloudSync()
@@ -443,6 +446,7 @@ def reset_fakecloud():
443
446
  yield fc
444
447
  fc.close()
445
448
 
449
+
446
450
  def test_email_sent(reset_fakecloud):
447
451
  # ... your code that sends an email via SES ...
448
452
  emails = reset_fakecloud.ses.get_emails()
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "fakecloud"
7
- version = "0.44.0"
7
+ version = "0.44.2"
8
8
  description = "Python SDK for fakecloud — local AWS cloud emulator"
9
9
  readme = "README.md"
10
10
  license = "AGPL-3.0-or-later"
@@ -12,7 +12,7 @@ requires-python = ">=3.9"
12
12
  dependencies = ["httpx>=0.24"]
13
13
 
14
14
  [project.optional-dependencies]
15
- dev = ["pytest>=7", "pytest-asyncio>=0.21", "boto3>=1.28", "ruff>=0.4", "mypy>=1.10"]
15
+ dev = ["pytest>=7", "pytest-asyncio>=0.21", "boto3>=1.28", "ruff>=0.4,<0.17", "mypy>=1.10"]
16
16
 
17
17
  [tool.hatch.build.targets.wheel]
18
18
  packages = ["src/fakecloud"]
File without changes
File without changes
File without changes