Skip to content

Commit

Permalink
Merge pull request #26 from mattwthompson/pydantic-2
Browse files Browse the repository at this point in the history
Use only Pydantic v2 in installation
  • Loading branch information
mattwthompson authored Mar 11, 2024
2 parents 31bed27 + 38ba856 commit 7e05eca
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions devtools/conda-envs/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ channels:
- openeye
- conda-forge
dependencies:
- python
- python =3.10

- openff-toolkit =0.14.3
- openff-qcsubmit =0.50.1
- openff-toolkit
- openff-qcsubmit
- openmmforcefields
- smirnoff-plugins =2023.08.0
- smirnoff-plugins
# espaloma =0.3
- geometric =1
- pydantic =2

- ipython
- ipdb
Expand Down
4 changes: 2 additions & 2 deletions ibstore/_base/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

import numpy
from openff.units import unit
from pydantic import BaseModel
from pydantic.errors import DictError
from pydantic.v1 import BaseModel
from pydantic.v1.errors import DictError

FloatArrayLike = Union[List, numpy.ndarray, float]

Expand Down
2 changes: 1 addition & 1 deletion ibstore/_minimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import openmm.unit
from openff.toolkit import ForceField, Molecule
from openff.toolkit.typing.engines.smirnoff import get_available_force_fields
from pydantic import Field
from pydantic.v1 import Field
from tqdm import tqdm

from ibstore._base.array import Array
Expand Down
2 changes: 1 addition & 1 deletion ibstore/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import qcelemental
from openff.toolkit import Molecule
from pydantic import Field
from pydantic.v1 import Field

from ibstore._base.array import Array
from ibstore._base.base import ImmutableModel
Expand Down

0 comments on commit 7e05eca

Please sign in to comment.