Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (91 loc) · 2.88 KB
/
Copy pathpyproject.toml
File metadata and controls
105 lines (91 loc) · 2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[build-system]
requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"
[project]
name = "aurora_dsql_django"
dynamic = ["version", "readme"]
description = "Aurora DSQL adapter for Django"
license = "Apache-2.0"
authors = [{name = "Amazon Web Services"}]
requires-python = ">=3.10"
dependencies = [
"aurora-dsql-python-connector>=0.1.0",
]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Framework :: Django :: 5.2",
]
[project.urls]
Repository = "https://github.com/awslabs/aurora-dsql-orms"
Documentation = "https://github.com/awslabs/aurora-dsql-orms/tree/main/python/django"
[dependency-groups]
dev = [
"bandit>=1.9.3",
"django>=4.2",
"flake8",
"hatch-vcs",
"pip>=24.3.1,<27.0.0",
"psycopg",
"psycopg2-binary",
"pytest-cov",
"pytest>=8",
"ruff",
"wheel",
]
docs = [
"Sphinx>=7.1.0,<8.0.0",
"docutils>=0.18.0,<0.21.0",
"guzzle_sphinx_theme~=0.7.11",
]
[tool.uv]
default-groups = ["dev", "docs"]
[tool.hatch.version]
source = "vcs"
tag-pattern = "python/django/v(?P<version>.*)"
raw-options = { root = "../..", git_describe_command = ["git", "describe", "--tags", "--match", "python/django/v*"] }
[tool.hatch.build.hooks.vcs]
version-file = "aurora_dsql_django/_version.py"
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "README.md"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
pattern = '\[([^\]]+)\]\((?!https?://)([^)]+)\)'
replacement = '[\1](https://github.com/awslabs/aurora-dsql-orms/blob/python/django/v$HFPR_VERSION/python/django/\2)'
[tool.hatch.build.targets.wheel]
packages = ["aurora_dsql_django"]
[tool.ruff]
indent-width = 4
target-version = "py310"
# Aligns with flake8 check in CI/CD workflow.
line-length = 127
exclude = [
".git",
".venv",
"build",
"dist",
"aurora_dsql_django/_version.py",
]
[tool.ruff.lint]
extend-select = [
"E", # https://docs.astral.sh/ruff/rules/#error-e
"F", # https://docs.astral.sh/ruff/rules/#pyflakes-f
"FA", # https://docs.astral.sh/ruff/rules/#flake8-future-annotations-fa
"I", # https://docs.astral.sh/ruff/rules/#isort-i
"RUF100", # https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
"UP", # https://docs.astral.sh/ruff/rules/#pyupgrade-up
"W", # https://docs.astral.sh/ruff/rules/#warning-w
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"