Skip to content

Commit

Permalink
nix pkg_resources (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
kandersolar authored May 14, 2024
1 parent c1ad8dc commit fd63d47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ install_requires =
test =
pytest
pytest-cov
packaging
doc =
sphinx==4.4.0
myst-nb==0.16.0
Expand Down
6 changes: 3 additions & 3 deletions twoaxistracking/tests/test_twoaxistracking.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from pkg_resources import parse_version
from packaging.version import Version
import twoaxistracking


def test___version__():
# check that the version string is determined correctly.
# if the version string is messed up for some reason, it should be
# '0+unknown', which is not greater than '0.0.1'.
version = parse_version(twoaxistracking.__version__)
assert version > parse_version('0.0.1')
version = Version(twoaxistracking.__version__)
assert version > Version('0.0.1')

0 comments on commit fd63d47

Please sign in to comment.