diff --git a/pyproject.toml b/pyproject.toml index 032024d5..2d08c52a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -121,7 +121,7 @@ readme = {file = ["README.rst", "HISTORY.rst"]} # https://docs.astral.sh/ruff/ [tool.ruff] line-length = 120 -src = ["src", "tests"] +src = ["subliminal", "tests"] [tool.ruff.lint] pydocstyle = { convention = "pep257" } diff --git a/subliminal/__init__.py b/subliminal/__init__.py index 250a2c32..55df5aa3 100644 --- a/subliminal/__init__.py +++ b/subliminal/__init__.py @@ -1,13 +1,14 @@ # -*- coding: utf-8 -*- -__title__ = 'subliminal' -__version__ = '2.1.1-dev' + +import logging + +from ._version import __version__ __short_version__ = '.'.join(__version__.split('.')[:2]) +__title__ = 'subliminal' __author__ = 'Antoine Bertin' __license__ = 'MIT' __copyright__ = 'Copyright 2016, Antoine Bertin' -import logging - from .core import (AsyncProviderPool, ProviderPool, check_video, download_best_subtitles, download_subtitles, list_subtitles, refine, save_subtitles, scan_video, scan_videos) from .cache import region diff --git a/subliminal/_version.py b/subliminal/_version.py new file mode 100644 index 00000000..50e8c5ae --- /dev/null +++ b/subliminal/_version.py @@ -0,0 +1 @@ +__version__ = '2.1.1-dev'