Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid loading the McM's module from a folder in AFS #148

Merged
merged 2 commits into from
Jul 29, 2024
Merged
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
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ RUN npm run build

# Build dependencies
FROM python:3.11.7-alpine3.19@sha256:6aa46819a8ff43850e52f5ac59545b50c6d37ebd3430080421582af362afec97 AS build
RUN apk add git
RUN apk update && apk upgrade
RUN pip install --upgrade pip setuptools wheel

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ pymongo==3.13.0
PyJWT==2.8.0
Authlib==1.3.0
cryptography==42.0.5
requests==2.31.0
gunicorn==21.2.0
Flask-Compress==1.14
Flask-Compress==1.14
pdmv-http-client @ git+https://github.com/cms-PdmV/mcm_scripts.git
9 changes: 1 addition & 8 deletions update_scripts/update_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,16 @@
"""

import json
import sys
import time
import argparse
import logging
import hashlib
import os
from rest import McM
from utils.grasp_database import Database as GrASPDatabase
from utils.mcm_database import Database as McMDatabase
from utils.utils import chained_request_to_steps

default_mcm_tools_path = "/afs/cern.ch/cms/PPD/PdmV/tools/McM/"
mcm_tools_path: str = os.getenv("MCM_TOOLS_PATH", default_mcm_tools_path)

sys.path.append(mcm_tools_path) # pylint: disable=wrong-import-order,import-error

from rest import McM # pylint: disable=wrong-import-position,wrong-import-order,import-error

logger = logging.getLogger()


Expand Down
Loading