87 lines
2.6 KiB
TOML
87 lines
2.6 KiB
TOML
# File: pyproject.toml
|
|
|
|
[build-system]
|
|
# Define the build system requirements
|
|
requires = ["setuptools>=80.9", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "myauth"
|
|
version = "0.5.0"
|
|
description = "A reusable, modular authentication system for FastAPI applications with pluggable database backends."
|
|
readme = "README.md"
|
|
authors = [
|
|
{ name = "Kodjo Sossouvi", email = "kodjo.sossouvi@gmail.com" },
|
|
]
|
|
maintainers = [
|
|
{ name = "Kodjo Sossouvi", email = "kodjo.sossouvi@gmail.com" }
|
|
]
|
|
license = "MIT"
|
|
requires-python = ">=3.8"
|
|
classifiers = [
|
|
"Operating System :: OS Independent",
|
|
"Framework :: FastAPI",
|
|
"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 :: Auth",
|
|
]
|
|
|
|
# -------------------------------------------------------------------
|
|
# Core dependencies from your README
|
|
# Note: 'requirements.txt' is for development, this is for the package
|
|
# -------------------------------------------------------------------
|
|
dependencies = [
|
|
"fastapi",
|
|
"pydantic",
|
|
"pydantic-settings",
|
|
"pydantic[email]",
|
|
"python-jose[cryptography]",
|
|
"passlib[argon2]",
|
|
"python-multipart"
|
|
]
|
|
|
|
[project.urls]
|
|
# Optional: Link to your internal repository or documentation
|
|
Homepage = "https://gitea.sheerka.synology.me/kodjo/MyAuth"
|
|
Documentation = "https://gitea.sheerka.synology.me/kodjo/MyAuth#readme"
|
|
Repository = "https://gitea.sheerka.synology.me/kodjo/MyAuth"
|
|
Issues = "https://gitea.sheerka.synology.me/kodjo/MyAuth/issues"
|
|
|
|
# -------------------------------------------------------------------
|
|
# Optional dependencies ("extras")
|
|
# This allows users to install only what they need, e.g.:
|
|
# pip install myauth[mongodb,email]
|
|
# -------------------------------------------------------------------
|
|
[project.optional-dependencies]
|
|
mongodb = [
|
|
"pymongo"
|
|
]
|
|
postgresql = [
|
|
"psycopg2-binary"
|
|
]
|
|
email = [
|
|
"secure-smtplib"
|
|
]
|
|
# For development and testing (from your requirements.txt)
|
|
dev = [
|
|
"pytest",
|
|
"httpx",
|
|
"anyio",
|
|
"email-validator",
|
|
"python-dotenv"
|
|
]
|
|
|
|
# -------------------------------------------------------------------
|
|
# Setuptools configuration
|
|
# This section tells the build system where to find your package code
|
|
# -------------------------------------------------------------------
|
|
#[tool.setuptools]
|
|
#package-dir = {"myauth" = "src"}
|
|
#packages = ["my_auth"]
|
|
|
|
[tool.setuptools.package-dir]
|
|
myauth = "src/myauth" |