Skip to content

Commit

Permalink
Merge pull request #85 from unum-cloud/main-dev
Browse files Browse the repository at this point in the history
Refactor: Code organization
  • Loading branch information
ashvardanian authored Sep 12, 2023
2 parents 52512f4 + bf78b11 commit 788e51c
Show file tree
Hide file tree
Showing 39 changed files with 909 additions and 835 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
matrix:
os: [ubuntu-20.04, macOS-11, windows-2022]
python-version: ["3.11"]
arch: [x64, arm64]
exclude:
- os: windows-2022
arch: arm64 # Exclude ARM64 for Windows as it's not natively supported

steps:
- uses: actions/checkout@v3
Expand All @@ -39,5 +43,7 @@ jobs:
- name: Add msbuild to PATH
if: matrix.os == 'windows-2022'
uses: microsoft/setup-msbuild@v1
with:
msbuild-architecture: x64
- name: Build locally
run: python -m pip install .
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,14 @@
"stack": "cpp",
"typeindex": "cpp",
"source_location": "cpp",
"span": "cpp"
"span": "cpp",
"__memory": "c",
"filesystem": "c"
},
"cSpell.words": [
"cxxopts",
"endregion",
"epoll",
"fastapi",
"iovecs",
"ndarray",
Expand All @@ -112,6 +115,7 @@
"ucall",
"uring",
"uvicorn",
"Vardanian",
"vectorize"
]
}
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
project(ucall LANGUAGES CXX C)

set(CMAKE_CXX_STANDARD 17)
Expand Down Expand Up @@ -271,9 +271,9 @@ foreach(backend IN LISTS BACKENDS)
math(EXPR substring_length "${last_underscore} + 1")
string(SUBSTRING "${backend}" ${substring_length} -1 backend_name)

set(py_lib_name "py_ucall_${backend_name}")
Python3_add_library(${py_lib_name} src/python.c)
target_include_directories(${py_lib_name} PUBLIC src/ include/)
set(py_lib_name "ucall_${backend_name}_python")
Python3_add_library(${py_lib_name} python/lib.c)
target_include_directories(${py_lib_name} PUBLIC src/ include/ python/)
target_link_libraries(${py_lib_name} PRIVATE ${backend} base64)
set_target_properties(${py_lib_name} PROPERTIES OUTPUT_NAME ${backend_name})
target_compile_definitions(${py_lib_name} PRIVATE UCALL_PYTHON_MODULE_NAME=${backend_name})
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ Up to 100x Faster than FastAPI and gRPC<br/>
<p align="center">
RESTful API • JSON-RPC / HTTPS • HTTP • TCP
<br/>
Linux • MacOS • Windows • WebAssembly
<br/>
<a href="https://unum-cloud.github.io/ucall/c">C 99</a> •
<a href="https://unum-cloud.github.io/ucall/python">Python 3</a> •
<a href="https://unum-cloud.github.io/ucall/javascript">JavaScript</a> 🔜
<br/>
Linux • MacOS • Windows • WebAssembly
</p>

---
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.0
0.7.1
Loading

0 comments on commit 788e51c

Please sign in to comment.