Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using deprecated/removed pkg_resources #49

Merged
merged 1 commit into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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')
Loading