|
1 | 1 | import os |
2 | 2 | from setuptools import setup, find_packages |
3 | 3 |
|
4 | | -__version__ = "0.2.0" |
| 4 | +__version__ = "0.2.1" |
5 | 5 |
|
6 | 6 |
|
7 | 7 | requirements_filepath = os.path.join(os.path.dirname(__name__), "requirements.txt") |
|
24 | 24 | } |
25 | 25 | EXTRAS_REQUIRE.update(extra_packages) |
26 | 26 |
|
| 27 | + |
| 28 | +def get_description(): |
| 29 | + """ |
| 30 | + Read full description from 'README.md' |
| 31 | + """ |
| 32 | + with open('README.md', 'r', encoding='utf-8') as f: |
| 33 | + return f.read() |
| 34 | + |
| 35 | + |
27 | 36 | setup( |
28 | 37 | name="FastAPI-JSONAPI", |
29 | 38 | version=__version__, |
30 | 39 | description="FastAPI extension to create REST web api according to JSON:API 1.0 specification " |
31 | 40 | "with FastAPI, Pydantic and data provider of your choice (SQLAlchemy, Tortoise ORM)", |
| 41 | + long_description=get_description(), |
| 42 | + long_description_content_type='text/markdown', |
32 | 43 | url="https://github.com/mts-ai/FastAPI-JSONAPI", |
33 | 44 | author="Team MTS AI", |
34 | 45 | author_email="a.nekrasov@mts.ru", |
|
41 | 52 | "Programming Language :: Python :: 3.10", |
42 | 53 | "Topic :: Utilities", |
43 | 54 | ], |
44 | | - keywords="pycore mts digital", |
| 55 | + keywords="fastapi jsonapi mts ai", |
45 | 56 | packages=find_packages(exclude=["tests"]), |
46 | 57 | zip_safe=False, |
47 | 58 | platforms="any", |
48 | 59 | install_requires=install_requires, |
49 | 60 | extras_require=EXTRAS_REQUIRE, |
50 | 61 | tests_require=["pytest"], |
51 | | - long_description=readme_filepath, |
52 | | - long_description_content_type='text/markdown', |
53 | 62 | ) |
0 commit comments