File tree Expand file tree Collapse file tree 5 files changed +26
-4
lines changed Expand file tree Collapse file tree 5 files changed +26
-4
lines changed Original file line number Diff line number Diff line change 1
1
Changelog
2
2
#########
3
3
4
+ **2.5.1 **
5
+ *********
6
+
7
+ Fix custom sql filtering, bring back backward compatibility
8
+ ===========================================================
9
+
10
+ * Fix custom sql filtering support: bring back backward compatibility by `@mahenzon `_ in `#74 <https://github.com/mts-ai/FastAPI-JSONAPI/pull/74 >`_
11
+ * Read version from file by `@mahenzon `_ in `#74 <https://github.com/mts-ai/FastAPI-JSONAPI/pull/74 >`_
12
+
13
+ Authors
14
+ """""""
15
+
16
+ * `@mahenzon `_
17
+
18
+
4
19
**2.5.0 **
5
20
*********
6
21
Original file line number Diff line number Diff line change 19
19
import os
20
20
import sys
21
21
from datetime import datetime
22
+ from pathlib import Path
22
23
23
24
sys .path .insert (0 , os .path .abspath (".." ))
24
25
26
+ BASE_DIR = Path (__file__ ).resolve ().parent .parent
27
+ VERSION_FILEPATH = BASE_DIR / "fastapi_jsonapi" / "VERSION"
28
+ RELEASE_VERSION = VERSION_FILEPATH .read_text ().strip ()
29
+
25
30
# -- General configuration ------------------------------------------------
26
31
27
32
# If your documentation needs a minimal Sphinx version, state it here.
64
69
# built documents.
65
70
#
66
71
# The short X.Y version.
67
- version = "2.5"
72
+ version = "." . join ( RELEASE_VERSION . split ( "." , maxsplit = 2 )[: 2 ])
68
73
# The full version, including alpha/beta/rc tags.
69
- release = "2.5.2"
74
+ release = RELEASE_VERSION
70
75
71
76
# The language for content autogenerated by Sphinx. Refer to documentation
72
77
# for a list of supported languages.
Original file line number Diff line number Diff line change
1
+ 2.5.1
Original file line number Diff line number Diff line change 1
1
"""JSON API utils package."""
2
+ from pathlib import Path
2
3
3
4
from fastapi import FastAPI
4
5
8
9
from fastapi_jsonapi .exceptions .json_api import HTTPException
9
10
from fastapi_jsonapi .querystring import QueryStringManager
10
11
11
- __version__ = "2.5.0"
12
+ __version__ = Path ( __file__ ). parent . joinpath ( "VERSION" ). read_text (). strip ()
12
13
13
14
__all__ = [
14
15
"init" ,
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ packages = [
72
72
73
73
[tool .poetry ]
74
74
name = " fastapi-jsonapi"
75
- version = " 2.5.0 "
75
+ version = " 2.5.1 "
76
76
description = " FastAPI extension to create REST web api according to JSON:API specification"
77
77
authors = [
78
78
" Aleksei Nekrasov <[email protected] >" ,
You can’t perform that action at this time.
0 commit comments