Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@

### 0.17.0

- feat: Add support for Postgres sqlbody functions.

## 0.16

### 0.16.6

- fix: postgresql parsing of existing function defaults.

### 0.16.5

- feat: Add support for Postgres sqlbody functions.

### 0.16.4

- fix: Handle unnamed parameters during normalization and CREATE statements.
Expand Down
124 changes: 47 additions & 77 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,39 +1,33 @@
[project]
name = "sqlalchemy-declarative-extensions"
version = "0.16.5"
authors = [
{name = "Dan Cardin", email = "[email protected]"},
]
version = "0.16.6"
authors = [{ name = "Dan Cardin", email = "[email protected]" }]
description = "Library to declare additional kinds of objects not natively supported by SQLAlchemy/Alembic."
license = {file = "LICENSE"}
license = { file = "LICENSE" }
readme = 'README.md'

keywords = [
"sqlalchemy",
"alembic",
"declarative",

"mysql",
"postgresql",
"snowflake",
"sqlite",

"schema",
"role",
"grant",
"view",
"function",
"trigger",
]
classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
"sqlalchemy",
"alembic",
"declarative",

"mysql",
"postgresql",
"snowflake",
"sqlite",

"schema",
"role",
"grant",
"view",
"function",
"trigger",
]
classifiers = ["Topic :: Software Development :: Libraries :: Python Modules"]

requires-python = ">=3.8,<4"

dependencies = [
"sqlalchemy >= 1.3",
]
dependencies = ["sqlalchemy >= 1.3"]

[project.urls]
documentation = "https://sqlalchemy-declarative-extensions.readthedocs.io/en/latest/"
Expand All @@ -47,23 +41,23 @@ parse = ["sqlglot"]

[dependency-groups]
dev = [
"alembic-utils >= 0.8.1",
"coverage >= 5",
"mypy == 1.8.0",
"pymysql[rsa]",
"pytest >= 7",
"pytest-alembic",
"pytest-mock-resources[docker] >= 2.6.13",
"pytest-xdist",
"ruff >= 0.5.0",
"sqlalchemy[mypy] >= 1.4",
"psycopg[binary]",
"psycopg2-binary",

# snowflake
"fakesnow >= 0.9.21; python_version >= '3.9'",
"snowflake-connector-python >= 3.7; python_version >= '3.9'",
"snowflake-sqlalchemy >= 1.6.0; python_version >= '3.9'",
"alembic-utils >= 0.8.1",
"coverage >= 5",
"mypy == 1.8.0",
"pymysql[rsa]",
"pytest >= 7",
"pytest-alembic",
"pytest-mock-resources[docker] >= 2.6.13",
"pytest-xdist",
"ruff >= 0.5.0",
"sqlalchemy[mypy] >= 1.4",
"psycopg[binary]",
"psycopg2-binary",

# snowflake
"fakesnow >= 0.9.21; python_version >= '3.9'",
"snowflake-connector-python >= 3.7; python_version >= '3.9'",
"snowflake-sqlalchemy >= 1.6.0; python_version >= '3.9'",
]

[tool.uv]
Expand All @@ -81,11 +75,7 @@ exclude = "tests/examples"
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING:", "if __name__ == .__main__.:"]

[tool.coverage.run]
include = ["src/*"]
Expand All @@ -97,22 +87,16 @@ doctest_optionflags = "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ELLIPSIS"
addopts = "--doctest-modules -vv --ff --strict-markers"
norecursedirs = ".* build dist *.egg bin tests/examples --junitxml=junit.xml"
filterwarnings = [
'error',
'ignore:invalid escape sequence.*',
'ignore:distutils Version classes are deprecated. Use packaging.version instead.:DeprecationWarning',
'ignore:_SixMetaPathImporter.find_spec.*:ImportWarning',
'ignore:`ignore_views` is deprecated, use `ignore` instead:DeprecationWarning',
'ignore:The GenericFunction.*:sqlalchemy.exc.SAWarning',
'ignore:Did not recognize type.*:sqlalchemy.exc.SAWarning',
'error',
'ignore:invalid escape sequence.*',
'ignore:distutils Version classes are deprecated. Use packaging.version instead.:DeprecationWarning',
'ignore:_SixMetaPathImporter.find_spec.*:ImportWarning',
'ignore:`ignore_views` is deprecated, use `ignore` instead:DeprecationWarning',
'ignore:The GenericFunction.*:sqlalchemy.exc.SAWarning',
'ignore:Did not recognize type.*:sqlalchemy.exc.SAWarning',
]
pytester_example_dir = "tests/examples"
markers = [
'grant',
'schema',
'role',
'row',
'alembic',
]
markers = ['grant', 'schema', 'role', 'row', 'alembic']
pmr_multiprocess_safe = true
log_level = 'WARNING'
log_cli_level = 'WARNING'
Expand All @@ -125,21 +109,7 @@ target-version = "py37"
select = ["C", "D", "E", "F", "I", "N", "Q", "RET", "RUF", "S", "T", "UP", "YTT"]
ignore = ["C901", "E501", "S101"]
extend-select = ["D"]
extend-ignore = [
"D1",

"D203",
"D204",
"D213",
"D215",
"D400",
"D404",
"D406",
"D407",
"D408",
"D409",
"D413",
]
extend-ignore = ["D1", "D203", "D204", "D213", "D215", "D400", "D404", "D406", "D407", "D408", "D409", "D413"]

[tool.ruff.lint.isort]
known-first-party = ["sqlalchemy_declarative_extensions", "tests"]
Expand Down
Loading