Skip to content
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
14 changes: 13 additions & 1 deletion .bumpversion.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,16 @@ replace = 'version = "{new_version}"'
[[tool.bumpversion.files]]
filename = "rust/reqwest-client.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
replace = 'version = "{new_version}"'

# Python lance_namespace package
[[tool.bumpversion.files]]
filename = "python/pyproject.lance_namespace.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'

# Java lance-namespace-core module
[[tool.bumpversion.files]]
filename = "java/lance-namespace-core/pom.xml"
search = "<version>{current_version}</version>"
replace = "<version>{new_version}</version>"
18 changes: 12 additions & 6 deletions .github/workflows/java-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ jobs:

- name: Set github
run: |
git config --global user.name "LanceDB Github Runner"
git config --global user.email "dev+gha@lancedb.com"
git config --global user.name "Lance Github Runner"
git config --global user.email "dev+gha@lance.org"

- name: Dry run
if: github.event_name == 'pull_request'
Expand Down Expand Up @@ -94,6 +94,7 @@ jobs:
# List of some artifacts to check
ARTIFACTS=(
"lance-namespace-apache-client"
"lance-namespace-core"
)

echo "Waiting for version $VERSION to be available in Maven Central..."
Expand Down Expand Up @@ -124,18 +125,23 @@ jobs:
echo ""
echo "Users can now add the following dependencies to their projects:"
echo ""
echo "Maven:"
echo "Maven (interface):"
echo "<dependency>"
echo " <groupId>org.lance</groupId>"
echo " <artifactId>lance-namespace-core</artifactId>"
echo " <version>${VERSION}</version>"
echo "</dependency>"
echo ""
echo "Maven (generated client):"
echo "<dependency>"
echo " <groupId>org.lance</groupId>"
echo " <artifactId>lance-namespace-apache-client</artifactId>"
echo " <version>${VERSION}</version>"
echo "</dependency>"
echo ""
echo "Gradle:"
echo "implementation 'org.lance:lance-namespace-core:${VERSION}'"
echo "implementation 'org.lance:lance-namespace-apache-client:${VERSION}'"
echo ""
echo "SBT:"
echo "libraryDependencies += \"org.lance\" % \"lance-namespace-apache-client\" % \"${VERSION}\""
exit 0
fi

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,8 @@ jobs:
run: |
uv sync
uv run pytest
- name: Test lance_namespace with Python ${{ matrix.python-version }}
working-directory: python/lance_namespace
run: |
uv sync
uv run pytest
12 changes: 5 additions & 7 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
site_name: Lance Namespace
site_description: open specification on top of the storage-based Lance data format to standardize access to a collection of Lance tables
site_url: https://lancedb.github.io/lance-namespace/
site_url: https://lance.org/format/namespace/
docs_dir: src

repo_name: lancedb/lance-namespace
repo_url: https://github.com/lancedb/lance-namespace
repo_name: lance-format/lance-namespace
repo_url: https://github.com/lance-format/lance-namespace

theme:
name: material
Expand Down Expand Up @@ -60,9 +60,7 @@ plugins:
extra:
social:
- icon: fontawesome/brands/github
link: https://github.com/lancedb/lance-namespace
link: https://github.com/lance-format/lance-namespace
- icon: fontawesome/brands/discord
link: https://discord.gg/zMM32dvNtd
- icon: fontawesome/brands/twitter
link: https://twitter.com/lancedb
link: https://discord.gg/lance

19 changes: 16 additions & 3 deletions java/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@ lint-springboot-server: gen-apache-client gen-springboot-server
build-springboot-server: gen-springboot-server lint-springboot-server
./mvnw install -pl lance-namespace-springboot-server -am

# lance-namespace-core module (hand-written, no codegen)
.PHONY: lint-core
lint-core: gen-apache-client
./mvnw spotless:apply -pl lance-namespace-core -am

.PHONY: build-core
build-core: build-apache-client lint-core
./mvnw install -pl lance-namespace-core -am

.PHONY: check-core
check-core:
./mvnw checkstyle:check spotless:check -pl lance-namespace-core -am

.PHONY: clean
clean: clean-apache-client clean-springboot-server

Expand All @@ -77,10 +90,10 @@ check-springboot-server:
./mvnw checkstyle:check spotless:check -pl lance-namespace-springboot-server -am

.PHONY: check
check: check-apache-client check-springboot-server
check: check-apache-client check-springboot-server check-core

.PHONY: lint
lint: lint-apache-client lint-springboot-server
lint: lint-apache-client lint-springboot-server lint-core

.PHONY: build
build: build-apache-client build-springboot-server
build: build-apache-client build-springboot-server build-core
71 changes: 71 additions & 0 deletions java/lance-namespace-core/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.lance</groupId>
<artifactId>lance-namespace-root</artifactId>
<version>0.1.0</version>
</parent>

<artifactId>lance-namespace-core</artifactId>
<packaging>jar</packaging>

<name>lance-namespace-core</name>
<description>Lance Namespace interface and plugin registry</description>

<dependencies>
<!-- Model classes from generated apache client -->
<dependency>
<groupId>org.lance</groupId>
<artifactId>lance-namespace-apache-client</artifactId>
<version>${project.version}</version>
</dependency>

<!-- Arrow BufferAllocator -->
<dependency>
<groupId>org.apache.arrow</groupId>
<artifactId>arrow-memory-core</artifactId>
<version>${arrow.version}</version>
</dependency>

<!-- Test dependencies -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.arrow</groupId>
<artifactId>arrow-memory-netty</artifactId>
<version>${arrow.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
</plugin>
</plugins>
</build>
</project>
Loading