|
| 1 | +[build-system] |
| 2 | + build-backend = "setuptools.build_meta" |
| 3 | + requires = ["setuptools"] |
| 4 | + |
| 5 | +[project] |
| 6 | + authors = [{ name = "Timo Ludwig", email = "ti.ludwig@web.de" }] |
| 7 | + classifiers = [ |
| 8 | + "Development Status :: 5 - Production/Stable", |
| 9 | + "Environment :: Web Environment", |
| 10 | + "Framework :: Django :: 3.2", |
| 11 | + "Framework :: Django :: 4.0", |
| 12 | + "Framework :: Django :: 4.1", |
| 13 | + "Framework :: Django", |
| 14 | + "Framework :: Sphinx :: Extension", |
| 15 | + "Intended Audience :: Developers", |
| 16 | + "License :: OSI Approved :: Apache Software License", |
| 17 | + "Operating System :: OS Independent", |
| 18 | + "Programming Language :: Python :: 3.10", |
| 19 | + "Programming Language :: Python :: 3.11", |
| 20 | + "Programming Language :: Python :: 3.7", |
| 21 | + "Programming Language :: Python :: 3.8", |
| 22 | + "Programming Language :: Python :: 3.9", |
| 23 | + "Programming Language :: Python", |
| 24 | + "Topic :: Internet :: WWW/HTTP :: Dynamic Content", |
| 25 | + "Topic :: Internet :: WWW/HTTP", |
| 26 | + "Topic :: Software Development :: Libraries :: Application Frameworks", |
| 27 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 28 | + ] |
| 29 | + dependencies = ["Django>=2.2", "Sphinx>=0.5", "pprintpp"] |
| 30 | + description = "Improve the Sphinx autodoc for Django classes." |
| 31 | + dynamic = ["version"] |
| 32 | + keywords = ["django", "docstrings", "extension", "sphinx"] |
| 33 | + license = { text = "Apache2 2.0 License" } |
| 34 | + name = "sphinxcontrib-django2" |
| 35 | + readme = "README.rst" |
| 36 | + requires-python = ">=3.7" |
| 37 | + |
| 38 | + [project.urls] |
| 39 | + "Bug Tracker" = "https://github.com/timoludwig/sphinxcontrib-django2/issues" |
| 40 | + "Documentation" = "https://sphinxcontrib-django2.readthedocs.io/" |
| 41 | + "Release Notes" = "https://github.com/timoludwig/sphinxcontrib-django2/blob/develop/CHANGES.rst" |
| 42 | + "Source Code" = "https://github.com/timoludwig/sphinxcontrib-django2" |
| 43 | + |
| 44 | + [project.optional-dependencies] |
| 45 | + dev = ["pre-commit"] |
| 46 | + doc = ["sphinx-last-updated-by-git", "sphinx-rtd-theme"] |
| 47 | + optional = [ |
| 48 | + "django-mptt", |
| 49 | + "django-phonenumber-field[phonenumbers]", |
| 50 | + "psycopg2-binary", |
| 51 | + ] |
| 52 | + test = ["coverage", "pytest", "requests-mock"] |
| 53 | + |
| 54 | +[tool.setuptools.dynamic] |
| 55 | + version = { attr = "sphinxcontrib_django2.__version__" } |
| 56 | + |
| 57 | +[tool.setuptools.packages.find] |
| 58 | + include = ["sphinxcontrib_django2*"] |
| 59 | + |
| 60 | +[tool.black] |
| 61 | + skip-magic-trailing-comma = true |
| 62 | + |
| 63 | +[tool.coverage.run] |
| 64 | + command_line = "-m pytest" |
| 65 | + source = ["sphinxcontrib_django2"] |
| 66 | + |
| 67 | +[tool.pytest.ini_options] |
| 68 | + addopts = "-ra -q" |
| 69 | + minversion = "6.0" |
| 70 | + testpaths = ["tests"] |
| 71 | + |
| 72 | +[tool.flake8] |
| 73 | + ignore = [ |
| 74 | + "D1", # Missing docstrings |
| 75 | + "E203", # whitespace before ':' in slice (incompatible with black) |
| 76 | + "E731", # Allow lambdas |
| 77 | + "F405", # name undefined due to star imports |
| 78 | + "W503", # line break before binary operator (incompatible with black) |
| 79 | + ] |
| 80 | + max-line-length = 99 |
| 81 | + |
| 82 | +[tool.isort] |
| 83 | + known_first_party = "sphinxcontrib_django2" |
| 84 | + # Approach Black compatibility (just run black after isort) |
| 85 | + include_trailing_comma = true |
| 86 | + line_length = 88 |
| 87 | + multi_line_output = 3 |
0 commit comments