Skip to content

Commit edf6434

Browse files
authored
Update version info to 0.6.0.dev1 (#2441)
### What problem does this PR solve? Update version info to 0.6.0.dev1 ### Type of change - [x] Refactoring - [x] Python SDK impacted, Need to update PyPI Signed-off-by: Jin Hai <[email protected]>
1 parent b8477cb commit edf6434

File tree

85 files changed

+97
-95
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+97
-95
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.28.1)
22

3-
project(infinity VERSION 0.5.2)
3+
project(infinity VERSION 0.6.0)
44

55
if(NOT CMAKE_GENERATOR STREQUAL "Ninja")
66
message(FATAL_ERROR "This project requires the Ninja generator. Refers to https://cmake.org/cmake/help/latest/manual/cmake-cxxmodules.7.html#generator-support")

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Supports a wide range of data types including strings, numerics, vectors, and mo
6060
Infinity supports two working modes, embedded mode and client-server mode. Infinity's embedded mode enables you to quickly embed Infinity into your Python applications, without the need to connect to a separate backend server. The following shows how to operate in embedded mode:
6161

6262
```bash
63-
pip install infinity-embedded-sdk==0.5.2
63+
pip install infinity-embedded-sdk==0.6.0.dev1
6464
```
6565
Use Infinity to conduct a dense vector search:
6666
```python

benchmark/remote_infinity/remote_query_benchmark.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct InfinityClient {
5151
transport->open();
5252
CommonResponse response;
5353
ConnectRequest request;
54-
request.__set_client_version(27); // 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 and 0.5.2
54+
request.__set_client_version(28); // 0.6.0.dev1
5555
client->Connect(response, request);
5656
session_id = response.session_id;
5757
}

client/cpp/infinity_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Client Client::Connect(const std::string &ip_address, uint16_t port) {
2525
transport->open();
2626
CommonResponse response;
2727
ConnectRequest request;
28-
request.__set_client_version(27); // 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 and 0.5.2
28+
request.__set_client_version(28); // 0.6.0.dev1
2929
client->Connect(response, request);
3030
return {socket, transport, protocol, std::move(client), response.session_id};
3131
}

conf/follower.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44
server_mode = "admin" # "standalone"
55

conf/infinity_conf.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44

55
[network]

conf/infinity_minio_conf.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44

55
[network]

conf/leader.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44
server_mode = "admin" # "standalone"
55

conf/learner.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44
server_mode = "admin" # "standalone"
55

conf/learner2.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44
server_mode = "admin" # "standalone"
55

conf/mock_follower.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44
server_mode = "admin"
55

conf/mock_leader.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44
server_mode = "admin"
55

conf/pytest_embedded_infinity_conf.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44

55
[network]

conf/pytest_parallel_continuous_conf.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44

55
[network]

conf/pytest_parallel_infinity_conf.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44

55
[network]

conf/pytest_parallel_infinity_follower.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44
server_mode = "admin" # "standalone"
55

conf/pytest_parallel_infinity_leader.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44
server_mode = "admin" # "standalone"
55

conf/pytest_parallel_infinity_minio.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44
server_mode = "standalone"
55

conf/pytest_parallel_infinity_vfs_off.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44

55
[network]

docs/getstarted/build_from_source.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ cmake --build . -t test_main
264264

265265
2. Install Python sdk of infinity:
266266
```bash
267-
pip install infinity-sdk==0.5.2
267+
pip install infinity-sdk==0.6.0.dev1
268268
```
269269

270270
3. Run the functional tests:
@@ -286,7 +286,7 @@ cmake --build . -t test_main
286286

287287
2. Install Python sdk of infinity:
288288
```bash
289-
pip install infinity-sdk==0.5.2
289+
pip install infinity-sdk==0.6.0.dev1
290290
```
291291

292292
3. Run the functional tests:
@@ -309,7 +309,7 @@ cmake --build . -t test_main
309309

310310
2. Install Python sdk of infinity:
311311
```bash
312-
pip install infinity-sdk==0.5.2
312+
pip install infinity-sdk==0.6.0.dev1
313313
```
314314

315315
3. Run the functional tests:

docs/getstarted/deploy_infinity_server.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This approach allows you to call Infinity as a Python module. To deploy Infinity
3434
### Install Infinity as a module
3535

3636
```
37-
pip install infinity-embedded-sdk==0.5.2
37+
pip install infinity-embedded-sdk==0.6.0.dev1
3838
```
3939

4040
### Create an Infinity object
@@ -101,7 +101,7 @@ If you are on Windows 10+, you must enable WSL or WSL2 to deploy Infinity using
101101
### Install Infinity client
102102

103103
```
104-
pip install infinity-sdk==0.5.2
104+
pip install infinity-sdk==0.6.0.dev1
105105
```
106106

107107
### Run a vector search
@@ -151,7 +151,7 @@ This section provides instructions on deploying Infinity using binary package on
151151

152152
Fedora/RHEL/CentOS/OpenSUSE
153153
```bash
154-
sudo rpm -i infinity-0.5.2-x86_64.rpm
154+
sudo rpm -i infinity-0.6.0.dev1-x86_64.rpm
155155
```
156156

157157
```bash
@@ -162,7 +162,7 @@ sudo systemctl start infinity
162162
<TabItem value="ubuntu">
163163

164164
```bash
165-
sudo dpkg -i infinity-0.5.2-x86_64.deb
165+
sudo dpkg -i infinity-0.6.0.dev1-x86_64.deb
166166
```
167167

168168
```bash
@@ -175,7 +175,7 @@ sudo systemctl start infinity
175175
### Install Infinity client
176176

177177
```
178-
pip install infinity-sdk==0.5.2
178+
pip install infinity-sdk==0.6.0.dev1
179179
```
180180

181181
### Run a vector search

docs/getstarted/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ If you wish to embed Infinity into your Python application without the need for
2121

2222
1. Install the Infinity-embedded SDK:
2323
```bash
24-
pip install infinity-embedded-sdk==0.5.2
24+
pip install infinity-embedded-sdk==0.6.0.dev1
2525
```
2626
2. Use Infinity to conduct a dense vector search:
2727
```python

docs/references/configurations.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Infinity embedded does not have an *explicit* configuration file. Its configurat
5757
```toml
5858
[general]
5959
# Infinity server version, the minor version of this parameter should match server minor version.
60-
version = "0.5.0"
60+
version = "0.6.0"
6161
# Timezone
6262
time_zone = "utc-8"
6363
# The number of worker threads. Defaults to the number of CPU cores.

docs/references/http_api_reference.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2406,7 +2406,7 @@ The response includes a JSON object like the following:
24062406
"server_address":"0.0.0.0",
24072407
"temp_dir":"/var/infinity/tmp",
24082408
"time_zone":"UTC+8",
2409-
"version":"0.5.0",
2409+
"version":"0.6.0",
24102410
"wal_compact_threshold":"1073741824",
24112411
"wal_dir":"/var/infinity/wal",
24122412
"wal_flush":"FlushAtOnce"
@@ -2455,7 +2455,7 @@ The response includes a JSON object like the following:
24552455
```shell
24562456
{
24572457
"error_code": 0,
2458-
"version":"0.5.0"
2458+
"version":"0.6.0"
24592459
}
24602460
```
24612461
@@ -3672,7 +3672,7 @@ The response includes a JSON object like the following:
36723672
"server_address":"0.0.0.0",
36733673
"temp_dir":"/var/infinity/leader/tmp",
36743674
"time_zone":"UTC-8",
3675-
"version":"0.5.0",
3675+
"version":"0.6.0",
36763676
"wal_compact_threshold":"1073741824",
36773677
"wal_dir":"/var/infinity/leader/wal",
36783678
"wal_flush":"FlushAtOnce"

example/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
The Python scripts in the current directory provides the examples of the infinity SDK API. Before running these scripts, please ensure that the correct version of infinity SDK is installed. If you are using the server version of Infinity, you can use the following command to install it
66

77
```shell
8-
pip install infinity-sdk==0.5.2
8+
pip install infinity-sdk==0.6.0.dev1
99
```
1010

1111
To use Infinity locally as a Python module, install the Infinity Embedded SDK:
1212

1313
```shell
14-
pip install infinity-embedded-sdk==0.5.2
14+
pip install infinity-embedded-sdk==0.6.0.dev1
1515
```
1616

1717
Once the installation completes, run some simple examples:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ build-backend = "scikit_build_core.build"
1111

1212
[project]
1313
name = "infinity_embedded_sdk"
14-
version = "0.5.2"
14+
version = "0.6.0.dev1"
1515
requires-python = ">=3.10"
1616
dependencies = [
1717
"sqlglot~=11.7.0",

python/infinity_sdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Infinity supports two working modes, embedded mode and client-server mode. The f
6363

6464
2. Install the `infinity-sdk` package:
6565
```bash
66-
pip install infinity-sdk==0.5.2
66+
pip install infinity-sdk==0.6.0.dev1
6767
```
6868

6969
3. Use Infinity to conduct a dense vector search:

python/infinity_sdk/infinity/remote_thrift/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ def _reconnect(self):
9898
# version: 0.5.0.dev3, client_version: 25
9999
# version: 0.5.0.dev4 and 0.5.0.dev5, client_version: 26
100100
# version: 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 and 0.5.2, client_version: 27
101-
res = self.client.Connect(ConnectRequest(client_version=27)) # 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 and 0.5.2
101+
# version: 0.6.0.dev1, client_version: 28
102+
res = self.client.Connect(ConnectRequest(client_version=28)) # 0.6.0.dev1
102103
if res.error_code != 0:
103104
raise InfinityException(res.error_code, res.error_msg)
104105
self.session_id = res.session_id

python/infinity_sdk/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "infinity-sdk"
3-
version = "0.5.2"
3+
version = "0.6.0.dev1"
44
requires-python = ">=3.10"
55
dependencies = [
66
"sqlglot~=11.7.0",

src/network/infinity_thrift_service.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ ClientVersions::ClientVersions() {
9494
client_version_map_[25] = String("0.5.0.dev3");
9595
client_version_map_[26] = String("0.5.0.dev5");
9696
client_version_map_[27] = String("0.5.2");
97+
client_version_map_[28] = String("0.6.0.dev1");
9798
}
9899

99100
Pair<const char *, Status> ClientVersions::GetVersionByIndex(i64 version_index) {

src/network/infinity_thrift_service.cppm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct ClientVersions {
6060
export class InfinityThriftService final : public infinity_thrift_rpc::InfinityServiceIf {
6161
private:
6262
static constexpr std::string_view ErrorMsgHeader = "[THRIFT ERROR]";
63-
static constexpr i64 current_version_index_{27}; // 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 and 0.5.2
63+
static constexpr i64 current_version_index_{28}; // 0.6.0.dev1
6464

6565
static std::mutex infinity_session_map_mutex_;
6666
static HashMap<u64, SharedPtr<Infinity>> infinity_session_map_;

src/unit_test/main/config.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ TEST_F(ConfigTest, test1) {
4040
auto status = config.Init(path, nullptr);
4141
ASSERT_TRUE(status.ok());
4242

43-
EXPECT_EQ(config.Version(), "0.5.2");
43+
EXPECT_EQ(config.Version(), "0.6.0");
4444
EXPECT_EQ(config.TimeZone(), "UTC");
4545
EXPECT_EQ(config.TimeZoneBias(), 8);
4646
EXPECT_EQ(config.CPULimit(), std::thread::hardware_concurrency());
@@ -88,7 +88,7 @@ TEST_F(ConfigTest, test2) {
8888
auto status = config.Init(path, nullptr);
8989
ASSERT_TRUE(status.ok());
9090

91-
EXPECT_EQ(config.Version(), "0.5.2");
91+
EXPECT_EQ(config.Version(), "0.6.0");
9292
EXPECT_EQ(config.TimeZone(), "UTC");
9393
EXPECT_EQ(config.TimeZoneBias(), -8);
9494

@@ -210,7 +210,7 @@ TEST_F(ConfigTest, TestValidValues) {
210210
auto status = config.Init(path, nullptr);
211211
ASSERT_TRUE(status.ok());
212212

213-
EXPECT_EQ(config.Version(), "0.5.2");
213+
EXPECT_EQ(config.Version(), "0.6.0");
214214
EXPECT_EQ(config.TimeZone(), "UTC");
215215
EXPECT_EQ(config.TimeZoneBias(), -8);
216216
EXPECT_EQ(config.CPULimit(), 2);

test/data/config/infinity_conf.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44
cpu_limit = 2
55

test/data/config/restart_test/test_alter/1.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44

55
[network]

test/data/config/restart_test/test_alter/2.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44

55
[network]

test/data/config/restart_test/test_alter/3.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44

55
[network]

test/data/config/restart_test/test_cleanup/1.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44

55
[network]

test/data/config/restart_test/test_cleanup/2.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[general]
2-
version = "0.5.0"
2+
version = "0.6.0"
33
time_zone = "utc-8"
44

55
[network]

0 commit comments

Comments
 (0)