taraqueue 0.6.2__tar.gz → 0.6.4__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.
Files changed (47) hide show
  1. {taraqueue-0.6.2 → taraqueue-0.6.4}/.github/actions/setup-uv-env/action.yml +3 -3
  2. {taraqueue-0.6.2 → taraqueue-0.6.4}/.github/workflows/publish.yml +2 -2
  3. {taraqueue-0.6.2 → taraqueue-0.6.4}/.github/workflows/test.yml +7 -7
  4. {taraqueue-0.6.2 → taraqueue-0.6.4}/CHANGES.rst +13 -0
  5. {taraqueue-0.6.2 → taraqueue-0.6.4}/CONTRIBUTING.rst +1 -1
  6. {taraqueue-0.6.2 → taraqueue-0.6.4}/PKG-INFO +4 -5
  7. {taraqueue-0.6.2 → taraqueue-0.6.4}/README.rst +1 -1
  8. taraqueue-0.6.4/compose.dev.yml +1 -0
  9. {taraqueue-0.6.2 → taraqueue-0.6.4}/compose.yml +1 -1
  10. {taraqueue-0.6.2 → taraqueue-0.6.4}/docs/taraqueue.testing.rst +0 -8
  11. {taraqueue-0.6.2 → taraqueue-0.6.4}/pyproject.toml +1 -2
  12. {taraqueue-0.6.2 → taraqueue-0.6.4}/taraqueue/testing/services.py +3 -26
  13. taraqueue-0.6.4/uv.lock +2791 -0
  14. taraqueue-0.6.2/taraqueue/testing/compose.py +0 -92
  15. taraqueue-0.6.2/tests/test_compose.py +0 -40
  16. taraqueue-0.6.2/uv.lock +0 -2329
  17. {taraqueue-0.6.2 → taraqueue-0.6.4}/.editorconfig +0 -0
  18. {taraqueue-0.6.2 → taraqueue-0.6.4}/.gitattributes +0 -0
  19. {taraqueue-0.6.2 → taraqueue-0.6.4}/.github/CODEOWNERS +0 -0
  20. {taraqueue-0.6.2 → taraqueue-0.6.4}/.github/renovate.json +0 -0
  21. {taraqueue-0.6.2 → taraqueue-0.6.4}/.github/workflows/renovate.yaml +0 -0
  22. {taraqueue-0.6.2 → taraqueue-0.6.4}/.gitignore +0 -0
  23. {taraqueue-0.6.2 → taraqueue-0.6.4}/.vscode/extensions.json +0 -0
  24. {taraqueue-0.6.2 → taraqueue-0.6.4}/.vscode/launch.json +0 -0
  25. {taraqueue-0.6.2 → taraqueue-0.6.4}/.vscode/settings.json +0 -0
  26. {taraqueue-0.6.2 → taraqueue-0.6.4}/LICENSE.rst +0 -0
  27. {taraqueue-0.6.2 → taraqueue-0.6.4}/Makefile +0 -0
  28. {taraqueue-0.6.2 → taraqueue-0.6.4}/STYLE_GUIDE.rst +0 -0
  29. {taraqueue-0.6.2 → taraqueue-0.6.4}/docs/changes.rst +0 -0
  30. {taraqueue-0.6.2 → taraqueue-0.6.4}/docs/conf.py +0 -0
  31. {taraqueue-0.6.2 → taraqueue-0.6.4}/docs/contributing.rst +0 -0
  32. {taraqueue-0.6.2 → taraqueue-0.6.4}/docs/index.rst +0 -0
  33. {taraqueue-0.6.2 → taraqueue-0.6.4}/docs/license.rst +0 -0
  34. {taraqueue-0.6.2 → taraqueue-0.6.4}/docs/modules.rst +0 -0
  35. {taraqueue-0.6.2 → taraqueue-0.6.4}/docs/style_guide.rst +0 -0
  36. {taraqueue-0.6.2 → taraqueue-0.6.4}/docs/taraqueue.rst +0 -0
  37. {taraqueue-0.6.2 → taraqueue-0.6.4}/taraqueue/__init__.py +0 -0
  38. {taraqueue-0.6.2 → taraqueue-0.6.4}/taraqueue/memory.py +0 -0
  39. {taraqueue-0.6.2 → taraqueue-0.6.4}/taraqueue/redis.py +0 -0
  40. {taraqueue-0.6.2 → taraqueue-0.6.4}/taraqueue/registry.py +0 -0
  41. {taraqueue-0.6.2 → taraqueue-0.6.4}/taraqueue/sqs.py +0 -0
  42. {taraqueue-0.6.2 → taraqueue-0.6.4}/taraqueue/testing/__init__.py +0 -0
  43. {taraqueue-0.6.2 → taraqueue-0.6.4}/taraqueue/testing/queue.py +0 -0
  44. {taraqueue-0.6.2 → taraqueue-0.6.4}/tests/test_queue.py +0 -0
  45. {taraqueue-0.6.2 → taraqueue-0.6.4}/tests/test_redis.py +0 -0
  46. {taraqueue-0.6.2 → taraqueue-0.6.4}/tests/test_registry.py +0 -0
  47. {taraqueue-0.6.2 → taraqueue-0.6.4}/tests/test_sqs.py +0 -0
@@ -5,7 +5,7 @@ inputs:
5
5
  python-version:
6
6
  required: false
7
7
  description: "Python version to use"
8
- default: "3.12"
8
+ default: "3.15"
9
9
  uv-version:
10
10
  required: false
11
11
  description: "uv version to use (empty = use required-version or latest)"
@@ -27,12 +27,12 @@ runs:
27
27
  using: "composite"
28
28
  steps:
29
29
  - name: Set up python
30
- uses: actions/setup-python@v6
30
+ uses: actions/setup-python@v7
31
31
  with:
32
32
  python-version: ${{ inputs.python-version }}
33
33
 
34
34
  - name: Install uv
35
- uses: astral-sh/setup-uv@v8.1.0
35
+ uses: astral-sh/setup-uv@v10.4.0
36
36
  with:
37
37
  version: ${{ inputs.uv-version }}
38
38
  python-version: ${{ inputs.python-version }}
@@ -13,7 +13,7 @@ jobs:
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
15
  - name: Check out
16
- uses: actions/checkout@v6
16
+ uses: actions/checkout@v7
17
17
  with:
18
18
  fetch-depth: 0
19
19
  fetch-tags: true
@@ -36,7 +36,7 @@ jobs:
36
36
  runs-on: ubuntu-latest
37
37
  steps:
38
38
  - name: Check out
39
- uses: actions/checkout@v6
39
+ uses: actions/checkout@v7
40
40
 
41
41
  - name: Set up the environment
42
42
  uses: ./.github/actions/setup-uv-env
@@ -11,12 +11,12 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
13
  - name: Check out
14
- uses: actions/checkout@v6
14
+ uses: actions/checkout@v7
15
15
 
16
16
  - name: Set up the environment
17
17
  uses: ./.github/actions/setup-uv-env
18
18
  with:
19
- python-version: "3.14"
19
+ python-version: "3.15"
20
20
  extras: check
21
21
 
22
22
  - name: Run check target
@@ -27,10 +27,10 @@ jobs:
27
27
  strategy:
28
28
  fail-fast: false
29
29
  matrix:
30
- python-version: ['3.12', '3.13', '3.14']
30
+ python-version: ['3.12', '3.13', '3.14', '3.15']
31
31
  steps:
32
32
  - name: Check out
33
- uses: actions/checkout@v6
33
+ uses: actions/checkout@v7
34
34
 
35
35
  - name: Set up the environment
36
36
  uses: ./.github/actions/setup-uv-env
@@ -55,12 +55,12 @@ jobs:
55
55
 
56
56
  steps:
57
57
  - name: Check out
58
- uses: actions/checkout@v6
58
+ uses: actions/checkout@v7
59
59
 
60
60
  - name: Set up the environment
61
61
  uses: ./.github/actions/setup-uv-env
62
62
  with:
63
- python-version: "3.14"
63
+ python-version: "3.15"
64
64
  extras: test
65
65
 
66
66
  - name: Download coverage data
@@ -83,7 +83,7 @@ jobs:
83
83
  runs-on: ubuntu-latest
84
84
  steps:
85
85
  - name: Check out
86
- uses: actions/checkout@v6
86
+ uses: actions/checkout@v7
87
87
 
88
88
  - name: Set up the environment
89
89
  uses: ./.github/actions/setup-uv-env
@@ -1,3 +1,16 @@
1
+ Version 0.6.4
2
+ -------------
3
+
4
+ - Default ComposeServer project to the one compose picks.
5
+
6
+ Version 0.6.3
7
+ -------------
8
+
9
+ - Add support for Python 3.15.
10
+ - Replace testing.compose with pytest-xdocker.
11
+ - Bump pytest-xdocker to 0.4.0, which starts services with compose up.
12
+ - Remove the taraqueue_compose_files fixture.
13
+
1
14
  Version 0.6.2
2
15
  -------------
3
16
 
@@ -113,7 +113,7 @@ Troubleshooting
113
113
  Solving environment: failed
114
114
 
115
115
  ResolvePackageNotFound:
116
- - python=3.14
116
+ - python=3.15
117
117
 
118
118
  The cache is probably corrupt - run ``conda clean -a``.
119
119
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: taraqueue
3
- Version: 0.6.2
3
+ Version: 0.6.4
4
4
  Summary: Python queue abstraction layer
5
5
  Project-URL: Repository, https://github.com/taradix/taraqueue
6
6
  Author-email: Marc Tardif <marc@taram.ca>
@@ -20,11 +20,10 @@ Requires-Dist: aiobotocore>=2.21.0; extra == 'sqs'
20
20
  Provides-Extra: test
21
21
  Requires-Dist: aiobotocore>=2.21.0; extra == 'test'
22
22
  Requires-Dist: coverage<8.0.0,>=7.2.3; extra == 'test'
23
- Requires-Dist: more-itertools<11.2.0,>=11.1.0; extra == 'test'
24
23
  Requires-Dist: moto[server,sns,sqs]>=5.1.0; extra == 'test'
25
24
  Requires-Dist: pytest-asyncio<2.0.0,>=1.0.0; extra == 'test'
26
25
  Requires-Dist: pytest-unique<1.0.0,>=0.1.8; extra == 'test'
27
- Requires-Dist: pytest-xdocker<1.0.0,>=0.2.9; extra == 'test'
26
+ Requires-Dist: pytest-xdocker<1.0.0,>=0.4.2; extra == 'test'
28
27
  Requires-Dist: pytest<10.0.0,>=9.0.0; extra == 'test'
29
28
  Requires-Dist: redis>=7.4.0; extra == 'test'
30
29
  Description-Content-Type: text/x-rst
@@ -49,7 +48,7 @@ Requirements
49
48
 
50
49
  You will need the following prerequisites to use taraqueue:
51
50
 
52
- - Python 3.12, 3.13, 3.14
51
+ - Python 3.12, 3.13, 3.14, 3.15
53
52
 
54
53
  Installation
55
54
  ------------
@@ -18,7 +18,7 @@ Requirements
18
18
 
19
19
  You will need the following prerequisites to use taraqueue:
20
20
 
21
- - Python 3.12, 3.13, 3.14
21
+ - Python 3.12, 3.13, 3.14, 3.15
22
22
 
23
23
  Installation
24
24
  ------------
@@ -0,0 +1 @@
1
+ name: taraqueue-test
@@ -1,4 +1,4 @@
1
1
  services:
2
2
  redis:
3
- image: redis:8.6.3-alpine
3
+ image: redis:8.12.0-alpine
4
4
  command: redis-server --requirepass ${REDIS_PASSWORD:-test}
@@ -4,14 +4,6 @@ taraqueue.testing package
4
4
  Submodules
5
5
  ----------
6
6
 
7
- taraqueue.testing.compose module
8
- --------------------------------
9
-
10
- .. automodule:: taraqueue.testing.compose
11
- :members:
12
- :show-inheritance:
13
- :undoc-members:
14
-
15
7
  taraqueue.testing.queue module
16
8
  ------------------------------
17
9
 
@@ -28,12 +28,11 @@ test = [
28
28
  "aiobotocore>=2.21.0",
29
29
  "coverage>=7.2.3,<8.0.0",
30
30
  "moto[sns,sqs,server]>=5.1.0",
31
- "more-itertools>=11.1.0,<11.2.0",
32
31
  "redis>=7.4.0",
33
32
  "pytest>=9.0.0,<10.0.0",
34
33
  "pytest-asyncio>=1.0.0,<2.0.0",
35
34
  "pytest-unique>=0.1.8,<1.0.0",
36
- "pytest-xdocker>=0.2.9,<1.0.0",
35
+ "pytest-xdocker>=0.4.2,<1.0.0",
37
36
  ]
38
37
 
39
38
  check = [
@@ -1,17 +1,13 @@
1
1
  """Service fixtures."""
2
2
 
3
- from pathlib import Path
4
-
5
3
  import pytest
6
-
7
- from taraqueue.testing.compose import ComposeServer
4
+ from pytest_xdocker.compose import ComposeServer, find_compose_files
8
5
 
9
6
 
10
7
  @pytest.fixture(scope="session")
11
8
  def taraqueue_env_vars():
12
9
  """Environment variables for the services."""
13
10
  return {
14
- "COMPOSE_PROJECT_NAME": "test",
15
11
  "REDIS_PASSWORD": "test",
16
12
  }
17
13
 
@@ -31,31 +27,12 @@ def taraqueue_env_file(taraqueue_env_vars, request):
31
27
 
32
28
 
33
29
  @pytest.fixture(scope="session")
34
- def taraqueue_compose_files(request):
35
- """Use the compose files from the project - not this library."""
36
- directory = Path(request.config.rootdir)
37
- filenames = ["docker-compose.yml", "compose.yaml", "compose.yml"]
38
- while True:
39
- for filename in filenames:
40
- path = directory / filename
41
- if path.exists():
42
- all_files = directory.glob(f"{path.stem}.*")
43
- ordered_files = sorted(all_files, key=lambda p: len(p.name))
44
- return list(ordered_files)
45
-
46
- if directory == directory.parent:
47
- raise FileNotFoundError("Docker compose file not found")
48
-
49
- directory = directory.parent
50
-
51
-
52
- @pytest.fixture(scope="session")
53
- def redis_service(process, taraqueue_env_file, taraqueue_compose_files):
30
+ def redis_service(process, taraqueue_env_file, request):
54
31
  """Redis service fixture."""
55
32
  server = ComposeServer(
56
33
  pattern="Ready to accept connections tcp",
57
34
  env_file=taraqueue_env_file,
58
- compose_files=taraqueue_compose_files,
35
+ compose_files=find_compose_files(request.config.rootdir),
59
36
  process=process,
60
37
  )
61
38
  with server.run("redis") as service: