[F] Fix reading version requires typing dependency

This commit is contained in:
Azalea Gui 2023-03-23 21:23:40 -04:00
parent 6192b47758
commit 573eb09f74
No known key found for this signature in database
GPG key ID: E289FAC0DA92DD2B
3 changed files with 4 additions and 3 deletions

1
hyfetch/__version__.py Normal file
View file

@ -0,0 +1 @@
VERSION = '1.4.7'

View file

@ -5,9 +5,9 @@ from dataclasses import dataclass
from pathlib import Path
from .types import LightDark
from .__version__ import VERSION
CONFIG_PATH = Path.home() / '.config/hyfetch.json'
VERSION = '1.4.7'
TEST_ASCII = r"""

View file

@ -3,7 +3,7 @@ import pathlib
from setuptools import setup, find_namespace_packages
import hyfetch.constants
from hyfetch.__version__ import VERSION
# The directory containing this file
HERE = pathlib.Path(__file__).parent
@ -14,7 +14,7 @@ README = (HERE / "README.md").read_text('utf-8')
# This call to setup() does all the work
setup(
name="HyFetch",
version=hyfetch.constants.VERSION,
version=VERSION,
description="neofetch with flags <3",
long_description=README,
long_description_content_type="text/markdown",