[F] Fix reading version requires typing dependency
This commit is contained in:
parent
6192b47758
commit
573eb09f74
3 changed files with 4 additions and 3 deletions
1
hyfetch/__version__.py
Normal file
1
hyfetch/__version__.py
Normal file
|
@ -0,0 +1 @@
|
||||||
|
VERSION = '1.4.7'
|
|
@ -5,9 +5,9 @@ from dataclasses import dataclass
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from .types import LightDark
|
from .types import LightDark
|
||||||
|
from .__version__ import VERSION
|
||||||
|
|
||||||
CONFIG_PATH = Path.home() / '.config/hyfetch.json'
|
CONFIG_PATH = Path.home() / '.config/hyfetch.json'
|
||||||
VERSION = '1.4.7'
|
|
||||||
|
|
||||||
|
|
||||||
TEST_ASCII = r"""
|
TEST_ASCII = r"""
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -3,7 +3,7 @@ import pathlib
|
||||||
|
|
||||||
from setuptools import setup, find_namespace_packages
|
from setuptools import setup, find_namespace_packages
|
||||||
|
|
||||||
import hyfetch.constants
|
from hyfetch.__version__ import VERSION
|
||||||
|
|
||||||
# The directory containing this file
|
# The directory containing this file
|
||||||
HERE = pathlib.Path(__file__).parent
|
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
|
# This call to setup() does all the work
|
||||||
setup(
|
setup(
|
||||||
name="HyFetch",
|
name="HyFetch",
|
||||||
version=hyfetch.constants.VERSION,
|
version=VERSION,
|
||||||
description="neofetch with flags <3",
|
description="neofetch with flags <3",
|
||||||
long_description=README,
|
long_description=README,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
|
Loading…
Reference in a new issue