Skip to content

Commit d2e03c6

Browse files
committed
configure build using hatchling
1 parent ea748bc commit d2e03c6

File tree

3 files changed

+76
-77
lines changed

3 files changed

+76
-77
lines changed

pyproject.toml

Lines changed: 76 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,81 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "FastAPI-JSONAPI"
7+
dynamic = ["version"]
8+
description = "FastAPI extension to create REST web api according to JSON:API 1.0 specification with FastAPI, Pydantic and data provider of your choice (SQLAlchemy, Tortoise ORM)"
9+
readme = "README.md"
10+
license = "MIT"
11+
authors = [
12+
{ name = "Aleksey Nekrasov", email = "[email protected]" },
13+
{ name = "Suren Khorenyan", email = "[email protected]" },
14+
]
15+
keywords = [
16+
"fastapi",
17+
"jsonapi",
18+
"json:api",
19+
]
20+
classifiers = [
21+
"Development Status :: 5 - Production/Stable",
22+
"Operating System :: OS Independent",
23+
"Programming Language :: Python :: 3.9",
24+
"Programming Language :: Python :: 3.10",
25+
"Programming Language :: Python :: 3.11",
26+
"Topic :: Utilities",
27+
]
28+
dependencies = [
29+
"fastapi>=0.79.0",
30+
"greenlet>=1.1.2",
31+
"pydantic>=1.9.1",
32+
"simplejson>=3.17.6",
33+
"SQLAlchemy>=1.4.39,<2.0.0",
34+
"tortoise-orm>=0.19.2",
35+
"uvicorn>=0.18.2",
36+
]
37+
38+
[project.optional-dependencies]
39+
all = [
40+
"pytest",
41+
"sphinx",
42+
"SQLAlchemy>=1.4.39,<2.0.0",
43+
"tortoise-orm>=0.19.2",
44+
]
45+
docs = [
46+
"sphinx",
47+
]
48+
sqlalchemy = [
49+
"SQLAlchemy>=1.4.39,<2.0.0",
50+
]
51+
tests = [
52+
"pytest",
53+
]
54+
tortoise-orm = [
55+
"tortoise-orm>=0.19.2",
56+
]
57+
58+
[project.urls]
59+
Documentation = "https://fastapi-jsonapi.readthedocs.io/"
60+
Source = "https://github.com/mts-ai/FastAPI-JSONAPI"
61+
62+
[tool.hatch.version]
63+
path = "fastapi_jsonapi/__init__.py"
64+
65+
[tool.hatch.build.targets.sdist]
66+
include = [
67+
"/fastapi_jsonapi",
68+
"/examples",
69+
]
70+
71+
[tool.hatch.build.targets.wheel]
72+
packages = [
73+
"fastapi_jsonapi"
74+
]
75+
176
[tool.poetry]
277
name = "fastapi-jsonapi"
3-
version = "1.0.0"
78+
version = "1.0.1"
479
description = "FastAPI extension to create REST web api according to JSON:API specification"
580
authors = [
681
"Aleksei Nekrasov <[email protected]>",
@@ -50,11 +125,6 @@ sqla = ["sqlalchemy"]
50125
tortoise = ["tortoise-orm"]
51126
databases = ["sqlalchemy", "tortoise-orm"]
52127

53-
[build-system]
54-
requires = ["poetry-core"]
55-
build-backend = "poetry.core.masonry.api"
56-
57-
58128
[tool.black]
59129
line-length = 119
60130
target-version = ["py38"]

setup.cfg

Lines changed: 0 additions & 10 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)