[tool.black]
line-length = 120
target-version = ['py39', 'py310', 'py311']
include = '\.py$'
force-exclude = '''
/(
    | rare/ui
    | rare/legendary
    | rare/resources
)/
'''

[tool.poetry]
name = "rare"
version = "1.10.9"
description = "A GUI for Legendary"
authors = ["Dummerle"]
license = "GPL3"
readme = "README.md"
repository = "https://github.com/RareDevs/Rare"

[tool.poetry.dependencies]
python = "^3.9"
PyQt5 = "^5.15.7"
requests = "^2.28.1"
QtAwesome = "^1.1.1"
pypresence = { version = "^4.2.1", optional = true }
pywin32 = { version = "^304", markers = "platform_system == 'Windows'" }
pywebview = [
    { version = "^3.6.3", extras = ["cef"], platform = "windows", optional = true },
    { version = "^3.6.3", extras = ["gtk"], platform = "linux", optional = true },
    { version = "^3.6.3", extras = ["gtk"], platform = "freebsd", optional = true },
]
legendary-gl = "^0.20.34"
orjson = "^3.8.0"
typing-extensions = "^4.3.0"

[tool.poetry.scripts]
start = "rare.main:main"

[tool.poetry.dev-dependencies]
Nuitka = "^1.0.6"
pylint = "^2.15.0"
black = "^22.6.0"
PyQt5-stubs = "^5.15.6.0"

#[build-system]
#requires = ["setuptools>=42", "wheel", "nuitka", "toml"]
#build-backend = "nuitka.distutils.Build"

[nuitka]
assume-yes-for-downloads = true
follow-imports = true
prefer-source-code = true
mingw64 = true
lto = true
static-libpython = false
standalone = true
show-scons = false
enable-plugin = ["anti-bloat", "pyqt5"]
show-anti-bloat-changes = true
nofollow-import-to = ["*.tests", "*.distutils"]
include-package-data = "qtawesome"
include-data-dir = "rare/resources/images=rare/resources/images"
include-data-files = "rare/resources/languages=rare/resources/laguanges=*.qm"
windows-icon-from-ico = "rare/resources/images/Rare.ico"
windows-company-name = "Rare"
windows-product-name = "Rare"
windows-file-version = "1.9.0"
windows-product-version = "1.9.0"
windows-disable-console = true
