|
| 1 | +[build-system] |
| 2 | +requires = ["hatchling"] |
| 3 | +build-backend = "hatchling.build" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "authgate" |
| 7 | +dynamic = ["version"] |
| 8 | +description = "Python SDK for AuthGate — OAuth 2.0 authentication and token management" |
| 9 | +readme = "README.md" |
| 10 | +license = "MIT" |
| 11 | +requires-python = ">=3.10" |
| 12 | +authors = [{ name = "AuthGate Contributors" }] |
| 13 | +classifiers = [ |
| 14 | + "Development Status :: 4 - Beta", |
| 15 | + "Intended Audience :: Developers", |
| 16 | + "License :: OSI Approved :: MIT License", |
| 17 | + "Programming Language :: Python :: 3", |
| 18 | + "Programming Language :: Python :: 3.10", |
| 19 | + "Programming Language :: Python :: 3.11", |
| 20 | + "Programming Language :: Python :: 3.12", |
| 21 | + "Programming Language :: Python :: 3.13", |
| 22 | + "Typing :: Typed", |
| 23 | +] |
| 24 | +dependencies = ["httpx>=0.27,<1", "keyring>=25,<27"] |
| 25 | + |
| 26 | +[project.optional-dependencies] |
| 27 | +fastapi = ["fastapi>=0.100"] |
| 28 | +flask = ["flask>=2.3"] |
| 29 | +django = ["django>=4.2"] |
| 30 | +dev = [ |
| 31 | + "pytest>=8", |
| 32 | + "pytest-asyncio>=0.23", |
| 33 | + "pytest-httpx>=0.30", |
| 34 | + "coverage>=7", |
| 35 | + "mypy>=1.10", |
| 36 | + "ruff>=0.5", |
| 37 | +] |
| 38 | + |
| 39 | +[tool.hatch.version] |
| 40 | +path = "src/authgate/_version.py" |
| 41 | + |
| 42 | +[tool.hatch.build.targets.wheel] |
| 43 | +packages = ["src/authgate"] |
| 44 | + |
| 45 | +[tool.ruff] |
| 46 | +target-version = "py310" |
| 47 | +line-length = 100 |
| 48 | + |
| 49 | +[tool.ruff.lint] |
| 50 | +select = [ |
| 51 | + "E", |
| 52 | + "F", |
| 53 | + "W", |
| 54 | + "I", |
| 55 | + "N", |
| 56 | + "UP", |
| 57 | + "B", |
| 58 | + "A", |
| 59 | + "SIM", |
| 60 | + "RUF", |
| 61 | +] |
| 62 | + |
| 63 | +[tool.ruff.lint.isort] |
| 64 | +known-first-party = ["authgate"] |
| 65 | + |
| 66 | +[tool.mypy] |
| 67 | +python_version = "3.10" |
| 68 | +strict = true |
| 69 | +warn_return_any = true |
| 70 | +warn_unused_configs = true |
| 71 | + |
| 72 | +[[tool.mypy.overrides]] |
| 73 | +module = ["keyring", "keyring.errors"] |
| 74 | +ignore_missing_imports = true |
| 75 | + |
| 76 | +[[tool.mypy.overrides]] |
| 77 | +module = ["fastapi", "fastapi.*"] |
| 78 | +ignore_missing_imports = true |
| 79 | + |
| 80 | +[[tool.mypy.overrides]] |
| 81 | +module = ["flask", "flask.*"] |
| 82 | +ignore_missing_imports = true |
| 83 | + |
| 84 | +[[tool.mypy.overrides]] |
| 85 | +module = ["django", "django.*"] |
| 86 | +ignore_missing_imports = true |
| 87 | + |
| 88 | +[tool.pytest.ini_options] |
| 89 | +testpaths = ["tests"] |
| 90 | +asyncio_mode = "auto" |
0 commit comments