Skip to content

Commit

Permalink
add _version.py facilitate keeping track of the version
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze committed May 8, 2024
1 parent a494253 commit 8d9020f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
9 changes: 5 additions & 4 deletions subliminal/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions subliminal/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '2.1.1-dev'

0 comments on commit 8d9020f

Please sign in to comment.