let setup read version from init

This commit is contained in:
k4yt3x 2022-02-12 06:45:59 +00:00
parent bfb0f339e2
commit ca1e593874
4 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,3 @@
[build-system]
requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"]
requires = ["setuptools>=46.4", "wheel", "setuptools_scm[toml]>=3.4.3"]
build-backend = "setuptools.build_meta"

View File

@ -10,7 +10,7 @@
[metadata]
name = video2x
version = 5.0.0-beta1
version = attr: video2x.__version__
author = K4YT3X
author_email = i@k4yt3x.com
license = GNU Affero General Public License v3.0

View File

@ -22,6 +22,11 @@ Date Created: July 3, 2021
Last Modified: February 11, 2022
"""
# version assignment has to precede imports to
# prevent setup.cfg from producing import errors
__version__ = "5.0.0-beta2"
# local imports
from .video2x import Video2X
from .upscaler import Upscaler
from .interpolator import Interpolator

View File

@ -22,6 +22,7 @@ Date Created: July 3, 2021
Last Modified: February 11, 2022
"""
# local imports
from .video2x import main