File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 3131import os
3232import 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+
3445setuptools .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" ,
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)
Original file line number Diff line number Diff line change 3333
3434setuptools .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" ,
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments