Skip to content

Commit

Permalink
Remove MCPServer/lib directory
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceafill committed Oct 17, 2024
1 parent 8a61fe0 commit 7de35a2
Show file tree
Hide file tree
Showing 39 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
args: [--no-ensure-ascii, --autofix]
files: |
(?x)^(
src/MCPServer/lib/assets/.*\.json|
src/MCPServer/assets/.*\.json|
src/(MCPClient/MCPServer|dashboard)/install/.*\.json
)
- repo: https://github.com/astral-sh/ruff-pre-commit
Expand Down
4 changes: 2 additions & 2 deletions hack/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ ENTRYPOINT ["pyenv", "exec", "python3", "/src/src/MCPClient/archivematicaClient.
FROM base AS archivematica-mcp-server

ENV DJANGO_SETTINGS_MODULE=settings.common
ENV PYTHONPATH=/src/src/MCPServer/lib/:/src/src/archivematicaCommon/lib/:/src/src/dashboard/
ENV PYTHONPATH=/src/src/MCPServer/:/src/src/archivematicaCommon/lib/:/src/src/dashboard/

ENTRYPOINT ["pyenv", "exec", "python3", "/src/src/MCPServer/lib/archivematicaMCP.py"]
ENTRYPOINT ["pyenv", "exec", "python3", "/src/src/MCPServer/archivematicaMCP.py"]

# -----------------------------------------------------------------------------

Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ include = [
"**/src/archivematicaCommon/lib/*",
"**/src/dashboard/*",
"**/src/MCPClient/*",
"**/src/MCPServer/lib/*",
"**/src/MCPServer/*",
]
branch = true

Expand Down Expand Up @@ -124,8 +124,7 @@ legacy_tox_ini = """
DASHBOARD_DIR = {env:SRC_DIR}/dashboard
DASHBOARD_PYTHONPATH = {env:DASHBOARD_DIR}:{env:ARCHIVEMATICA_COMMON_DIR}
# MCP Server
MCPSERVER_ROOT = {env:SRC_DIR}/MCPServer
MCPSERVER_DIR = {env:MCPSERVER_ROOT}/lib
MCPSERVER_DIR = {env:SRC_DIR}/MCPServer
MCPSERVER_PYTHONPATH = {env:MCPSERVER_DIR}:{env:ARCHIVEMATICA_COMMON_DIR}:{env:DASHBOARD_DIR}
# MCP Client
MCPCLIENT_DIR = {env:SRC_DIR}/MCPClient
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/archivematicaCommon/lib/appconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Configuration helper for MCPServer, MCPClient and Dashboard, used in:
- MCPClient/settings/common.py
- MCPServer/lib/settings/common.py
- MCPServer/settings/common.py
- dashboard/settings/base.py
Config. attributes are declared on those settings files and they can be defined
Expand Down
2 changes: 1 addition & 1 deletion tests/MCPServer/test_processing_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from server.workflow import load

ASSETS_DIR = (
pathlib.Path(__file__).parent.parent.parent / "src" / "MCPServer" / "lib" / "assets"
pathlib.Path(__file__).parent.parent.parent / "src" / "MCPServer" / "assets"
)


Expand Down
2 changes: 1 addition & 1 deletion tests/MCPServer/test_rpc_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from server import workflow

ASSETS_DIR = (
pathlib.Path(__file__).parent.parent.parent / "src" / "MCPServer" / "lib" / "assets"
pathlib.Path(__file__).parent.parent.parent / "src" / "MCPServer" / "assets"
)


Expand Down
2 changes: 1 addition & 1 deletion tests/MCPServer/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from server import workflow

ASSETS_DIR = (
pathlib.Path(__file__).parent.parent.parent / "src" / "MCPServer" / "lib" / "assets"
pathlib.Path(__file__).parent.parent.parent / "src" / "MCPServer" / "assets"
)
FIXTURES_DIR = pathlib.Path(__file__).parent / "fixtures"

Expand Down
2 changes: 1 addition & 1 deletion tests/MCPServer/test_workflow_abilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from server.workflow_abilities import choice_is_available

ASSETS_DIR = (
pathlib.Path(__file__).parent.parent.parent / "src" / "MCPServer" / "lib" / "assets"
pathlib.Path(__file__).parent.parent.parent / "src" / "MCPServer" / "assets"
)


Expand Down

0 comments on commit 7de35a2

Please sign in to comment.