[+] Python 3.7 3.8 support

This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-04-10 22:50:11 -04:00
parent 9ec3f74c0d
commit b9dfa5e200
6 changed files with 19 additions and 7 deletions

View file

@ -1,6 +1,9 @@
from __future__ import annotations
from . import main
__version__ = '1.0.1' __version__ = '1.0.1'
from . import main
if __name__ == '__main__': if __name__ == '__main__':
main.run() main.run()

View file

@ -1,5 +1,8 @@
from __future__ import annotations
import colorsys import colorsys
from typing import NamedTuple, Literal from typing import NamedTuple
from typing_extensions import Literal
AnsiMode = Literal['default', 'ansi', '8bit', 'rgb'] AnsiMode = Literal['default', 'ansi', '8bit', 'rgb']

View file

@ -1,10 +1,11 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from __future__ import annotations
import argparse import argparse
import json import json
from dataclasses import dataclass from dataclasses import dataclass
from pathlib import Path from pathlib import Path
from typing import Literal, Iterable from typing import Iterable
from hypy_utils import printc, json_stringify, color from hypy_utils import printc, json_stringify, color

View file

@ -1,3 +1,5 @@
from __future__ import annotations
import os import os
import re import re
from pathlib import Path from pathlib import Path

View file

@ -1,7 +1,6 @@
from __future__ import annotations from __future__ import annotations
from dataclasses import dataclass from typing_extensions import Literal
from typing import Literal, Optional
from .color_util import RGB from .color_util import RGB

View file

@ -1,6 +1,8 @@
import pathlib import pathlib
from setuptools import setup
import hyfetch import hyfetch
from setuptools import setup, find_packages
# The directory containing this file # The directory containing this file
HERE = pathlib.Path(__file__).parent HERE = pathlib.Path(__file__).parent
@ -22,13 +24,15 @@ setup(
classifiers=[ classifiers=[
"License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",
], ],
packages=['hyfetch'], packages=['hyfetch'],
package_data={'hyfetch': ['hyfetch/*']}, package_data={'hyfetch': ['hyfetch/*']},
include_package_data=True, include_package_data=True,
install_requires=['hypy_utils==1.0.5'], install_requires=['hypy_utils==1.0.6', 'typing_extensions'],
entry_points={ entry_points={
"console_scripts": [ "console_scripts": [
"hyfetch=hyfetch.main:run", "hyfetch=hyfetch.main:run",