Skip to content

Commit

Permalink
Remove archivematicaCommon/lib directory
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceafill committed Oct 17, 2024
1 parent 7de35a2 commit aac0a6c
Show file tree
Hide file tree
Showing 37 changed files with 10 additions and 11 deletions.
12 changes: 6 additions & 6 deletions hack/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -224,15 +224,15 @@ COPY --chown=${USER_ID}:${GROUP_ID} --link . /src
FROM base AS archivematica-mcp-client

ENV DJANGO_SETTINGS_MODULE=settings.common
ENV PYTHONPATH=/src/src/MCPClient/:/src/src/MCPClient/clientScripts:/src/src/archivematicaCommon/lib/:/src/src/dashboard/
ENV PYTHONPATH=/src/src/MCPClient/:/src/src/MCPClient/clientScripts:/src/src/archivematicaCommon/:/src/src/dashboard/
ENV ARCHIVEMATICA_MCPCLIENT_ARCHIVEMATICACLIENTMODULES=/src/src/MCPClient/archivematicaClientModules
ENV ARCHIVEMATICA_MCPCLIENT_CLIENTASSETSDIRECTORY=/src/src/MCPClient/assets/
ENV ARCHIVEMATICA_MCPCLIENT_CLIENTSCRIPTSDIRECTORY=/src/src/MCPClient/clientScripts/

# Some scripts in archivematica-fpr-admin executed by MCPClient rely on certain
# files being available in this image (e.g. see https://git.io/vA1wF).
COPY --link src/archivematicaCommon/lib/externals/fido/ /usr/lib/archivematica/archivematicaCommon/externals/fido/
COPY --link src/archivematicaCommon/lib/externals/fiwalk_plugins/ /usr/lib/archivematica/archivematicaCommon/externals/fiwalk_plugins/
COPY --link src/archivematicaCommon/externals/fido/ /usr/lib/archivematica/archivematicaCommon/externals/fido/
COPY --link src/archivematicaCommon/externals/fiwalk_plugins/ /usr/lib/archivematica/archivematicaCommon/externals/fiwalk_plugins/

ENTRYPOINT ["pyenv", "exec", "python3", "/src/src/MCPClient/archivematicaClient.py"]

Expand All @@ -241,7 +241,7 @@ 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/:/src/src/archivematicaCommon/lib/:/src/src/dashboard/
ENV PYTHONPATH=/src/src/MCPServer/:/src/src/archivematicaCommon/:/src/src/dashboard/

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

Expand Down Expand Up @@ -271,7 +271,7 @@ COPY --chown=${USER_ID}:${GROUP_ID} --from=archivematica-dashboard-frontend-buil
WORKDIR /src/src/dashboard

ENV DJANGO_SETTINGS_MODULE=settings.local
ENV PYTHONPATH=/src/src/dashboard/:/src/src/archivematicaCommon/lib/
ENV PYTHONPATH=/src/src/dashboard/:/src/src/archivematicaCommon/
ENV AM_GUNICORN_BIND=0.0.0.0:8000
ENV AM_GUNICORN_CHDIR=/src/src/dashboard
ENV FORWARDED_ALLOW_IPS=*
Expand Down Expand Up @@ -305,7 +305,7 @@ RUN set -ex \
&& mkdir -p /var/archivematica/.cache/ms-playwright \
&& python3 -m playwright install firefox

ENV PYTHONPATH=/src/src/dashboard/:/src/src/archivematicaCommon/lib/
ENV PYTHONPATH=/src/src/dashboard/:/src/src/archivematicaCommon/

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

Expand Down
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ norecursedirs = ".svn _build tmp* node_modules bower_components share .tox"

[tool.coverage.run]
omit = [
"**/src/archivematicaCommon/lib/externals/*",
"**/src/archivematicaCommon/externals/*",
"**/migrations/*",
"**/south_migrations/*",
"**/management/commands/*",
Expand All @@ -15,7 +15,7 @@ omit = [
"**/manage.py",
]
include = [
"**/src/archivematicaCommon/lib/*",
"**/src/archivematicaCommon/*",
"**/src/dashboard/*",
"**/src/MCPClient/*",
"**/src/MCPServer/*",
Expand Down Expand Up @@ -118,8 +118,7 @@ legacy_tox_ini = """
SRC_DIR = {toxinidir}/src
HACK_DIR = {toxinidir}/hack
# Archivematica Common
ARCHIVEMATICA_COMMON_ROOT = {env:SRC_DIR}/archivematicaCommon
ARCHIVEMATICA_COMMON_DIR = {env:ARCHIVEMATICA_COMMON_ROOT}/lib
ARCHIVEMATICA_COMMON_DIR = {env:SRC_DIR}/archivematicaCommon
# Dashboard
DASHBOARD_DIR = {env:SRC_DIR}/dashboard
DASHBOARD_PYTHONPATH = {env:DASHBOARD_DIR}:{env:ARCHIVEMATICA_COMMON_DIR}
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.
2 changes: 1 addition & 1 deletion src/dashboard/main/migrations/0041_bind_pids.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def data_migration(apps, schema_editor):
PID---generally the UUID of the entity---is passed during handle creation.)
That the PURL (i.e., PID's URL) may be configured to resolve to
different external (resolve) URLs depending on the qualifier (GET query
parameter) that is appended to it. See archivematicaCommon/lib/bindpid.py
parameter) that is appended to it. See archivematicaCommon/bindpid.py
for more details.
"""

Expand Down

0 comments on commit aac0a6c

Please sign in to comment.