Skip to content
Open
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: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ combine-coverage:
uv run coverage html
uv run coverage report --fail-under=69

test-publish:
@for dir in $(SUBDIRS); do \
cd $$dir && \
uv publish --publish-url https://test.pypi.org/legacy/ --check-url=https://test.pypi.org/simple/ && \
cd ../..; \
done

publish:
@for dir in $(SUBDIRS); do \
cd $$dir && \
uv publish --check-url=https://pypi.org/simple/ && \
cd ../..; \
done

format:
uv tool run --from 'tox==4.30.2' tox -e format

Expand Down
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,33 @@ make lint
make test
```

## Publishing

### Publish & verify test packages

Publish packages to PyPI test registry:
```bash
UV_PUBLISH_TOKEN=$(cat /path/to/testpypi/token-file) make test-publish
```

Verify installation:
```bash
uv run --index=https://test.pypi.org/simple <mcp server package>
```
example:
```bash
uv run --index=https://test.pypi.org/simple oracle.oci-api-mcp-server
```

### Publish packages

>[!IMPORTANT]
> NOTE: The `UV_PUBLISH_TOKEN` differs for Test PyPI and PyPI.

```bash
UV_PUBLISH_TOKEN=$(cat /path/to/pypi/token-file) make publish
```

## Contributing

This project welcomes contributions from the community. Before submitting a pull
Expand Down