asyncz 0.5.0__tar.gz → 0.6.0__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 (55) hide show
  1. {asyncz-0.5.0 → asyncz-0.6.0}/PKG-INFO +10 -9
  2. asyncz-0.6.0/asyncz/__init__.py +1 -0
  3. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/contrib/esmerald/decorator.py +2 -2
  4. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/contrib/esmerald/scheduler.py +4 -4
  5. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/triggers/cron/fields.py +1 -1
  6. {asyncz-0.5.0 → asyncz-0.6.0}/pyproject.toml +12 -21
  7. asyncz-0.5.0/asyncz/__init__.py +0 -1
  8. {asyncz-0.5.0 → asyncz-0.6.0}/.gitignore +0 -0
  9. {asyncz-0.5.0 → asyncz-0.6.0}/LICENSE +0 -0
  10. {asyncz-0.5.0 → asyncz-0.6.0}/README.md +0 -0
  11. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/_mapping.py +0 -0
  12. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/contrib/__init__.py +0 -0
  13. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/contrib/esmerald/__init__.py +0 -0
  14. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/datastructures.py +0 -0
  15. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/enums.py +0 -0
  16. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/events/__init__.py +0 -0
  17. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/events/base.py +0 -0
  18. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/events/constants.py +0 -0
  19. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/exceptions.py +0 -0
  20. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/executors/__init__.py +0 -0
  21. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/executors/asyncio.py +0 -0
  22. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/executors/base.py +0 -0
  23. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/executors/debug.py +0 -0
  24. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/executors/pool.py +0 -0
  25. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/executors/types.py +0 -0
  26. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/py.typed +0 -0
  27. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/schedulers/__init__.py +0 -0
  28. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/schedulers/asyncio.py +0 -0
  29. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/schedulers/base.py +0 -0
  30. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/schedulers/datastructures.py +0 -0
  31. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/schedulers/types.py +0 -0
  32. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/schedulers/utils.py +0 -0
  33. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/state.py +0 -0
  34. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/stores/__init__.py +0 -0
  35. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/stores/base.py +0 -0
  36. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/stores/memory.py +0 -0
  37. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/stores/mongo.py +0 -0
  38. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/stores/redis.py +0 -0
  39. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/stores/types.py +0 -0
  40. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/tasks/__init__.py +0 -0
  41. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/tasks/base.py +0 -0
  42. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/tasks/types.py +0 -0
  43. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/triggers/__init__.py +0 -0
  44. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/triggers/base.py +0 -0
  45. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/triggers/combination.py +0 -0
  46. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/triggers/cron/__init__.py +0 -0
  47. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/triggers/cron/constants.py +0 -0
  48. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/triggers/cron/expressions.py +0 -0
  49. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/triggers/cron/trigger.py +0 -0
  50. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/triggers/cron/types.py +0 -0
  51. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/triggers/date.py +0 -0
  52. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/triggers/interval.py +0 -0
  53. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/triggers/types.py +0 -0
  54. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/typing.py +0 -0
  55. {asyncz-0.5.0 → asyncz-0.6.0}/asyncz/utils.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: asyncz
3
- Version: 0.5.0
3
+ Version: 0.6.0
4
4
  Summary: The scheduler that nobody wants but every application needs.
5
5
  Project-URL: Homepage, https://github.com/tarsil/asyncz
6
6
  Project-URL: Documentation, https://asyncz.tarsild.io/
@@ -39,7 +39,7 @@ Classifier: Typing :: Typed
39
39
  Requires-Python: >=3.8
40
40
  Requires-Dist: asyncio<4.0.0,>=3.4.3
41
41
  Requires-Dist: loguru<0.8.0,>=0.7.0
42
- Requires-Dist: pydantic<3.0.0,>=2.1.1
42
+ Requires-Dist: pydantic<3.0.0,>=2.5.3
43
43
  Requires-Dist: pytz>=2022.6
44
44
  Requires-Dist: tzlocal<5.0,>=4.2
45
45
  Provides-Extra: all
@@ -48,13 +48,14 @@ Requires-Dist: pytz>=2022.6; extra == 'all'
48
48
  Requires-Dist: tzlocal<5.0,>=4.2; extra == 'all'
49
49
  Provides-Extra: dev
50
50
  Requires-Dist: autoflake<3.0.0,>=1.4.0; extra == 'dev'
51
- Requires-Dist: black<23.0.0,>=22.10.0; extra == 'dev'
52
- Requires-Dist: flake8<7.0.0,>=3.8.3; extra == 'dev'
51
+ Requires-Dist: black==24.4.2; extra == 'dev'
52
+ Requires-Dist: flake8<8.0.0,>=3.8.3; extra == 'dev'
53
53
  Requires-Dist: ipdb>=0.13.13; extra == 'dev'
54
54
  Requires-Dist: isort<6.0.0,>=5.0.6; extra == 'dev'
55
55
  Requires-Dist: mypy<2.0.0,>=0.982; extra == 'dev'
56
+ Requires-Dist: pdbpp; extra == 'dev'
56
57
  Requires-Dist: pre-commit<3.0.0,>=2.17.0; extra == 'dev'
57
- Requires-Dist: watchfiles<0.20.0,>=0.16.1; extra == 'dev'
58
+ Requires-Dist: watchfiles<0.22.0,>=0.16.1; extra == 'dev'
58
59
  Provides-Extra: doc
59
60
  Requires-Dist: mdx-include<2.0.0,>=1.4.2; extra == 'doc'
60
61
  Requires-Dist: mkautodoc<0.3.0,>=0.2.0; extra == 'doc'
@@ -67,10 +68,10 @@ Provides-Extra: test
67
68
  Requires-Dist: mock>=4.0.3; extra == 'test'
68
69
  Requires-Dist: pymongo<5.0.0,>=4.3.3; extra == 'test'
69
70
  Requires-Dist: pytest-asyncio<1.0.0,>=0.19.0; extra == 'test'
70
- Requires-Dist: pytest-cov<5.0.0,>=2.12.0; extra == 'test'
71
+ Requires-Dist: pytest-cov<6.0.0,>=2.12.0; extra == 'test'
71
72
  Requires-Dist: pytest-loguru<1,>=0.2.0; extra == 'test'
72
- Requires-Dist: pytest<8.0.0,>=7.1.3; extra == 'test'
73
- Requires-Dist: redis<5.0.0,>=4.4.0; extra == 'test'
73
+ Requires-Dist: pytest<9.0.0,>=7.1.3; extra == 'test'
74
+ Requires-Dist: redis<6.0.0,>=4.4.0; extra == 'test'
74
75
  Requires-Dist: requests<3.0.0,>=2.27.0; extra == 'test'
75
76
  Requires-Dist: ruff<1.0.0,>=0.0.256; extra == 'test'
76
77
  Description-Content-Type: text/markdown
@@ -0,0 +1 @@
1
+ __version__ = "0.6.0"
@@ -14,7 +14,7 @@ class scheduler(Task):
14
14
  id: Optional[str] = None,
15
15
  mistrigger_grace_time: Optional[int] = None,
16
16
  coalesce: Optional[bool] = None,
17
- max_intances: Optional[int] = None,
17
+ max_instances: Optional[int] = None,
18
18
  next_run_time: Optional[datetime] = None,
19
19
  store: Optional[str] = "default",
20
20
  executor: Optional[str] = "default",
@@ -29,7 +29,7 @@ class scheduler(Task):
29
29
  id=id,
30
30
  mistrigger_grace_time=mistrigger_grace_time,
31
31
  coalesce=coalesce,
32
- max_intances=max_intances,
32
+ max_instances=max_instances,
33
33
  next_run_time=next_run_time,
34
34
  store=store,
35
35
  executor=executor,
@@ -145,7 +145,7 @@ class Task:
145
145
  id: Optional[str] = None,
146
146
  mistrigger_grace_time: Optional[int] = None,
147
147
  coalesce: Optional[bool] = None,
148
- max_intances: Optional[int] = None,
148
+ max_instances: Optional[int] = None,
149
149
  next_run_time: Optional[datetime] = None,
150
150
  store: Optional[str] = "default",
151
151
  executor: Optional[str] = "default",
@@ -163,7 +163,7 @@ class Task:
163
163
  mistrigger_grace_time: Seconds after the designated runtime that the task is still allowed to be run (or None to allow the task to run no
164
164
  matter how late it is).
165
165
  coalesce: Run once instead of many times if the scheduler determines that the task should be run more than once in succession.
166
- max_intances: Maximum number of concurrently running instances allowed for this task.
166
+ max_instances: Maximum number of concurrently running instances allowed for this task.
167
167
  next_run_time: When to first run the task, regardless of the trigger (pass None to add the task as paused).
168
168
  store: Alias of the task store to store the task in.
169
169
  executor: Alias of the executor to run the task with.
@@ -178,7 +178,7 @@ class Task:
178
178
  self.id = id
179
179
  self.mistrigger_grace_time = mistrigger_grace_time or undefined
180
180
  self.coalesce = coalesce or undefined
181
- self.max_intances = max_intances or undefined
181
+ self.max_instances = max_instances or undefined
182
182
  self.next_run_time = next_run_time or undefined
183
183
  self.store = store
184
184
  self.executor = executor
@@ -199,7 +199,7 @@ class Task:
199
199
  name=self.name,
200
200
  mistrigger_grace_time=self.mistrigger_grace_time,
201
201
  coalesce=self.coalesce,
202
- max_instances=self.max_intances,
202
+ max_instances=self.max_instances,
203
203
  next_run_time=self.next_run_time,
204
204
  store=self.store,
205
205
  executor=self.executor,
@@ -33,7 +33,7 @@ class BaseField(BaseModel):
33
33
  exprs: Any,
34
34
  is_default: Optional[bool] = False,
35
35
  compilers: Optional[List[Any]] = None,
36
- **kwargs: Any
36
+ **kwargs: Any,
37
37
  ):
38
38
  super().__init__(**kwargs)
39
39
  self.name = name
@@ -41,7 +41,7 @@ classifiers = [
41
41
  dependencies = [
42
42
  "asyncio>=3.4.3,<4.0.0",
43
43
  "loguru>=0.7.0,<0.8.0",
44
- "pydantic>=2.1.1,<3.0.0",
44
+ "pydantic>=2.5.3,<3.0.0",
45
45
  "pytz>=2022.6",
46
46
  "tzlocal>=4.2,<5.0",
47
47
  ]
@@ -77,24 +77,25 @@ test = [
77
77
  # "esmerald==0.4.2",
78
78
  "mock>=4.0.3",
79
79
  "pymongo>=4.3.3,<5.0.0",
80
- "pytest >=7.1.3,<8.0.0",
81
- "pytest-cov >=2.12.0,<5.0.0",
80
+ "pytest>=7.1.3,<9.0.0",
81
+ "pytest-cov >=2.12.0,<6.0.0",
82
82
  "pytest-asyncio >=0.19.0,<1.0.0",
83
83
  "pytest-loguru>=0.2.0,<1",
84
- "redis>=4.4.0,<5.0.0",
84
+ "redis>=4.4.0,<6.0.0",
85
85
  "requests >=2.27.0,<3.0.0",
86
86
  "ruff>=0.0.256,<1.0.0",
87
87
  ]
88
88
 
89
89
  dev = [
90
- "autoflake >=1.4.0,<3.0.0",
91
- "black>=22.10.0,<23.0.0",
92
- "flake8>=3.8.3,<7.0.0",
90
+ "autoflake>=1.4.0,<3.0.0",
91
+ "black==24.4.2",
92
+ "flake8>=3.8.3,<8.0.0",
93
93
  "ipdb>=0.13.13",
94
+ "pdbpp",
94
95
  "isort>=5.0.6,<6.0.0",
95
96
  "mypy>=0.982,<2.0.0",
96
97
  "pre-commit>=2.17.0,<3.0.0",
97
- "watchfiles>=0.16.1,<0.20.0",
98
+ "watchfiles>=0.16.1,<0.22.0",
98
99
  ]
99
100
 
100
101
  doc = [
@@ -130,19 +131,9 @@ disable_error_code = "attr-defined"
130
131
  warn_unused_ignores = true
131
132
  warn_redundant_casts = true
132
133
 
133
- [tool.ruff]
134
- select = [
135
- "E", # pycodestyle errors
136
- "W", # pycodestyle warnings
137
- "F", # pyflakes
138
- "C", # flake8-comprehensions
139
- "B", # flake8-bugbear
140
- ]
141
- ignore = [
142
- "E501", # line too long, handled by black
143
- "B008", # do not perform function calls in argument defaults
144
- "C901", # too complex
145
- ]
134
+ [tool.ruff.lint]
135
+ select = ["E", "W", "F", "C", "B", "I"]
136
+ ignore = ["E501", "B008", "C901", "B026"]
146
137
 
147
138
  exclude = ["docs_src/*"]
148
139
 
@@ -1 +0,0 @@
1
- __version__ = "0.5.0"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes