Skip to content

Commit

Permalink
[MINOR] build: Change the version to 0.6.0-incubating-SNAPSHOT (#4432)
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

Change the version to 0.6.0-incubating-SNAPSHOT for branch-0.6.

### Why are the changes needed?

To prepare for the Apache release.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Existing CIs.

Co-authored-by: Qi Yu <[email protected]>
  • Loading branch information
jerryshao and yuqi1129 authored Aug 8, 2024
1 parent 9b243bf commit 040a64f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class GravitinoVersion extends VersionDTO implements Comparable {
@VisibleForTesting
/** @return parse the version number for a version string */
int[] getVersionNumber() {
Pattern pattern = Pattern.compile("(\\d+)\\.(\\d+)\\.(\\d+)(-\\w+)?");
Pattern pattern = Pattern.compile("(\\d+)\\.(\\d+)\\.(\\d+)([-\\w]+)?");
Matcher matcher = pattern.matcher(version());
if (matcher.matches()) {
int[] versionNumbers = new int[VERSION_PART_NUMBER];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,20 @@ void testParseVersionString() {
assertEquals(5, versionNumber[1]);
assertEquals(3, versionNumber[2]);

// Test incubator version
version = new GravitinoVersion("2.5.3-incubating", "2023-01-01", "1234567");
versionNumber = version.getVersionNumber();
assertEquals(2, versionNumber[0]);
assertEquals(5, versionNumber[1]);
assertEquals(3, versionNumber[2]);

// Test incubator snapshot version
version = new GravitinoVersion("2.5.3-incubating-SNAPSHOT", "2023-01-01", "1234567");
versionNumber = version.getVersionNumber();
assertEquals(2, versionNumber[0]);
assertEquals(5, versionNumber[1]);
assertEquals(3, versionNumber[2]);

// Test an invalid the version string with 2 part
version = new GravitinoVersion("2.5", "2023-01-01", "1234567");
assertThrows(GravitinoRuntimeException.class, version::getVersionNumber);
Expand Down
1 change: 0 additions & 1 deletion clients/client-python/gravitino/exceptions/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,3 @@ class UnauthorizedException(GravitinoRuntimeException):

class BadRequestException(GravitinoRuntimeException):
"""An exception thrown when the request is invalid."""

2 changes: 1 addition & 1 deletion clients/client-python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
setup(
name="gravitino",
description="Python lib/client for Gravitino",
version="0.6.0.dev1",
version="0.6.0.dev",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/apache/gravitino",
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ org.gradle.caching=true
org.gradle.jvmargs=-Xmx4g

# version that is going to be updated automatically by releases
version = 0.6.0-SNAPSHOT
version = 0.6.0-incubating-SNAPSHOT

# sonatype credentials
SONATYPE_USER = admin
Expand Down

0 comments on commit 040a64f

Please sign in to comment.