1
0
Fork 0
mirror of synced 2024-05-21 04:52:51 +12:00
Rare/setup.py
Stelios Tsampas 1c296474c5 Add a bunch of accumulated fixes.
Shared: Require an argument to initialize the each singleton, if it is called uninitialized, raise a RuntimeError
InstallDialog: Use QCheckBox label for the information text and remove the layout
LaunchDialog: Minor code clarity improvements
Console: add a Dialog with the process's environment variables
GameUtils: Inherit the system's environment and not a clean one
ImportGroup: Add the ability to automatically import all games in a folder
RareStyle: Use rgb values, remove hex codes and rgba values
IndicatorLineEdit/PathEdit: Infer object names from class name, don't override layout method
Models: Type fields as Optional (`Union[<something>, None]`)
Paths: Use pathlib for everything

Signed-off-by: Stelios Tsampas <loathingkernel@gmail.com>
2022-05-05 13:27:39 +03:00

52 lines
1.4 KiB
Python

import setuptools
from rare import __version__ as version
with open("README.md", "r") as fh:
long_description = fh.read()
requirements = [
"requests<3.0",
"setuptools",
"wheel",
"PyQt5",
"QtAwesome",
"psutil",
"pypresence",
'pywin32; platform_system == "Windows"',
]
optional_reqs = dict(
webview=[
'pywebview[gtk]; platform_system == "Linux"',
'pywebview[cef]; platform_system == "Windows"',
]
)
setuptools.setup(
name="Rare",
version=version,
author="Dummerle",
license="GPL-3",
description="A gui for Legendary",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Dummerle/Rare",
packages=setuptools.find_packages() + [
"rare.legendary." + i for i in setuptools.find_packages(where="rare/legendary")
] + ["rare.resources"],
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
"Operating System :: OS Independent"
],
include_package_data=True,
python_requires=">=3.8",
entry_points=dict(console_scripts=["rare=rare.__main__:main"]),
install_requires=requirements,
extras_require=optional_reqs
)