-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
112 lines (102 loc) · 3.8 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
import pathlib
from setuptools import setup, find_packages
here = pathlib.Path(__file__).parent
exec((here / "qtrio" / "_version.py").read_text(encoding="utf-8"))
LONG_DESC = (here / "README.rst").read_text(encoding="utf-8")
# >= 6 for type hints
pytest = "pytest >= 6"
# >= 0.7.0 for trio_run configuration support
pytest_trio = "pytest-trio >= 0.7.0"
# >= 19.9.0rc1 for https://github.com/twisted/towncrier/issues/144
towncrier = "towncrier >= 19.9.0rc1"
extras_cli = ["click"]
extras_examples = [*extras_cli]
setup(
name="qtrio",
version=__version__,
description=(
"a library bringing Qt GUIs together with ``async`` and ``await`` via Trio"
),
url="https://github.com/altendky/qtrio",
project_urls={
"Documentation": "https://qtrio.readthedocs.io/",
"Chat": "https://gitter.im/python-trio/general",
"Forum": "https://trio.discourse.group/",
"Issues": "https://github.com/altendky/qtrio/issues",
"Repository": "https://github.com/altendky/qtrio",
"Tests": "https://github.com/altendky/qtrio/actions?query=branch%3Amaster",
"Coverage": "https://codecov.io/gh/altendky/qtrio",
"Distribution": "https://pypi.org/project/qtrio",
},
long_description=LONG_DESC,
author="Kyle Altendorf",
author_email="sda@fstab.net",
license="MIT -or- Apache License 2.0",
packages=find_packages(),
install_requires=[
"async_generator",
"attrs",
"decorator",
"outcome",
"qtpy",
# trio >= 0.16 for guest mode
"trio >= 0.16",
# python_version < '3.8' for `Protocol`
"typing-extensions; python_version < '3.8'",
],
extras_require={
"p_checks": ["black", "flake8", "mypy", pytest, towncrier],
"p_docs": [
# >= 3.2: https://github.com/sphinx-doc/sphinx/issues/8008
# >= 3.2.1: https://github.com/sphinx-doc/sphinx/issues/8124
# != 3.4.0, != 3.4.1: https://github.com/sphinx-doc/sphinx/issues/8567
"sphinx >= 3.2.1, != 3.4.0, != 3.4.1",
"sphinx-autodoc-typehints",
"sphinx-qt-documentation>=0.3",
"sphinx_rtd_theme",
"sphinxcontrib-trio",
towncrier,
],
"p_tests": [
*extras_cli,
*extras_examples,
"click",
"coverage",
pytest,
"pytest-cov",
"pytest-faulthandler",
"pytest-qt",
pytest_trio,
'pytest-xvfb; sys_platform == "linux"',
],
"cli": extras_cli,
"examples": extras_examples,
"pyqt5": [
# >= 5.15.1 for https://www.riverbankcomputing.com/pipermail/pyqt/2020-July/043064.html
"pyqt5 >= 5.15.1",
"pyqt5-stubs",
],
# != 5.15.2 for https://bugreports.qt.io/browse/PYSIDE-1431
"pyside2": ["pyside2 != 5.15.2"],
"testing": [pytest_trio],
},
entry_points={"console_scripts": ["qtrio = qtrio._cli:cli"]},
keywords=["async", "io", "Trio", "GUI", "Qt", "PyQt5", "PySide2"],
python_requires=">=3.6",
classifiers=[
"License :: OSI Approved :: MIT License",
"License :: OSI Approved :: Apache Software License",
"Framework :: Trio",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: CPython",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: User Interfaces",
],
)