Skip to content

Commit

Permalink
Use 'packaging' package for parse_version
Browse files Browse the repository at this point in the history
  • Loading branch information
bennybp committed Oct 25, 2023
1 parent bcefe2c commit 76a2cd8
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions conda-build/qcportal/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ requirements:
- tqdm
- pandas
- pyjwt
- packaging


test:
Expand Down
3 changes: 2 additions & 1 deletion qcarchivetesting/conda-envs/fulltest_qcportal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ dependencies:
- tabulate
- tqdm
- pandas
- pyjwt
- pyjwt
- packaging
1 change: 1 addition & 0 deletions qcarchivetesting/conda-envs/fulltest_server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dependencies:
- tqdm
- pandas
- pyjwt
- packaging

# QCFractal dependencies
- flask
Expand Down
2 changes: 2 additions & 0 deletions qcarchivetesting/conda-envs/fulltest_snowflake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- postgresql

# QCPortal dependencies
# NOTE: msgpack-python in conda is msgpack in pypi (due to a rename around v0.5)
- numpy
- msgpack-python
- requests
Expand All @@ -20,6 +21,7 @@ dependencies:
- tqdm
- pandas
- pyjwt
- packaging

# QCFractalCompute dependencies
- parsl
Expand Down
1 change: 1 addition & 0 deletions qcarchivetesting/conda-envs/fulltest_worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dependencies:
- tqdm
- pandas
- pyjwt
- packaging

# QCFractalCompute dependencies
- parsl
Expand Down
2 changes: 1 addition & 1 deletion qcfractalcompute/qcfractalcompute/compute_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

import parsl.executors.high_throughput.interchange
import tabulate
from packaging.version import parse as parse_version
from parsl.config import Config as ParslConfig
from parsl.dataflow.dflow import DataFlowKernel
from parsl.dataflow.futures import Future as ParslFuture
from parsl.executors import HighThroughputExecutor, ThreadPoolExecutor
from pkg_resources import parse_version
from pydantic import BaseModel, Extra, Field
from requests.exceptions import Timeout

Expand Down
1 change: 1 addition & 0 deletions qcportal/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dependencies = [
"tqdm",
"pandas",
"pyjwt",
"packaging",
]


Expand Down
2 changes: 1 addition & 1 deletion qcportal/qcportal/client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import pydantic
import requests
import yaml
from pkg_resources import parse_version
from packaging.version import parse as parse_version

from . import __version__
from .exceptions import AuthenticationFailure
Expand Down

0 comments on commit 76a2cd8

Please sign in to comment.