File tree Expand file tree Collapse file tree 6 files changed +14
-9
lines changed Expand file tree Collapse file tree 6 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 1- ## 0.0.86
1+ ## 0.0.87
22* Patch various CVEs
3+ * Enable pytest concurrency
4+ * Enable Claude Code
5+ * Use Python 3.12 for testing
6+ * Define version in one place
37
48## 0.0.86
59* Patch various CVEs
Original file line number Diff line number Diff line change @@ -137,14 +137,12 @@ check-version:
137137 scripts/version-sync.sh -c \
138138 -s CHANGELOG.md \
139139 -f preprocessing-pipeline-family.yaml release \
140- -f ${PACKAGE_NAME}/api/app.py release \
141- -f ${PACKAGE_NAME}/api/general.py release
140+ -f prepline_general/api/__version__.py release \
142141
143142# # version-sync: update references to version with most recent version from CHANGELOG.md
144143.PHONY : version-sync
145144version-sync :
146145 scripts/version-sync.sh \
147146 -s CHANGELOG.md \
148147 -f preprocessing-pipeline-family.yaml release \
149- -f ${PACKAGE_NAME} /api/app.py release \
150- -f ${PACKAGE_NAME} /api/general.py release
148+ -f prepline_general/api/__version__.py release \
Original file line number Diff line number Diff line change 1+ __version__ = "0.0.87" # pragma: no cover
Original file line number Diff line number Diff line change 77
88from .general import router as general_router
99from .openapi import set_custom_openapi
10+ from prepline_general .api import __version__ as api_version
1011
1112logger = logging .getLogger ("unstructured_api" )
1213
1314app = FastAPI (
1415 title = "Unstructured Pipeline API" ,
1516 summary = "Partition documents with the Unstructured library" ,
16- version = "0.0.86" ,
17+ version = str ( api_version ) ,
1718 docs_url = "/general/docs" ,
1819 openapi_url = "/general/openapi.json" ,
1920 servers = [
Original file line number Diff line number Diff line change 4141 elements_from_json ,
4242)
4343from unstructured_inference .models .base import UnknownModelException
44+ from prepline_general .api import __version__ as api_version
4445
4546app = FastAPI ()
4647router = APIRouter ()
@@ -600,7 +601,7 @@ def return_content_type(filename: str):
600601
601602
602603@router .get ("/general/v0/general" , include_in_schema = False )
603- @router .get ("/general/v0.0.86 /general" , include_in_schema = False )
604+ @router .get (f "/general/{ api_version } /general" , include_in_schema = False )
604605async def handle_invalid_get_request ():
605606 raise HTTPException (
606607 status_code = status .HTTP_405_METHOD_NOT_ALLOWED , detail = "Only POST requests are supported."
@@ -615,7 +616,7 @@ async def handle_invalid_get_request():
615616 description = "Description" ,
616617 operation_id = "partition_parameters" ,
617618)
618- @router .post ("/general/v0.0.86 /general" , include_in_schema = False )
619+ @router .post (f "/general/{ api_version } /general" , include_in_schema = False )
619620def general_partition (
620621 request : Request ,
621622 # cannot use annotated type here because of a bug described here:
Original file line number Diff line number Diff line change 11name : general
2- version : 0.0.86
2+ version : 0.0.87
You can’t perform that action at this time.
0 commit comments