mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 15:55:49 -04:00
chore: avoid setuptools for version
We might be missing setuptools in certain circumstances in later pythons, but importlib is available from Python 3.8+.
This commit is contained in:
parent
cb309acffd
commit
418758fc22
@ -19,9 +19,9 @@ limitations under the License.
|
||||
|
||||
import logging
|
||||
import structlog
|
||||
from pkg_resources import get_distribution as _get_distribution
|
||||
from importlib.metadata import version as _version
|
||||
|
||||
__version__ = _get_distribution("brozzler").version
|
||||
__version__ = _version("brozzler")
|
||||
|
||||
|
||||
class ShutdownRequested(Exception):
|
||||
|
Loading…
x
Reference in New Issue
Block a user