Skip to content

Commit ef94ce6

Browse files
authored
MCP: Support publishing all modules to test.pypi.org (apache#86)
1 parent 2a38746 commit ef94ce6

4 files changed

Lines changed: 49 additions & 36 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ version.txt
7878

7979
# Python venv
8080
venv/
81-
mcp-server/polaris_mcp.egg-info/
81+
mcp-server/apache_polaris_mcp.egg-info/
8282
mcp-server/polaris_mcp/__pycache__/
8383
mcp-server/polaris_mcp/tools/__pycache__/
8484
mcp-server/tests/__pycache__/

mcp-server/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ The implementation is built on top of [FastMCP](https://gofastmcp.com) for strea
2929

3030
## Building and Running
3131
Run the following commands from the `mcp-server` directory:
32-
- `uv sync` — install runtime dependencies
33-
- `uv run polaris-mcp` — start the MCP server (stdin/stdout transport)
34-
- `uv sync --extra test --extra dev` — install runtime, test and dev dependencies
35-
- `uv run pytest` — run the test suite
36-
- `uv run pre-commit run --all-files` — lint all files
32+
- `uv sync` - install runtime dependencies
33+
- `uv run polaris-mcp` - start the MCP server (stdin/stdout transport)
34+
- `uv sync --extra test --extra dev` - install runtime, test and dev dependencies
35+
- `uv run pytest` - run the test suite
36+
- `uv run pre-commit run --all-files` - lint all files
37+
- `uv build && uv publish --index testpypi --token [Pypi-API-token]` - Publish a nightly to test.pypi.org
38+
- `uv build && uv publish --index pypi --token [Pypi-API-token]` - Publish a formal binary release to pypi.org
3739

3840
For a `tools/call` invocation you will typically set environment variables such as `POLARIS_BASE_URL` and authentication settings before launching the server.
3941

mcp-server/pyproject.toml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#
1919

2020
[project]
21-
name = "polaris-mcp"
21+
name = "apache-polaris-mcp"
2222
version = "0.9.0"
2323
description = "Apache Polaris Model Context Protocol server"
2424
authors = [
@@ -54,4 +54,15 @@ requires = ["setuptools>=68.0"]
5454
build-backend = "setuptools.build_meta"
5555

5656
[tool.setuptools.packages.find]
57-
include = ["polaris_mcp"]
57+
where = ["."]
58+
include = ["polaris_mcp*"]
59+
60+
[[tool.uv.index]]
61+
name = "pypi"
62+
url = "https://pypi.org/simple/"
63+
publish-url = "https://upload.pypi.org/legacy/"
64+
65+
[[tool.uv.index]]
66+
name = "testpypi"
67+
url = "https://test.pypi.org/simple/"
68+
publish-url = "https://test.pypi.org/legacy/"

mcp-server/uv.lock

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)