From 12365c8c1a2e89263bc865efd22acd896ca503df Mon Sep 17 00:00:00 2001 From: waterfountain1996 Date: Wed, 1 Nov 2023 16:52:18 +0200 Subject: [PATCH] feat: use hatch as a build system --- pyproject.toml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1abfbff..9900ddb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,24 +1,31 @@ [build-system] -requires = ["setuptools"] -build-backend = "setuptools.build_meta" +requires = ["hatchling"] +build-backend = "hatchling.build" [project] name = "sqlalchemy_window" description = "A SQLAlchemy plugin to add support for PostgreSQL WINDOW clause" readme = "README.md" -license = {text = "MIT"} -authors = [{name = "Roman Necheporenko", email = "roman@waterfountain.one"}] -requires-python = ">=3.7" -dependencies = ["sqlalchemy>=2.0"] -dynamic = ["version"] +license = "MIT" +requires-python = ">=3.8" +authors = [{ name = "Roman Necheporenko", email = "roman@waterfountain.one" }] classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ] +dependencies = ["sqlalchemy>=2.0"] +dynamic = ["version"] + +[project.urls] +Repository = "https://github.com/waterfountain1996/sqlalchemy-window" + +[tool.hatch.version] +path = "src/sqlalchemy_window/__init__.py" -[tool.setuptools.dynamic] -version = {attr = "sqlalchemy_window.__version__"} +[tool.hatch.build] +include = ["src/sqlalchemy_window"] +exclude = ["tests"] [tool.pytest.ini_options] testpaths = ["tests"]