Skip to content

Commit d5ab822

Browse files
committed
add PDM package manager support
1 parent 31f4ab2 commit d5ab822

File tree

3 files changed

+56
-9
lines changed

3 files changed

+56
-9
lines changed

.pdm.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[python]
2+
path = "/home/smaximov/.asdf/shims/python"

__pypackages__/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

pyproject.toml

Lines changed: 52 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,33 @@ isort = "^5.9.3"
5151
async_generator = {version = "*", python = "~3.6"}
5252
async-exit-stack = {version = "*", python = "~3.6"}
5353

54+
55+
[tool.pdm]
56+
allow_prereleases = true
57+
[tool.pdm.dev-dependencies]
58+
dev = [
59+
"pytest<7.0.0,>=6.2.4",
60+
"mypy==0.930",
61+
"flake8<4.0.0,>=3.9.2",
62+
"black<22.0.0,>=21.5-beta.1; python_version >= \"3.7\" and python_version < \"4.0\"",
63+
"mkdocs<2.0.0,>=1.2.1",
64+
"mkdocs-material<9.0.0,>=8.1.4",
65+
"mdx-include<2.0.0,>=1.4.1",
66+
"coverage[toml]<6.0,>=5.5",
67+
"fastapi<1.0.0,>=0.68.0",
68+
"requests<3.0.0,>=2.26.0",
69+
"autoflake<2.0,>=1.4",
70+
"isort<6.0.0,>=5.9.3",
71+
"async-generator; python_version >= \"3.6\" and python_version < \"4.0\"",
72+
"async-exit-stack; python_version >= \"3.6\" and python_version < \"4.0\"",
73+
]
74+
75+
[tool.pdm.build]
76+
includes = []
77+
excludes = ["sqlmodel/sql/expression.py.jinja2"]
5478
[build-system]
55-
requires = ["poetry-core"]
56-
build-backend = "poetry.core.masonry.api"
79+
requires = ["pdm-pep517>=1.0.0"]
80+
build-backend = "pdm.pep517.api"
5781

5882
[tool.poetry-version-plugin]
5983
source = "init"
@@ -85,20 +109,39 @@ skip_glob = [
85109
[tool.mypy]
86110
# --strict
87111
disallow_any_generics = true
88-
disallow_subclassing_any = true
89-
disallow_untyped_calls = true
112+
disallow_subclassing_any = true
113+
disallow_untyped_calls = true
90114
disallow_untyped_defs = true
91-
disallow_incomplete_defs = true
92-
check_untyped_defs = true
93-
disallow_untyped_decorators = true
115+
disallow_incomplete_defs = true
116+
check_untyped_defs = true
117+
disallow_untyped_decorators = true
94118
no_implicit_optional = true
95-
warn_redundant_casts = true
119+
warn_redundant_casts = true
96120
warn_unused_ignores = true
97-
warn_return_any = true
121+
warn_return_any = true
98122
implicit_reexport = false
99123
strict_equality = true
100124
# --strict end
101125

102126
[[tool.mypy.overrides]]
103127
module = "sqlmodel.sql.expression"
104128
warn_unused_ignores = false
129+
130+
[project]
131+
name = "sqlmodel"
132+
version = "0"
133+
description = "SQLModel, SQL databases in Python, designed for simplicity, compatibility, and robustness."
134+
authors = [
135+
{name = "Sergii Maksymov", email = "[email protected]"},
136+
{name = "Sebastián Ramírez",email = "[email protected]"}
137+
]
138+
dependencies = ["SQLAlchemy<1.5.0,>=1.4.17", "pydantic<2.0.0,>=1.8.2", "sqlalchemy2-stubs"]
139+
requires-python = ">=3.6.1,<4.0"
140+
license = {text = "MIT"}
141+
readme = "README.md"
142+
classifiers = ["Development Status :: 4 - Beta", "Framework :: AsyncIO", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Topic :: Database", "Topic :: Database :: Database Engines/Servers", "Topic :: Internet", "Topic :: Internet :: WWW/HTTP :: HTTP Servers", "Topic :: Internet :: WWW/HTTP", "Typing :: Typed"]
143+
144+
[project.urls]
145+
homepage = "https://github.com/tiangolo/sqlmodel"
146+
repository = "https://github.com/tiangolo/sqlmodel"
147+
documentation = "https://sqlmodel.tiangolo.com"

0 commit comments

Comments
 (0)