2017-06-05 16:02:39 +03:00
|
|
|
# Copyright (c) 2014-present PlatformIO <contact@platformio.org>
|
2015-11-18 17:16:17 +02:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
2014-05-18 23:38:59 +03:00
|
|
|
|
|
|
|
from setuptools import find_packages, setup
|
|
|
|
|
2019-09-27 17:22:21 +03:00
|
|
|
from platformio import (
|
|
|
|
__author__,
|
|
|
|
__description__,
|
|
|
|
__email__,
|
|
|
|
__license__,
|
|
|
|
__title__,
|
|
|
|
__url__,
|
|
|
|
__version__,
|
|
|
|
)
|
2020-03-20 15:11:14 +02:00
|
|
|
from platformio.compat import PY2, WINDOWS
|
2020-02-14 13:49:41 +02:00
|
|
|
|
2015-10-13 18:24:40 +01:00
|
|
|
|
2021-01-18 18:20:26 +02:00
|
|
|
minimal_requirements = [
|
|
|
|
"bottle==0.12.*",
|
2020-03-20 15:11:14 +02:00
|
|
|
"click>=5,<8%s" % (",!=7.1,!=7.1.1" if WINDOWS else ""),
|
2016-12-28 15:55:08 +02:00
|
|
|
"colorama",
|
2021-01-18 18:20:26 +02:00
|
|
|
"marshmallow%s" % (">=2,<3" if PY2 else ">=2,<4"),
|
|
|
|
"pyelftools>=0.27,<1",
|
|
|
|
"pyserial==3.*",
|
|
|
|
"requests==2.*",
|
|
|
|
"semantic_version==2.8.*",
|
|
|
|
"tabulate==0.8.*",
|
2015-12-30 00:13:38 +02:00
|
|
|
]
|
|
|
|
|
2021-01-18 20:51:50 +02:00
|
|
|
if not PY2:
|
2021-03-31 17:33:26 +03:00
|
|
|
minimal_requirements.append("zeroconf==0.29.*")
|
2021-01-18 20:51:50 +02:00
|
|
|
|
2021-01-18 18:20:26 +02:00
|
|
|
home_requirements = [
|
|
|
|
"aiofiles==0.6.*",
|
2021-03-01 17:59:40 +02:00
|
|
|
"ajsonrpc==1.1.*",
|
2021-01-18 18:20:26 +02:00
|
|
|
"starlette==0.14.*",
|
|
|
|
"uvicorn==0.13.*",
|
|
|
|
"wsproto==1.0.*",
|
|
|
|
]
|
2020-02-14 13:49:41 +02:00
|
|
|
|
2014-05-18 23:38:59 +03:00
|
|
|
setup(
|
|
|
|
name=__title__,
|
|
|
|
version=__version__,
|
|
|
|
description=__description__,
|
|
|
|
long_description=open("README.rst").read(),
|
|
|
|
author=__author__,
|
|
|
|
author_email=__email__,
|
|
|
|
url=__url__,
|
|
|
|
license=__license__,
|
2021-01-18 18:20:26 +02:00
|
|
|
install_requires=minimal_requirements + ([] if PY2 else home_requirements),
|
2020-09-04 17:55:30 +02:00
|
|
|
packages=find_packages(exclude=["tests.*", "tests"]) + ["scripts"],
|
2015-04-24 14:43:13 +01:00
|
|
|
package_data={
|
|
|
|
"platformio": [
|
|
|
|
"ide/tpls/*/.*.tpl",
|
2015-09-05 10:45:09 +03:00
|
|
|
"ide/tpls/*/*.tpl",
|
|
|
|
"ide/tpls/*/*/*.tpl",
|
2019-09-27 17:22:21 +03:00
|
|
|
"ide/tpls/*/.*/*.tpl",
|
2018-10-12 19:35:58 +03:00
|
|
|
],
|
2019-09-27 17:22:21 +03:00
|
|
|
"scripts": ["99-platformio-udev.rules"],
|
2015-04-24 14:43:13 +01:00
|
|
|
},
|
2014-05-18 23:38:59 +03:00
|
|
|
entry_points={
|
|
|
|
"console_scripts": [
|
2019-09-27 17:22:21 +03:00
|
|
|
"platformio = platformio.__main__:main",
|
2016-01-14 01:26:24 +02:00
|
|
|
"pio = platformio.__main__:main",
|
2017-04-28 01:38:25 +03:00
|
|
|
"piodebuggdb = platformio.__main__:debug_gdb_main",
|
2014-05-18 23:38:59 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
classifiers=[
|
2015-02-25 21:22:54 +02:00
|
|
|
"Development Status :: 5 - Production/Stable",
|
2014-05-18 23:38:59 +03:00
|
|
|
"Environment :: Console",
|
|
|
|
"Intended Audience :: Developers",
|
2015-11-18 17:16:17 +02:00
|
|
|
"License :: OSI Approved :: Apache Software License",
|
2014-05-18 23:38:59 +03:00
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: C",
|
|
|
|
"Programming Language :: Python",
|
2018-12-26 20:54:29 +02:00
|
|
|
"Programming Language :: Python :: 3",
|
2014-05-18 23:38:59 +03:00
|
|
|
"Topic :: Software Development",
|
|
|
|
"Topic :: Software Development :: Build Tools",
|
2019-09-27 17:22:21 +03:00
|
|
|
"Topic :: Software Development :: Compilers",
|
2015-02-27 22:56:22 +02:00
|
|
|
],
|
2015-12-07 17:17:01 +02:00
|
|
|
keywords=[
|
2019-09-27 17:22:21 +03:00
|
|
|
"iot",
|
|
|
|
"embedded",
|
|
|
|
"arduino",
|
|
|
|
"mbed",
|
|
|
|
"esp8266",
|
|
|
|
"esp32",
|
|
|
|
"fpga",
|
|
|
|
"firmware",
|
|
|
|
"continuous-integration",
|
|
|
|
"cloud-ide",
|
|
|
|
"avr",
|
|
|
|
"arm",
|
|
|
|
"ide",
|
|
|
|
"unit-testing",
|
|
|
|
"hardware",
|
|
|
|
"verilog",
|
|
|
|
"microcontroller",
|
|
|
|
"debug",
|
|
|
|
],
|
|
|
|
)
|