mirror of
https://github.com/fastapi/sqlmodel.git
synced 2026-01-06 01:19:50 -06:00
🔧 Migrate from Poetry to PDM for the internal build config (#912)
This commit is contained in:
committed by
GitHub
parent
f67867f974
commit
0b4989d0b2
@@ -1,14 +1,17 @@
|
||||
[tool.poetry]
|
||||
[build-system]
|
||||
requires = ["pdm-backend"]
|
||||
build-backend = "pdm.backend"
|
||||
|
||||
[project]
|
||||
name = "sqlmodel"
|
||||
version = "0"
|
||||
dynamic = ["version"]
|
||||
description = "SQLModel, SQL databases in Python, designed for simplicity, compatibility, and robustness."
|
||||
authors = ["Sebastián Ramírez <tiangolo@gmail.com>"]
|
||||
readme = "README.md"
|
||||
homepage = "https://github.com/tiangolo/sqlmodel"
|
||||
documentation = "https://sqlmodel.tiangolo.com"
|
||||
repository = "https://github.com/tiangolo/sqlmodel"
|
||||
license = "MIT"
|
||||
exclude = ["sqlmodel/sql/expression.py.jinja2"]
|
||||
requires-python = ">=3.7"
|
||||
authors = [
|
||||
{ name = "Sebastián Ramírez", email = "tiangolo@gmail.com" },
|
||||
]
|
||||
|
||||
classifiers = [
|
||||
"Development Status :: 4 - Beta",
|
||||
"Framework :: AsyncIO",
|
||||
@@ -31,36 +34,28 @@ classifiers = [
|
||||
"Typing :: Typed",
|
||||
]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.7"
|
||||
SQLAlchemy = ">=2.0.0,<2.1.0"
|
||||
pydantic = ">=1.10.13,<3.0.0"
|
||||
dependencies = [
|
||||
"SQLAlchemy >=2.0.0,<2.1.0",
|
||||
"pydantic >=1.10.13,<3.0.0",
|
||||
]
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
pytest = "^7.0.1"
|
||||
mypy = "1.4.1"
|
||||
# Needed by the code generator using templates
|
||||
black = ">=22.10,<24.0"
|
||||
mkdocs-material = "9.2.7"
|
||||
pillow = "^9.3.0"
|
||||
cairosvg = "^2.5.2"
|
||||
mdx-include = "^1.4.1"
|
||||
coverage = {extras = ["toml"], version = ">=6.2,<8.0"}
|
||||
fastapi = "^0.103.2"
|
||||
ruff = "0.2.0"
|
||||
# For FastAPI tests
|
||||
httpx = "0.24.1"
|
||||
# TODO: upgrade when deprecating Python 3.7
|
||||
dirty-equals = "^0.6.0"
|
||||
typer-cli = "^0.0.13"
|
||||
mkdocs-markdownextradata-plugin = ">=0.1.7,<0.3.0"
|
||||
[project.urls]
|
||||
Homepage = "https://github.com/tiangolo/sqlmodel"
|
||||
Documentation = "https://sqlmodel.tiangolo.com"
|
||||
Repository = "https://github.com/tiangolo/sqlmodel"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
[tool.pdm]
|
||||
version = { source = "file", path = "sqlmodel/__init__.py" }
|
||||
distribution = true
|
||||
|
||||
[tool.poetry-version-plugin]
|
||||
source = "init"
|
||||
[tool.pdm.build]
|
||||
source-includes = [
|
||||
"tests/",
|
||||
"docs_src/",
|
||||
"requirements*.txt",
|
||||
"scripts/",
|
||||
"sqlmodel/sql/expression.py.jinja2",
|
||||
]
|
||||
|
||||
[tool.coverage.run]
|
||||
parallel = true
|
||||
|
||||
Reference in New Issue
Block a user