From 636cd89f0834e8f46018f7fb91708cbb852ccc4a Mon Sep 17 00:00:00 2001 From: Mario Hernandez Date: Sat, 21 Sep 2024 04:40:33 -0300 Subject: [PATCH] poetry file --- pyproject-poetry.toml => pyproject-hatch.toml | 63 ++++++++++--------- pyproject.toml | 63 +++++++++---------- 2 files changed, 63 insertions(+), 63 deletions(-) rename pyproject-poetry.toml => pyproject-hatch.toml (53%) diff --git a/pyproject-poetry.toml b/pyproject-hatch.toml similarity index 53% rename from pyproject-poetry.toml rename to pyproject-hatch.toml index 92b84f2..75f21ae 100644 --- a/pyproject-poetry.toml +++ b/pyproject-hatch.toml @@ -1,12 +1,15 @@ -[tool.poetry] +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] name = "merchants" version = "2024.9.16" description = "A unified payment processing toolkit for Starlette/FastAPI applications" -authors = ["Mario Hernandez "] +authors = [{ name = "Mario Hernandez", email = "mariofix@proton.me" }] readme = "README.md" -license = "MIT" -repository = "https://github.com/mariofix/merchants" -homepage = "https://mariofix.github.io/merchants" +license = { file = "LICENSE" } +requires-python = ">=3.10" keywords = [ "payment", "psp", @@ -18,7 +21,6 @@ keywords = [ "fastapi", "starlette", ] -packages = [{ include = "merchants" }, { include = "alembic" }] classifiers = [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.10", @@ -27,33 +29,34 @@ classifiers = [ "Intended Audience :: Developers", "Topic :: Software Development :: Libraries :: Python Modules", ] +dependencies = [ + "thankyou>=0.0.3", + "pendulum>=3.0.0", + "httpx>=0.27.0", + "python-slugify>=8.0.4", + "alembic>=1.13.2", + "sqlalchemy>=2.0.35", + "sqlalchemy-utils>=0.41.2", + "fastapi[all]>=0.114.2", + "starlette-admin>=0.14.1", +] -[tool.poetry.dependencies] -python = "^3.10" -thankyou = "^0.0.3" -pendulum = "^3.0.0" -httpx = "^0.27.0" -python-slugify = "^8.0.4" - -alembic = "^1.13.2" -sqlalchemy = "^2.0.35" -sqlalchemy-utils = "^0.41.2" - -fastapi = { extras = ["all"], version = "^0.114.2" } -starlette-admin = { version = "^0.14.1" } -pytest-asyncio = "^0.24.0" - +[project.optional-dependencies] +dev = [ + "pytest>=8.3.3", + "coverage>=7.6.1", + "black>=24.8.0", + "pre-commit>=3.8.0", + "rich>=13.7.1", + "pytest-asyncio>=0.24.0", +] -[tool.poetry.group.dev.dependencies] -pytest = "^8.3.3" -coverage = "^7.6.1" -black = "^24.8.0" -pre-commit = "^3.8.0" -rich = "^13.7.1" +[project.urls] +Homepage = "https://mariofix.github.io/merchants" +Repository = "https://github.com/mariofix/merchants" -[build-system] -requires = ["poetry-core"] -build-backend = "poetry.core.masonry.api" +[tool.hatch.build.targets.wheel] +packages = ["merchants", "alembic"] [tool.pytest.ini_options] diff --git a/pyproject.toml b/pyproject.toml index 75f21ae..92b84f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,15 +1,12 @@ -[build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" - -[project] +[tool.poetry] name = "merchants" version = "2024.9.16" description = "A unified payment processing toolkit for Starlette/FastAPI applications" -authors = [{ name = "Mario Hernandez", email = "mariofix@proton.me" }] +authors = ["Mario Hernandez "] readme = "README.md" -license = { file = "LICENSE" } -requires-python = ">=3.10" +license = "MIT" +repository = "https://github.com/mariofix/merchants" +homepage = "https://mariofix.github.io/merchants" keywords = [ "payment", "psp", @@ -21,6 +18,7 @@ keywords = [ "fastapi", "starlette", ] +packages = [{ include = "merchants" }, { include = "alembic" }] classifiers = [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.10", @@ -29,34 +27,33 @@ classifiers = [ "Intended Audience :: Developers", "Topic :: Software Development :: Libraries :: Python Modules", ] -dependencies = [ - "thankyou>=0.0.3", - "pendulum>=3.0.0", - "httpx>=0.27.0", - "python-slugify>=8.0.4", - "alembic>=1.13.2", - "sqlalchemy>=2.0.35", - "sqlalchemy-utils>=0.41.2", - "fastapi[all]>=0.114.2", - "starlette-admin>=0.14.1", -] -[project.optional-dependencies] -dev = [ - "pytest>=8.3.3", - "coverage>=7.6.1", - "black>=24.8.0", - "pre-commit>=3.8.0", - "rich>=13.7.1", - "pytest-asyncio>=0.24.0", -] +[tool.poetry.dependencies] +python = "^3.10" +thankyou = "^0.0.3" +pendulum = "^3.0.0" +httpx = "^0.27.0" +python-slugify = "^8.0.4" -[project.urls] -Homepage = "https://mariofix.github.io/merchants" -Repository = "https://github.com/mariofix/merchants" +alembic = "^1.13.2" +sqlalchemy = "^2.0.35" +sqlalchemy-utils = "^0.41.2" -[tool.hatch.build.targets.wheel] -packages = ["merchants", "alembic"] +fastapi = { extras = ["all"], version = "^0.114.2" } +starlette-admin = { version = "^0.14.1" } +pytest-asyncio = "^0.24.0" + + +[tool.poetry.group.dev.dependencies] +pytest = "^8.3.3" +coverage = "^7.6.1" +black = "^24.8.0" +pre-commit = "^3.8.0" +rich = "^13.7.1" + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" [tool.pytest.ini_options]