Skip to content

Commit f7673d4

Browse files
authored
Updated test env to use latest gufe, openfe (#47)
* Updated test env to use latest `gufe`, `openfe` * Make `FahContext` kw_only to avoid inheritance issues with `Context` * Remove use of pydantic v1 in settings
1 parent 21ef59b commit f7673d4

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

alchemiscale_fah/protocols/protocolunit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
class FahExecutionException(RuntimeError): ...
3535

3636

37-
@dataclass
37+
@dataclass(kw_only=True)
3838
class FahContext(Context):
3939
fah_client: FahAdaptiveSamplingClient
4040
fah_projects: List[FahProject]

alchemiscale_fah/settings/fah_settings.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
from typing import Optional, Union
22

3-
try:
4-
from pydantic.v1 import Field
5-
except ImportError:
6-
from pydantic import Field
3+
from pydantic import Field
74

85
from gufe.settings import SettingsBaseModel
96

devtools/conda-envs/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ dependencies:
66
- cuda-version >=12
77

88
# alchemiscale dependencies
9-
- gufe=1.6.0
10-
- openfe=1.6.0
9+
- gufe =1.7.1
10+
- openfe =1.8.0
1111
- pydantic >2
1212
- pydantic-settings
1313
- async-lru

0 commit comments

Comments
 (0)