Make PySide dependencies optional

This commit is contained in:
Fabian 2021-11-17 20:46:48 +01:00
parent 36e644a736
commit d806cbe6f3
3 changed files with 22 additions and 3 deletions

View File

@ -1,4 +1,4 @@
MIT License Copyright (c) 2020 Faerbit
MIT License Copyright (c) 2020 - 2021 Faerbit
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,21 @@
Simple time tracking app written with Python and Qt5
Some JIRA integration is available.
Some Jira integration is built in.
## Installation, Qt versions and You
Fime supports using both Qt 5 and Qt 6 via their respective PySide packages.
On Linux I recommend installing the PySide package provided by the distribution.
Install `PySide2` for Qt 5 or `PySide6` for Qt 6.
Run `pip install --user fime` in that case.
On other OSes or if you decide not to follow my recommendation run either
* `pip install --user fime[qt5]` or
* `pip install --user fime[qt6]`
Note that it both versions of PySide are installed Qt 6 will be preferred.
## Config file

View File

@ -5,6 +5,7 @@ author_email = faerbit@posteo.net
description = Simple time tracking app written with Python and Qt5
long_description = file: README.md
long_description_content_type = text/markdown
license = MIT License
url = https://git.faerb.it/faerbit/fime
classifiers =
Programming Language :: Python :: 3
@ -12,6 +13,7 @@ classifiers =
Operating System :: OS Independent
[options]
zip_safe = True
package_dir =
= src
packages = find:
@ -19,11 +21,14 @@ python_requires = >=3.8
install_requires =
requests
requests-futures
PySide2
[options.packages.find]
where = src
[options.extras_require]
qt5 = PySide2
qt6 = PySide6
[options.entry_points]
gui_scripts =
fime = fime.main:main