Skip to content

Commit f3dddbe

Browse files
committed
fix: Remove src module prefix
1 parent 1aa0deb commit f3dddbe

15 files changed

+60
-76
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
import logging
2828
import os
2929
from fastmcp.server.server import FastMCP
30-
from src.aws_mcp_proxy.logging_config import configure_logging
31-
from src.aws_mcp_proxy.mcp_proxy_manager import McpProxyManager
32-
from src.aws_mcp_proxy.utils import (
30+
from aws_mcp_proxy.logging_config import configure_logging
31+
from aws_mcp_proxy.mcp_proxy_manager import McpProxyManager
32+
from aws_mcp_proxy.utils import (
3333
create_transport_with_sigv4,
3434
determine_service_name,
3535
normalize_endpoint_url,
@@ -79,13 +79,13 @@ def parse_args():
7979
epilog="""
8080
Examples:
8181
# Run with EKS MCP endpoint
82-
src.aws-mcp-proxy --endpoint https://eks-mcp.us-west-2.api.aws
82+
aws-mcp-proxy --endpoint https://eks-mcp.us-west-2.api.aws
8383
8484
# Run with custom service and profile
85-
src.aws-mcp-proxy --endpoint https://eks-mcp.us-west-2.api.aws --service eks-mcp --profile default
85+
aws-mcp-proxy --endpoint https://eks-mcp.us-west-2.api.aws --service eks-mcp --profile default
8686
8787
# Run with write permissions enabled
88-
src.aws-mcp-proxy --endpoint https://eks-mcp.us-west-2.api.aws --allow-write
88+
aws-mcp-proxy --endpoint https://eks-mcp.us-west-2.api.aws --allow-write
8989
""",
9090
)
9191

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import httpx
1818
import re
1919
from fastmcp.client.transports import StreamableHttpTransport
20-
from src.aws_mcp_proxy.sigv4_helper import create_sigv4_client
20+
from aws_mcp_proxy.sigv4_helper import create_sigv4_client
2121
from typing import Dict, Optional
2222
from urllib.parse import urlparse
2323

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ repository = "https://github.com/aws/aws-mcp-proxy.git"
4444
changelog = "https://github.com/aws/aws-mcp-proxy/blob/main/src/aws-mcp-proxy/CHANGELOG.md"
4545

4646
[project.scripts]
47-
"aws-mcp-proxy" = "src.aws_mcp_proxy.server:main"
47+
"aws-mcp-proxy" = "aws_mcp_proxy.server:main"
4848

4949
[dependency-groups]
5050
dev = [
@@ -118,7 +118,7 @@ line-ending = "auto"
118118
docstring-code-format = true
119119

120120
[tool.pyright]
121-
include = ["src", "tests"]
121+
include = ["aws_mcp_proxy", "tests"]
122122
exclude = ["**/__pycache__", "**/.venv", "**/node_modules", "**/dist", "**/build"]
123123

124124
[tool.commitizen]
@@ -127,12 +127,12 @@ version = "0.0.0"
127127
tag_format = "v$version"
128128
version_files = [
129129
"pyproject.toml:version",
130-
"src/aws_mcp_proxy/__init__.py:__version__"
130+
"aws_mcp_proxy/__init__.py:__version__"
131131
]
132132
update_changelog_on_bump = true
133133

134134
[tool.hatch.build.targets.wheel]
135-
packages = ["src"]
135+
packages = ["aws_mcp_proxy"]
136136

137137
[tool.bandit]
138138
exclude_dirs = ["venv", ".venv", "tests"]
@@ -155,4 +155,4 @@ exclude_also = [
155155
]
156156

157157
[tool.coverage.run]
158-
source = ["src"]
158+
source = ["aws_mcp_proxy"]

src/__init__.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

tests/test_init.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,30 @@ class TestInit:
2424
def test_version(self):
2525
"""Test that __version__ is defined and follows semantic versioning."""
2626
# Import the module
27-
import src.aws_mcp_proxy
27+
import aws_mcp_proxy
2828

2929
# Check that __version__ is defined
30-
assert hasattr(src.aws_mcp_proxy, '__version__')
30+
assert hasattr(aws_mcp_proxy, '__version__')
3131

3232
# Check that __version__ is a string
33-
assert isinstance(src.aws_mcp_proxy.__version__, str)
33+
assert isinstance(aws_mcp_proxy.__version__, str)
3434

3535
# Check that __version__ follows semantic versioning (major.minor.patch)
3636
version_pattern = r'^\d+\.\d+\.\d+$'
37-
assert re.match(version_pattern, src.aws_mcp_proxy.__version__), (
38-
f"Version '{src.aws_mcp_proxy.__version__}' does not follow semantic versioning"
37+
assert re.match(version_pattern, aws_mcp_proxy.__version__), (
38+
f"Version '{aws_mcp_proxy.__version__}' does not follow semantic versioning"
3939
)
4040

4141
def test_module_reload(self):
4242
"""Test that the module can be reloaded."""
4343
# Import the module
44-
import src.aws_mcp_proxy
44+
import aws_mcp_proxy
4545

4646
# Store the original version
47-
original_version = src.aws_mcp_proxy.__version__
47+
original_version = aws_mcp_proxy.__version__
4848

4949
# Reload the module
50-
importlib.reload(src.aws_mcp_proxy)
50+
importlib.reload(aws_mcp_proxy)
5151

5252
# Check that the version is still the same
53-
assert src.aws_mcp_proxy.__version__ == original_version
53+
assert aws_mcp_proxy.__version__ == original_version

tests/test_logging_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import logging
1818
import pytest
19-
from src.aws_mcp_proxy.logging_config import configure_logging
19+
from aws_mcp_proxy.logging_config import configure_logging
2020

2121

2222
def test_configure_logging_default_level():

0 commit comments

Comments
 (0)