Skip to content

Commit

Permalink
qcfractalcompute is only needed server-side for snowflake
Browse files Browse the repository at this point in the history
  • Loading branch information
bennybp committed Sep 10, 2023
1 parent c45b24e commit bb2748c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/core_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Install All QCArchive packages
shell: bash -l {0}
run: |
pip install -e ./qcportal -e ./qcfractalcompute -e ./qcfractal[services,geoip] -e ./qcarchivetesting
pip install -e ./qcportal -e ./qcfractalcompute -e ./qcfractal[services,geoip,snowflake] -e ./qcarchivetesting
- name: Run tests
shell: bash -l {0}
Expand Down
2 changes: 1 addition & 1 deletion conda-build/qcfractal/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ requirements:
- versioningit

run:
- qcfractalcompute ={{ version }}
- flask
- flask-jwt-extended
- gunicorn
Expand All @@ -32,6 +31,7 @@ requirements:
# Optional in pyproject.toml
- geoip2
- torsiondrive
- qcfractalcompute ={{ version }}

test:
imports:
Expand Down
3 changes: 0 additions & 3 deletions qcarchivetesting/conda-envs/fulltest_server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ dependencies:
- pandas
- pyjwt

# QCFractalCompute dependencies
- parsl

# QCFractal dependencies
- flask
- flask-jwt-extended
Expand Down
4 changes: 3 additions & 1 deletion qcfractal/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ classifiers = [
"Operating System :: MacOS",
]
dependencies = [
"qcfractalcompute",
"flask",
"flask-jwt-extended",
"gunicorn",
Expand All @@ -41,6 +40,9 @@ services = [
geoip = [
"geoip2"
]
snowflake = [
"qcfractalcompute"
]


[project.urls]
Expand Down
8 changes: 6 additions & 2 deletions qcfractal/qcfractal/snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

import requests

from qcfractalcompute.compute_manager import ComputeManager
from qcfractalcompute.config import FractalComputeConfig, FractalServerSettings, LocalExecutorConfig
from qcportal import PortalClient
from qcportal.record_models import RecordStatusEnum
from .config import FractalConfig, DatabaseConfig, update_nested_dict
Expand All @@ -24,6 +22,12 @@
from .port_util import find_open_port
from .postgres_harness import create_snowflake_postgres

try:
from qcfractalcompute.compute_manager import ComputeManager
from qcfractalcompute.config import FractalComputeConfig, FractalServerSettings, LocalExecutorConfig
except ImportError:
raise RuntimeError("qcfractalcompute is not installed. Snowflake is useless without it")

if TYPE_CHECKING:
from typing import Dict, Any, Sequence, Optional, Set

Expand Down

0 comments on commit bb2748c

Please sign in to comment.