Skip to content

Commit

Permalink
use packaging instead of pkg_resources (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewu63 authored Aug 5, 2024
1 parent 7e862db commit bc021e4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- pip
- setuptools
- build
- packaging
# testing
- parameterized
- testflo
Expand Down
2 changes: 1 addition & 1 deletion pyoptsparse/pySNOPT/pySNOPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from baseclasses.utils import CaseInsensitiveSet, writePickle
import numpy as np
from numpy import ndarray
from pkg_resources import parse_version
from packaging.version import parse as parse_version

# Local modules
from ..pyOpt_error import Error
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def copy_shared_libraries():
platforms=["Linux"],
keywords="optimization",
install_requires=[
"packaging",
"sqlitedict>=1.6",
"numpy>=1.21,<2",
"scipy>=1.7",
Expand Down

0 comments on commit bc021e4

Please sign in to comment.