Skip to content

Commit c918b5f

Browse files
committed
Bump to 2.5.1, update changelog, read version from file
1 parent 5a611bc commit c918b5f

File tree

5 files changed

+26
-4
lines changed

5 files changed

+26
-4
lines changed

docs/changelog.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
Changelog
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

docs/conf.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@
1919
import os
2020
import sys
2121
from datetime import datetime
22+
from pathlib import Path
2223

2324
sys.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.
@@ -64,9 +69,9 @@
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.

fastapi_jsonapi/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.5.1

fastapi_jsonapi/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""JSON API utils package."""
2+
from pathlib import Path
23

34
from fastapi import FastAPI
45

@@ -8,7 +9,7 @@
89
from fastapi_jsonapi.exceptions.json_api import HTTPException
910
from 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",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ packages = [
7272

7373
[tool.poetry]
7474
name = "fastapi-jsonapi"
75-
version = "2.5.0"
75+
version = "2.5.1"
7676
description = "FastAPI extension to create REST web api according to JSON:API specification"
7777
authors = [
7878
"Aleksei Nekrasov <[email protected]>",

0 commit comments

Comments
 (0)