hyfetch/setup.py

53 lines
1.6 KiB
Python
Raw Normal View History

2022-07-30 10:02:01 -06:00
#!/usr/bin/env python3
2023-10-02 17:17:42 -06:00
from pathlib import Path
2023-03-23 19:22:30 -06:00
from setuptools import setup, find_namespace_packages
2022-04-10 20:50:11 -06:00
2022-04-10 01:20:30 -06:00
# The directory containing this file
2023-10-02 17:17:42 -06:00
HERE = Path(__file__).parent
# Load version without importing it (see issue #192 if you are confused)
for l in (HERE / 'hyfetch' / '__version__.py').read_text().strip().splitlines():
exec(l)
2022-04-10 01:20:30 -06:00
# The text of the README file
2022-08-30 17:11:33 -06:00
README = (HERE / "README.md").read_text('utf-8')
2022-04-10 01:20:30 -06:00
# This call to setup() does all the work
setup(
name="HyFetch",
version=VERSION,
2022-04-10 01:20:30 -06:00
description="neofetch with flags <3",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/hykilpikonna/HyFetch",
author="Azalea Gui",
author_email="me@hydev.org",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
2022-04-10 20:50:11 -06:00
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
2022-04-10 01:20:30 -06:00
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
2022-12-12 17:21:09 -07:00
"Programming Language :: Python :: 3.11",
2022-04-10 01:20:30 -06:00
],
2023-03-23 19:22:30 -06:00
packages=find_namespace_packages(),
2022-04-10 03:21:39 -06:00
package_data={'hyfetch': ['hyfetch/*']},
2022-04-10 01:20:30 -06:00
include_package_data=True,
install_requires=[
# Universal dependencies
'setuptools', 'typing_extensions',
# Windows dependencies
'psutil ; platform_system=="Windows"',
'colorama>=0.4.6 ; platform_system=="Windows"',
],
2022-04-10 01:20:30 -06:00
entry_points={
"console_scripts": [
2022-04-10 03:21:39 -06:00
"hyfetch=hyfetch.main:run",
2022-04-10 01:20:30 -06:00
]
},
2022-07-30 10:02:01 -06:00
scripts=['hyfetch/scripts/neowofetch']
2022-04-10 01:20:30 -06:00
)