Skip to content

Commit fc9a6de

Browse files
Update packaging to use modern packaging with a pyproject.toml (#715)
This change updates and modernizes the packaging to use hatchling as that is used in the main RQ project.
1 parent b1e6e87 commit fc9a6de

File tree

5 files changed

+92
-91
lines changed

5 files changed

+92
-91
lines changed

MANIFEST.in

Lines changed: 0 additions & 4 deletions
This file was deleted.

Pipfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

pyproject.toml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "django-rq"
7+
version = "3.0.1"
8+
description = "An app that provides django integration for RQ (Redis Queue)"
9+
readme = "README.rst"
10+
license = "MIT"
11+
license-files = ["LICENSE.txt"]
12+
authors = [
13+
{ name = "Selwin Ong", email = "[email protected]" },
14+
]
15+
requires-python = ">=3.8"
16+
dependencies = [
17+
"django>=3.2",
18+
"rq>=2",
19+
"redis>=3.5",
20+
]
21+
classifiers = [
22+
"Development Status :: 4 - Beta",
23+
"Environment :: Web Environment",
24+
"Framework :: Django",
25+
"Intended Audience :: Developers",
26+
"Intended Audience :: End Users/Desktop",
27+
"Intended Audience :: Information Technology",
28+
"Intended Audience :: Science/Research",
29+
"Intended Audience :: System Administrators",
30+
"Operating System :: OS Independent",
31+
"Programming Language :: Python",
32+
"Programming Language :: Python :: 3 :: Only",
33+
"Programming Language :: Python :: 3.8",
34+
"Programming Language :: Python :: 3.9",
35+
"Programming Language :: Python :: 3.10",
36+
"Programming Language :: Python :: 3.11",
37+
"Programming Language :: Python :: 3.12",
38+
"Topic :: Internet",
39+
"Topic :: Internet :: WWW/HTTP",
40+
"Topic :: Scientific/Engineering",
41+
"Topic :: Software Development :: Libraries :: Python Modules",
42+
"Topic :: System :: Distributed Computing",
43+
"Topic :: System :: Monitoring",
44+
"Topic :: System :: Systems Administration",
45+
]
46+
47+
[project.optional-dependencies]
48+
prometheus = ["prometheus_client >= 0.4.0"]
49+
Sentry = ["sentry-sdk >= 1.0.0"]
50+
testing = []
51+
52+
[project.urls]
53+
changelog = "https://github.com/rq/django-rq/blob/master/CHANGELOG.md"
54+
homepage = "https://python-rq.org/patterns/django/"
55+
repository = "https://github.com/rq/django-rq"
56+
57+
[tool.hatch.build.targets.sdist]
58+
include = [
59+
"/django_rq",
60+
"/CHANGELOG.md",
61+
"/pyproject.toml",
62+
]
63+
64+
[tool.mypy]
65+
allow_redefinition = true
66+
check_untyped_defs = true
67+
pretty = true
68+
show_error_codes = true
69+
show_error_context = true
70+
warn_redundant_casts = true
71+
warn_unused_ignores = true
72+
warn_unreachable = true
73+
74+
[[tool.mypy.overrides]]
75+
module = "django_redis.*"
76+
ignore_missing_imports = true
77+
78+
[[tool.mypy.overrides]]
79+
module = "prometheus_client.*"
80+
ignore_missing_imports = true
81+
82+
[[tool.mypy.overrides]]
83+
module = "redis_cache.*"
84+
ignore_missing_imports = true
85+
86+
[[tool.mypy.overrides]]
87+
module = "rq_scheduler.*"
88+
ignore_missing_imports = true
89+
90+
[[tool.mypy.overrides]]
91+
module = "sentry_sdk.*"
92+
ignore_missing_imports = true

setup.cfg

Lines changed: 0 additions & 27 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)