Skip to content

Commit 478381f

Browse files
committed
fix setup.py
1 parent a9da626 commit 478381f

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ of real life projects with legacy data and multiple data storages.
99
![docs/img/schema.png](docs/img/schema.png)
1010

1111
## Install
12+
1213
```bash
1314
pip install FastAPI-JSONAPI
1415
```

Diff for: docs/changelog.rst

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
Changelog
22
*********
33

4+
**0.2.1**
5+
=========
6+
7+
Enhancements and bug fixes
8+
==========================
9+
10+
* Fix setup.py for docs in PYPI - `@znbiz`_
11+
412

513
**0.2.0**
614
=========
715

816
Enhancements and bug fixes
917
==========================
1018

11-
* Rename `from fastapi_rest_jsonapi import...` to `from fastapi_jsonapi import ...`
12-
* Add documentation
19+
* Rename `from fastapi_rest_jsonapi import...` to `from fastapi_jsonapi import ...` - `@znbiz`_
20+
* Add documentation - `@znbiz`_
21+
1322

1423
.. _`@znbiz`: https://github.com/znbiz

Diff for: setup.py

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
from setuptools import setup, find_packages
33

4-
__version__ = "0.2.0"
4+
__version__ = "0.2.1"
55

66

77
requirements_filepath = os.path.join(os.path.dirname(__name__), "requirements.txt")
@@ -24,11 +24,22 @@
2424
}
2525
EXTRAS_REQUIRE.update(extra_packages)
2626

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+
2736
setup(
2837
name="FastAPI-JSONAPI",
2938
version=__version__,
3039
description="FastAPI extension to create REST web api according to JSON:API 1.0 specification "
3140
"with FastAPI, Pydantic and data provider of your choice (SQLAlchemy, Tortoise ORM)",
41+
long_description=get_description(),
42+
long_description_content_type='text/markdown',
3243
url="https://github.com/mts-ai/FastAPI-JSONAPI",
3344
author="Team MTS AI",
3445
author_email="[email protected]",
@@ -41,13 +52,11 @@
4152
"Programming Language :: Python :: 3.10",
4253
"Topic :: Utilities",
4354
],
44-
keywords="pycore mts digital",
55+
keywords="fastapi jsonapi mts ai",
4556
packages=find_packages(exclude=["tests"]),
4657
zip_safe=False,
4758
platforms="any",
4859
install_requires=install_requires,
4960
extras_require=EXTRAS_REQUIRE,
5061
tests_require=["pytest"],
51-
long_description=readme_filepath,
52-
long_description_content_type='text/markdown',
5362
)

0 commit comments

Comments
 (0)