2023-07-09 10:34:25 +00:00
|
|
|
[build-system]
|
|
|
|
build-backend = "hatchling.build"
|
|
|
|
requires = [
|
|
|
|
"hatchling",
|
|
|
|
]
|
|
|
|
|
|
|
|
[project]
|
|
|
|
name = "rq"
|
|
|
|
description = "RQ is a simple, lightweight, library for creating background jobs, and processing them."
|
|
|
|
readme = "README.md"
|
|
|
|
license = "BSD-2-Clause"
|
|
|
|
maintainers = [
|
|
|
|
{name = "Selwin Ong"},
|
|
|
|
]
|
|
|
|
authors = [
|
2024-03-09 02:31:58 +00:00
|
|
|
{ name = "Selwin Ong", email = "selwin.ong@gmail.com" },
|
2023-07-09 10:34:25 +00:00
|
|
|
{ name = "Vincent Driessen", email = "vincent@3rdcloud.com" },
|
|
|
|
]
|
2024-10-28 14:57:51 +00:00
|
|
|
requires-python = ">=3.8"
|
2023-07-09 10:34:25 +00:00
|
|
|
classifiers = [
|
|
|
|
"Development Status :: 5 - Production/Stable",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"Intended Audience :: End Users/Desktop",
|
|
|
|
"Intended Audience :: Information Technology",
|
|
|
|
"Intended Audience :: Science/Research",
|
|
|
|
"Intended Audience :: System Administrators",
|
|
|
|
"License :: OSI Approved :: BSD License",
|
|
|
|
"Operating System :: MacOS",
|
|
|
|
"Operating System :: POSIX",
|
|
|
|
"Operating System :: Unix",
|
|
|
|
"Programming Language :: Python",
|
|
|
|
"Programming Language :: Python :: 3 :: Only",
|
|
|
|
"Programming Language :: Python :: 3.8",
|
|
|
|
"Programming Language :: Python :: 3.9",
|
|
|
|
"Programming Language :: Python :: 3.10",
|
|
|
|
"Programming Language :: Python :: 3.11",
|
2024-02-24 03:10:21 +00:00
|
|
|
"Programming Language :: Python :: 3.12",
|
2023-07-09 10:34:25 +00:00
|
|
|
"Topic :: Internet",
|
|
|
|
"Topic :: Scientific/Engineering",
|
|
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
|
|
"Topic :: System :: Distributed Computing",
|
|
|
|
"Topic :: System :: Monitoring",
|
|
|
|
"Topic :: System :: Systems Administration",
|
|
|
|
]
|
|
|
|
dynamic = [
|
|
|
|
"version",
|
|
|
|
]
|
|
|
|
dependencies = [
|
|
|
|
"click>=5",
|
|
|
|
"redis>=3.5",
|
|
|
|
]
|
|
|
|
[project.urls]
|
|
|
|
changelog = "https://github.com/rq/rq/blob/master/CHANGES.md"
|
|
|
|
documentation = "https://python-rq.org/docs/"
|
|
|
|
homepage = "https://python-rq.org/"
|
|
|
|
repository = "https://github.com/rq/rq/"
|
|
|
|
[project.scripts]
|
|
|
|
rq = "rq.cli:main"
|
|
|
|
rqinfo = "rq.cli:info" # TODO [v2]: Remove
|
|
|
|
rqworker = "rq.cli:worker" # TODO [v2]: Remove
|
|
|
|
|
|
|
|
[tool.hatch.version]
|
|
|
|
path = "rq/version.py"
|
|
|
|
|
|
|
|
[tool.hatch.build.targets.sdist]
|
|
|
|
include = [
|
|
|
|
"/docs",
|
|
|
|
"/rq",
|
|
|
|
"/tests",
|
|
|
|
"CHANGES.md",
|
|
|
|
"LICENSE",
|
|
|
|
"pyproject.toml",
|
|
|
|
"README.md",
|
|
|
|
"requirements.txt",
|
|
|
|
"tox.ini",
|
|
|
|
]
|
|
|
|
|
|
|
|
[tool.hatch.envs.test]
|
|
|
|
dependencies = [
|
|
|
|
"coverage",
|
2024-09-13 22:38:58 +00:00
|
|
|
"mypy",
|
2023-07-09 10:34:25 +00:00
|
|
|
"packaging",
|
|
|
|
"psutil",
|
|
|
|
"pytest",
|
|
|
|
"pytest-cov",
|
|
|
|
"ruff",
|
|
|
|
"tox",
|
2024-09-13 22:38:58 +00:00
|
|
|
"types-greenlet",
|
|
|
|
"types-redis",
|
2023-07-09 10:34:25 +00:00
|
|
|
]
|
|
|
|
[tool.hatch.envs.test.scripts]
|
|
|
|
cov = "pytest --cov=rq --cov-config=.coveragerc --cov-report=xml {args:tests}"
|
2024-09-13 22:38:58 +00:00
|
|
|
typing = "mypy --enable-incomplete-feature=Unpack rq"
|
2023-07-09 10:34:25 +00:00
|
|
|
|
2024-09-13 22:38:58 +00:00
|
|
|
[tool.mypy]
|
|
|
|
allow_redefinition = true
|
|
|
|
pretty = true
|
|
|
|
show_error_codes = true
|
|
|
|
show_error_context = true
|
|
|
|
warn_redundant_casts = true
|
|
|
|
warn_unused_ignores = true
|
|
|
|
warn_unreachable = true
|
|
|
|
|
|
|
|
[[tool.mypy.overrides]]
|
|
|
|
module = "setproctitle.*"
|
|
|
|
ignore_missing_imports = true
|
|
|
|
|
2023-05-17 16:19:14 +00:00
|
|
|
[tool.ruff]
|
|
|
|
# Set what ruff should check for.
|
|
|
|
# See https://beta.ruff.rs/docs/rules/ for a list of rules.
|
2024-05-02 01:20:41 +00:00
|
|
|
lint.select = [
|
2023-05-17 16:19:14 +00:00
|
|
|
"E", # pycodestyle errors
|
|
|
|
"F", # pyflakes errors
|
|
|
|
"I", # import sorting
|
|
|
|
"W", # pycodestyle warnings
|
|
|
|
]
|
2024-11-20 08:34:27 +00:00
|
|
|
line-length = 120
|
2023-07-09 10:34:25 +00:00
|
|
|
target-version = "py38"
|
2023-05-17 16:19:14 +00:00
|
|
|
|
2024-05-02 01:20:41 +00:00
|
|
|
[tool.ruff.lint.isort]
|
2023-05-17 16:19:14 +00:00
|
|
|
known-first-party = ["rq"]
|
|
|
|
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
|
2023-11-03 10:05:59 +00:00
|
|
|
|
2024-11-20 08:34:27 +00:00
|
|
|
[tool.ruff.format]
|
|
|
|
quote-style = "single"
|
|
|
|
|
2023-11-03 10:05:59 +00:00
|
|
|
[tool.pyright]
|
|
|
|
reportOptionalMemberAccess = false
|
2024-11-20 08:34:27 +00:00
|
|
|
reportOptionalOperand = false
|