Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MINOR] build: Change the version to 0.6.0-incubating-SNAPSHOT #4432

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading