2014-05-18 23:38:59 +03:00
|
|
|
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
|
|
|
# See LICENSE for details.
|
|
|
|
|
2014-07-31 16:58:03 +03:00
|
|
|
from platform import system
|
2014-06-21 18:20:54 +03:00
|
|
|
|
2014-05-18 23:38:59 +03:00
|
|
|
from setuptools import find_packages, setup
|
|
|
|
|
|
|
|
from platformio import (__author__, __description__, __email__, __license__,
|
2015-10-13 18:24:40 +01:00
|
|
|
__title__, __url__, __version__, util)
|
|
|
|
|
|
|
|
install_requires = [
|
|
|
|
"bottle",
|
|
|
|
"click>=3.2",
|
|
|
|
"lockfile>=0.9.1",
|
|
|
|
"pyserial<3",
|
|
|
|
"requests>=2.4.0"
|
|
|
|
]
|
|
|
|
|
|
|
|
if system() == "Windows":
|
|
|
|
install_requires.append("colorama")
|
|
|
|
|
|
|
|
if (not util.test_scons() and not util.install_scons()) or util.scons_in_pip():
|
|
|
|
install_requires.append("scons")
|
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__,
|
2015-10-13 18:24:40 +01:00
|
|
|
install_requires=install_requires,
|
2014-05-18 23:38:59 +03:00
|
|
|
packages=find_packages(),
|
2015-04-24 14:43:13 +01:00
|
|
|
package_data={
|
|
|
|
"platformio": [
|
|
|
|
"projectconftpl.ini",
|
|
|
|
"boards/*.json",
|
|
|
|
"ide/tpls/*/.*.tpl",
|
2015-09-05 10:45:09 +03:00
|
|
|
"ide/tpls/*/*.tpl",
|
|
|
|
"ide/tpls/*/*/*.tpl",
|
|
|
|
"ide/tpls/*/.*/*.tpl"
|
2015-04-24 14:43:13 +01:00
|
|
|
]
|
|
|
|
},
|
2014-05-18 23:38:59 +03:00
|
|
|
entry_points={
|
|
|
|
"console_scripts": [
|
|
|
|
"platformio = platformio.__main__:main"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
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",
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
"Programming Language :: C",
|
|
|
|
"Programming Language :: Python",
|
|
|
|
"Topic :: Software Development",
|
|
|
|
"Topic :: Software Development :: Build Tools",
|
|
|
|
"Topic :: Software Development :: Compilers"
|
2015-02-27 22:56:22 +02:00
|
|
|
],
|
2015-06-29 22:26:37 +03:00
|
|
|
keywords=(
|
|
|
|
"builder library manager embedded development ide continuous "
|
|
|
|
"integration atmel avr sam espressif esp freescale kinetis nordic "
|
|
|
|
"nrf51 nxp lpc silicon labs efm32 st stm32 ti msp430 tiva teensy "
|
|
|
|
"arduino mbed libopencm3"
|
|
|
|
)
|
2014-05-18 23:38:59 +03:00
|
|
|
)
|