diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 4e3c5314..00000000 --- a/MANIFEST.in +++ /dev/null @@ -1,4 +0,0 @@ -include LICENSE.txt -include README.rst -include CHANGELOG.md -recursive-include django_rq *.py *.html diff --git a/Pipfile b/Pipfile deleted file mode 100644 index 92e3bbd9..00000000 --- a/Pipfile +++ /dev/null @@ -1,17 +0,0 @@ -[[source]] -name = "pypi" -url = "https://pypi.org/simple" -verify_ssl = true - -[dev-packages] -django-redis = {editable = true,git = "https://github.com/niwinz/django-redis.git",ref = "13acf21d61ec95de6550c2df9fc65363676cf8a7"} -docutils = "*" -pygments = "*" -rq-scheduler = "*" -coverage = "*" - -[packages] -django-rq = {editable = true,path = "."} - -[requires] -python_version = "3.7" diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..1ac26d89 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,92 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "django-rq" +version = "3.0.1" +description = "An app that provides django integration for RQ (Redis Queue)" +readme = "README.rst" +license = "MIT" +license-files = ["LICENSE.txt"] +authors = [ + { name = "Selwin Ong", email = "selwin.ong@gmail.com" }, +] +requires-python = ">=3.8" +dependencies = [ + "django>=3.2", + "rq>=2", + "redis>=3.5", +] +classifiers = [ + "Development Status :: 4 - Beta", + "Environment :: Web Environment", + "Framework :: Django", + "Intended Audience :: Developers", + "Intended Audience :: End Users/Desktop", + "Intended Audience :: Information Technology", + "Intended Audience :: Science/Research", + "Intended Audience :: System Administrators", + "Operating System :: OS Independent", + "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", + "Programming Language :: Python :: 3.12", + "Topic :: Internet", + "Topic :: Internet :: WWW/HTTP", + "Topic :: Scientific/Engineering", + "Topic :: Software Development :: Libraries :: Python Modules", + "Topic :: System :: Distributed Computing", + "Topic :: System :: Monitoring", + "Topic :: System :: Systems Administration", +] + +[project.optional-dependencies] +prometheus = ["prometheus_client >= 0.4.0"] +Sentry = ["sentry-sdk >= 1.0.0"] +testing = [] + +[project.urls] +changelog = "https://github.com/rq/django-rq/blob/master/CHANGELOG.md" +homepage = "https://python-rq.org/patterns/django/" +repository = "https://github.com/rq/django-rq" + +[tool.hatch.build.targets.sdist] +include = [ + "/django_rq", + "/CHANGELOG.md", + "/pyproject.toml", +] + +[tool.mypy] +allow_redefinition = true +check_untyped_defs = 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 = "django_redis.*" +ignore_missing_imports = true + +[[tool.mypy.overrides]] +module = "prometheus_client.*" +ignore_missing_imports = true + +[[tool.mypy.overrides]] +module = "redis_cache.*" +ignore_missing_imports = true + +[[tool.mypy.overrides]] +module = "rq_scheduler.*" +ignore_missing_imports = true + +[[tool.mypy.overrides]] +module = "sentry_sdk.*" +ignore_missing_imports = true diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 04aafd71..00000000 --- a/setup.cfg +++ /dev/null @@ -1,27 +0,0 @@ -[bdist_wheel] -universal = 1 - -[mypy] -allow_redefinition = true -check_untyped_defs = true -pretty = true -show_error_codes = true -show_error_context = true -warn_redundant_casts = true -warn_unused_ignores = true -warn_unreachable = true - -[mypy-django_redis.*] -ignore_missing_imports = true - -[mypy-prometheus_client.*] -ignore_missing_imports = true - -[mypy-redis_cache.*] -ignore_missing_imports = true - -[mypy-rq_scheduler.*] -ignore_missing_imports = true - -[mypy-sentry_sdk.*] -ignore_missing_imports = true diff --git a/setup.py b/setup.py deleted file mode 100644 index 52ad114f..00000000 --- a/setup.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -from setuptools import setup - -setup( - name='django-rq', - version='3.0.1', - author='Selwin Ong', - author_email='selwin.ong@gmail.com', - packages=['django_rq'], - url='https://github.com/rq/django-rq', - license='MIT', - description='An app that provides django integration for RQ (Redis Queue)', - long_description=open('README.rst').read(), - zip_safe=False, - include_package_data=True, - package_data={ - '': ['README.rst'], - 'django_rq': ['py.typed'], - }, - install_requires=['django>=3.2', 'rq>=2', 'redis>=3.5'], - extras_require={ - 'prometheus': ['prometheus_client>=0.4.0'], - 'Sentry': ['sentry-sdk>=1.0.0'], - 'testing': [], - }, - classifiers=[ - 'Development Status :: 4 - Beta', - 'Environment :: Web Environment', - 'Framework :: Django', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: MIT License', - 'Operating System :: OS Independent', - 'Programming Language :: Python', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'Programming Language :: Python :: 3.11', - 'Programming Language :: Python :: 3.12', - 'Topic :: Internet :: WWW/HTTP', - 'Topic :: Software Development :: Libraries :: Python Modules', - ], -)