mirror of
https://github.com/platformio/platformio-core.git
synced 2025-10-04 09:30:55 +02:00
Significantly speedup PlatformIO Home loading time by migrating to native Python 3 Asynchronous I/O
This commit is contained in:
25
setup.py
25
setup.py
@@ -26,19 +26,26 @@ from platformio import (
|
||||
from platformio.compat import PY2, WINDOWS
|
||||
|
||||
|
||||
install_requires = [
|
||||
"bottle<0.13",
|
||||
minimal_requirements = [
|
||||
"bottle==0.12.*",
|
||||
"click>=5,<8%s" % (",!=7.1,!=7.1.1" if WINDOWS else ""),
|
||||
"colorama",
|
||||
"pyserial>=3,<4,!=3.3",
|
||||
"requests>=2.4.0,<3",
|
||||
"semantic_version>=2.8.1,<3",
|
||||
"tabulate>=0.8.3,<1",
|
||||
"pyelftools>=0.25,<1",
|
||||
"marshmallow%s" % (">=2,<3" if PY2 else ">=2"),
|
||||
"marshmallow%s" % (">=2,<3" if PY2 else ">=2,<4"),
|
||||
"pyelftools>=0.27,<1",
|
||||
"pyserial==3.*",
|
||||
"requests==2.*",
|
||||
"semantic_version==2.8.*",
|
||||
"tabulate==0.8.*",
|
||||
"zeroconf==%s" % ("0.19.*" if PY2 else "0.28.*"),
|
||||
]
|
||||
|
||||
home_requirements = [
|
||||
"aiofiles==0.6.*",
|
||||
"json-rpc==1.13.*",
|
||||
"starlette==0.14.*",
|
||||
"uvicorn==0.13.*",
|
||||
"wsproto==1.0.*",
|
||||
]
|
||||
|
||||
setup(
|
||||
name=__title__,
|
||||
@@ -52,7 +59,7 @@ setup(
|
||||
python_requires=", ".join(
|
||||
[">=2.7", "!=3.0.*", "!=3.1.*", "!=3.2.*", "!=3.3.*", "!=3.4.*"]
|
||||
),
|
||||
install_requires=install_requires,
|
||||
install_requires=minimal_requirements + ([] if PY2 else home_requirements),
|
||||
packages=find_packages(exclude=["tests.*", "tests"]) + ["scripts"],
|
||||
package_data={
|
||||
"platformio": [
|
||||
|
Reference in New Issue
Block a user