Skip to content

Commit cb1e5e6

Browse files
authored
feat: remove extra dependencies (#533)
1 parent 3d7212c commit cb1e5e6

File tree

21 files changed

+159
-262
lines changed

21 files changed

+159
-262
lines changed

poetry.lock

Lines changed: 3 additions & 151 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 71 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
1-
[tool.poetry]
1+
[project]
22
name = "taskiq"
33
version = "0.0.0"
44
description = "Distributed task queue with full async support"
5-
authors = ["Pavel Kirilin <[email protected]>"]
6-
maintainers = ["Pavel Kirilin <[email protected]>"]
5+
authors = [
6+
{name = "Pavel Kirilin", email = "<[email protected]>"}
7+
]
8+
maintainers = [
9+
{name = "Pavel Kirilin", email = "<[email protected]>"}
10+
]
711
readme = "README.md"
812
repository = "https://github.com/taskiq-python/taskiq"
913
homepage = "https://taskiq-python.github.io/"
1014
documentation = "https://taskiq-python.github.io/"
11-
license = "LICENSE"
15+
license = "MIT"
16+
license-files = ["LICENSE"]
1217
classifiers = [
1318
"Typing :: Typed",
1419
"Programming Language :: Python",
1520
"Programming Language :: Python :: 3",
1621
"Programming Language :: Python :: 3 :: Only",
17-
"Programming Language :: Python :: 3.8",
1822
"Programming Language :: Python :: 3.9",
1923
"Programming Language :: Python :: 3.10",
2024
"Programming Language :: Python :: 3.11",
@@ -26,63 +30,71 @@ classifiers = [
2630
"Development Status :: 3 - Alpha",
2731
]
2832
keywords = ["taskiq", "tasks", "distributed", "async"]
33+
requires-python = ">=3.9,<4"
34+
dependencies = [
35+
"typing-extensions>=3.10.0.0; python_version < '3.11'",
36+
"pydantic>=1.0,<=3.0",
37+
"pycron>=3.0.0",
38+
"taskiq_dependencies>=1.3.1,<2",
39+
"anyio>=4",
40+
"packaging>=19",
41+
"izulu==0.50.0",
42+
"aiohttp>=3",
43+
]
44+
45+
[project.optional-dependencies]
46+
zmq = [
47+
"pyzmq>=26",
48+
]
49+
uv = [
50+
"uvloop>=0.16.0,<1; sys_platform != 'win32'",
51+
]
52+
metrics = [
53+
"prometheus_client>=0",
54+
]
55+
reload = [
56+
"watchdog>=4",
57+
"gitignore-parser>=0",
58+
]
59+
orjson = [
60+
"orjson>=3",
61+
]
62+
msgpack = [
63+
"msgpack>=1.0.7",
64+
]
65+
cbor = [
66+
"cbor2>=5",
67+
]
68+
69+
[dependency-groups]
70+
dev = [
71+
"pre-commit>=4.3.0",
72+
# lint
73+
"ruff>=0",
74+
"black>=22.6.0",
75+
# type check
76+
"mypy>=1",
77+
# test
78+
"pytest>=7.1.2",
79+
"pytest-cov>=3.0.0",
80+
"coverage>=6.4.2",
81+
"pytest-xdist[psutil]>=2.5.0",
82+
"tox>=4.6.4",
83+
"freezegun>=1.2.2",
84+
"tzdata>=2025.2; sys_platform == 'win32'",
85+
]
86+
87+
[project.urls]
88+
Homepage = "https://taskiq-python.github.io/"
89+
Documentation = "https://taskiq-python.github.io/"
90+
Repository = "https://github.com/taskiq-python/taskiq"
91+
"Bug Tracker" = "https://github.com/taskiq-python/taskiq/issues"
92+
Changelog = "https://github.com/taskiq-python/taskiq/releases"
2993

30-
[tool.poetry.dependencies]
31-
python = "^3.9"
32-
typing-extensions = ">=3.10.0.0"
33-
pydantic = ">=1.0,<=3.0"
34-
importlib-metadata = "*"
35-
pycron = "^3.0.0"
36-
taskiq_dependencies = ">=1.3.1,<2"
37-
anyio = ">=4"
38-
packaging = ">=19"
39-
# For prometheus metrics
40-
prometheus_client = { version = "^0", optional = true }
41-
# For ZMQBroker
42-
pyzmq = { version = "^26", optional = true }
43-
# For speed
44-
uvloop = { version = ">=0.16.0,<1", optional = true, markers = "sys_platform != 'win32'" }
45-
# For hot-reload.
46-
watchdog = { version = "^4", optional = true }
47-
gitignore-parser = { version = "^0", optional = true }
48-
pytz = "*"
49-
orjson = { version = "^3", optional = true }
50-
msgpack = { version = "^1.0.7", optional = true }
51-
cbor2 = { version = "^5", optional = true }
52-
izulu = "0.50.0"
53-
aiohttp = "^3"
54-
55-
[tool.poetry.group.dev.dependencies]
56-
pytest = "^7.1.2"
57-
ruff = "^0"
58-
black = { version = "^22.6.0", allow-prereleases = true }
59-
mypy = "^1"
60-
pre-commit = "^4.3.0"
61-
coverage = "^6.4.2"
62-
pytest-cov = "^3.0.0"
63-
mock = "^4.0.3"
64-
pytest-xdist = { version = "^2.5.0", extras = ["psutil"] }
65-
types-mock = "^4.0.15"
66-
tox = "^4.6.4"
67-
freezegun = "^1.2.2"
68-
pytest-mock = "^3.11.1"
69-
tzlocal = "^5.0.1"
70-
types-tzlocal = "^5.0.1.1"
71-
types-pytz = "^2023.3.1.1"
72-
73-
[tool.poetry.extras]
74-
zmq = ["pyzmq"]
75-
uv = ["uvloop"]
76-
metrics = ["prometheus_client"]
77-
reload = ["watchdog", "gitignore-parser"]
78-
orjson = ["orjson"]
79-
msgpack = ["msgpack"]
80-
cbor = ["cbor2"]
81-
82-
[tool.poetry.scripts]
94+
[project.scripts]
8395
taskiq = "taskiq.__main__:main"
8496

85-
[tool.poetry.plugins.taskiq_cli]
97+
[project.entry-points.taskiq_cli]
8698
worker = "taskiq.cli.worker.cmd:WorkerCMD"
8799
scheduler = "taskiq.cli.scheduler.cmd:SchedulerCMD"
88100

taskiq/__main__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import argparse
22
import sys
3+
from importlib.metadata import entry_points
34
from typing import Dict
45

5-
from importlib_metadata import entry_points
6-
76
from taskiq import __version__
87
from taskiq.abc.cmd import TaskiqCMD
98

0 commit comments

Comments
 (0)