Skip to content

Commit 51cb807

Browse files
committed
version: 0.4.5
- Bump version to 0.4.5 - Added fallback for README.md in library setup.py for standalone package builds
1 parent bf5763f commit 51cb807

4 files changed

Lines changed: 22 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919

2020
*
2121

22+
## [0.4.5] - 2026-01-08
23+
24+
### Fixed
25+
26+
* Added fallback for README.md in library setup.py for standalone package builds
27+
2228
## [0.4.4] - 2026-01-08
2329

2430
### Added

lib/setup.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,20 @@
3131
import os
3232
import setuptools
3333

34+
# README.md file is located in the root of the project
35+
# and is not included in the library, so we need to check
36+
# if it exists and if it does not mock the long description
37+
readme_path = os.path.join(os.path.dirname(__file__), "../README.md")
38+
if os.path.exists(readme_path):
39+
open(readme_path, "rb").read().decode("utf-8"),
40+
long_description_content_type = ("text/markdown",)
41+
else:
42+
long_description = "Pushi WebSocket"
43+
long_description_content_type = "text/plain"
44+
3445
setuptools.setup(
3546
name="pushi",
36-
version="0.4.4",
47+
version="0.4.5",
3748
author="Hive Solutions Lda.",
3849
author_email="development@hive.pt",
3950
description="Pushi System API",
@@ -65,8 +76,6 @@
6576
"Programming Language :: Python :: 3.11",
6677
"Programming Language :: Python :: 3.12",
6778
],
68-
long_description=open(os.path.join(os.path.dirname(__file__), "../README.md"), "rb")
69-
.read()
70-
.decode("utf-8"),
71-
long_description_content_type="text/markdown",
79+
long_description=long_description,
80+
long_description_content_type=long_description_content_type,
7281
)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
setuptools.setup(
3535
name="pushi-service",
36-
version="0.4.4",
36+
version="0.4.5",
3737
author="Hive Solutions Lda.",
3838
author_email="development@hive.pt",
3939
description="Pushi System",

src/pushi/app/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def on_logout(self):
7272
del self.session["app_secret"]
7373

7474
def _version(self):
75-
return "0.4.4"
75+
return "0.4.5"
7676

7777
def _description(self):
7878
return "Pushi"

0 commit comments

Comments
 (0)