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 11Changelog
22#########
33
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+
419**2.5.0 **
520*********
621
Original file line number Diff line number Diff line change 1919import os
2020import sys
2121from datetime import datetime
22+ from pathlib import Path
2223
2324sys .path .insert (0 , os .path .abspath (".." ))
2425
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+
2530# -- General configuration ------------------------------------------------
2631
2732# If your documentation needs a minimal Sphinx version, state it here.
6469# built documents.
6570#
6671# The short X.Y version.
67- version = "2.5"
72+ version = "." . join ( RELEASE_VERSION . split ( "." , maxsplit = 2 )[: 2 ])
6873# The full version, including alpha/beta/rc tags.
69- release = "2.5.2"
74+ release = RELEASE_VERSION
7075
7176# The language for content autogenerated by Sphinx. Refer to documentation
7277# 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 11"""JSON API utils package."""
2+ from pathlib import Path
23
34from fastapi import FastAPI
45
89from fastapi_jsonapi .exceptions .json_api import HTTPException
910from fastapi_jsonapi .querystring import QueryStringManager
1011
11- __version__ = "2.5.0"
12+ __version__ = Path ( __file__ ). parent . joinpath ( "VERSION" ). read_text (). strip ()
1213
1314__all__ = [
1415 "init" ,
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ packages = [
7272
7373[tool .poetry ]
7474name = " fastapi-jsonapi"
75- version = " 2.5.0 "
75+ version = " 2.5.1 "
7676description = " FastAPI extension to create REST web api according to JSON:API specification"
7777authors = [
7878 " Aleksei Nekrasov <nekrasov.aleks@mail.ru>" ,
You can’t perform that action at this time.
0 commit comments