Skip to content

Commit

Permalink
🏗️ pkg_resources is deprecated using packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
vokimon committed Dec 4, 2024
1 parent 1059725 commit 6b7288b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions wavefile/wavefile_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,15 @@
from . import wavefile
import unittest
import numpy as np
from packaging.version import Version as v
from numpy.testing import (
assert_almost_equal as np_assert_almost_equal,
)

def v(versiontext):
import pkg_resources
return pkg_resources.parse_version(versiontext)

class WavefileTest(unittest.TestCase):

def setUp(self):
self.filestoremove = []
import pkg_resources
self.sfversion = wavefile._lib.sf_version_string().decode()
self.version = v(self.sfversion[len('libsndfile-'):])

Expand Down Expand Up @@ -587,7 +583,6 @@ def test_save_monoInSingleDimension_forConvenience(self):
class Format_Test(unittest.TestCase):

def setUp(self):
import pkg_resources
self.sfversion = wavefile._lib.sf_version_string().decode()
self.version = v(self.sfversion[len('libsndfile-'):])
self.maxDiff = None
Expand Down

0 comments on commit 6b7288b

Please sign in to comment.