From fcf2d390d12482ab4d5391ab055f696238ad4828 Mon Sep 17 00:00:00 2001 From: VoVcHiC Date: Fri, 7 Feb 2025 02:57:54 +0300 Subject: [PATCH] migrate to uv --- .gitignore | 2 +- README.md | 1 + pyproject.toml | 66 ++++++++++++++++++++++---------------------------- 3 files changed, 31 insertions(+), 38 deletions(-) diff --git a/.gitignore b/.gitignore index 31b3ba4..bb330ca 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,7 @@ __pycache__ .mypy_cache .ruff_cache _build/ -poetry.lock +*.lock .env .venv /tests diff --git a/README.md b/README.md index 8cb2ff3..4eb9fc3 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ [![Documentation Status](https://readthedocs.org/projects/aiosend/badge/?version=latest)](https://aiosend.readthedocs.io/en/latest/?badge=latest) [![Pydantic v2](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/pydantic/pydantic/main/docs/badge/v2.json)](https://pydantic.dev) [![Aiohttp](https://img.shields.io/badge/aiohttp-v3-2c5bb4?logo=aiohttp)](https://docs.aiohttp.org/en/stable/) +[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv) [![Code linter: ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/charliermarsh/ruff) [![Checked with mypy](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/vovchic17/static/main/src/badges/mypy.json)](https://mypy-lang.org/) diff --git a/pyproject.toml b/pyproject.toml index 14e90bb..5bc336a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,39 +1,33 @@ -[tool.poetry] +[project] name = "aiosend" -version = "2.0.2" description = "sync & async Crypto Pay API client." -authors = ["VoVcHiC "] +authors = [{ name = "VoVcHiC", email = "tsvetkovvova17@gmail.com" }] license = "MIT" +requires-python = ">=3.10" +classifiers = [ + "License :: OSI Approved :: MIT License", + "Programming Language :: Python", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3 :: Only", + "Topic :: Software Development :: Quality Assurance", + "Topic :: Software Development :: Libraries", +] readme = "README.md" -repository = "https://github.com/vovchic17/" -documentation = "https://aiosend.rtfd.io/en/latest/" -keywords = [ - "crypto pay", - "CryptoBot", - "Crypto Bot", - "Crypto Pay API", - "cryptopayapi", - "cryptobot", - "CryptoPayAPI", - "crypto pay api", +dependencies = [ + "aiohttp>=3.9.0", + "certifi>=2023.7.22", + "magic-filter>=1.0.12", + "pydantic>=2.4.1", ] +dynamic = ["version"] -[tool.poetry.dependencies] -python = "^3.10" -pydantic = "^2.4" -aiohttp = "^3.9" - -furo = { version = "^2024.0.0", optional = true } -sphinx-autodoc-typehints = { version = "^2.3.0", optional = true } -sphinx-copybutton = { version = "^0.5.2", optional = true } -sphinxext-opengraph = { version = "^0.9.1", optional = true } -matplotlib = { version = "^3.9.2", optional = true } -fastapi = { version = "^0.115.0", extras = ["standard"], optional = true } -flask = { version = "^3.0.3", extras = ["async"], optional = true } -certifi = "^2024.8.30" -magic-filter = "^1.0.12" +[tool.hatch.version] +path = "aiosend/__meta__.py" -[tool.poetry.extras] +[project.optional-dependencies] docs = [ "furo", "sphinx-autodoc-typehints", @@ -41,14 +35,12 @@ docs = [ "sphinxext-opengraph", "matplotlib", ] - -fastapi = ["fastapi"] - +fastapi = ["fastapi[standard]"] flask = ["flask"] -[tool.poetry.group.dev.dependencies] -ruff = "^0.7.0" -mypy = "^1.13.0" +[project.urls] +Repository = "https://github.com/vovchic17/aiosend" +Documentation = "https://aiosend.rtfd.io/" [tool.ruff] line-length = 79 @@ -94,5 +86,5 @@ exclude = ["tests", "docs", "examples"] python_version = "3.10" [build-system] -requires = ["poetry-core"] -build-backend = "poetry.core.masonry.api" +requires = ["hatchling"] +build-backend = "hatchling.build"