hyfetch/setup.py

59 lines
2 KiB
Python
Raw Normal View History

2022-07-30 12:02:01 -04:00
#!/usr/bin/env python3
2023-10-02 19:17:42 -04:00
from pathlib import Path
2023-03-23 21:22:30 -04:00
from setuptools import setup, find_namespace_packages
2022-04-10 22:50:11 -04:00
2022-04-10 03:20:30 -04:00
# The directory containing this file
2023-10-02 19:17:42 -04:00
HERE = Path(__file__).parent
# Load version without importing it (see issue #192 if you are confused)
2024-12-22 06:23:17 -05:00
VERSION = [l for l in (HERE / "Cargo.toml").read_text('utf-8').splitlines() if l.startswith("version = ")]
if len(VERSION) != 1:
raise ValueError(f"Cannot determine version from Cargo.toml: {VERSION}")
VERSION = VERSION[0].split('"')[1]
2022-04-10 03:20:30 -04:00
# The text of the README file
2022-08-30 19:11:33 -04:00
README = (HERE / "README.md").read_text('utf-8')
2022-04-10 03:20:30 -04:00
# This call to setup() does all the work
setup(
name="HyFetch",
version=VERSION,
2022-04-10 03:20:30 -04: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 22:50:11 -04:00
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
2022-04-10 03:20:30 -04:00
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
2022-12-12 19:21:09 -05:00
"Programming Language :: Python :: 3.11",
2024-04-23 07:42:08 -04:00
"Programming Language :: Python :: 3.12",
2024-12-22 00:27:22 -05:00
"Programming Language :: Python :: 3.13",
2022-04-10 03:20:30 -04:00
],
2024-05-16 20:00:50 +08:00
packages=find_namespace_packages(exclude=("tools", "tools.*")),
2022-04-10 05:21:39 -04:00
package_data={'hyfetch': ['hyfetch/*']},
2022-04-10 03:20:30 -04:00
include_package_data=True,
install_requires=[
# Universal dependencies
'typing_extensions; python_version < "3.8"',
# Windows dependencies
'psutil ; platform_system=="Windows"',
'colorama>=0.4.6 ; platform_system=="Windows"',
],
2022-04-10 03:20:30 -04:00
entry_points={
"console_scripts": [
2024-12-22 06:19:24 -05:00
"hyfetch.v1=hyfetch.__main__:run_py",
"hyfetch.rs=hyfetch.__main__:run_rust",
"hyfetch=hyfetch.__main__:run_rust",
2022-04-10 03:20:30 -04:00
]
},
2022-07-30 12:02:01 -04:00
scripts=['hyfetch/scripts/neowofetch']
2022-04-10 03:20:30 -04:00
)