4 Star 5 Fork 0

ARMmbed/mbed-os

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 1.77 KB
一键复制 编辑 原始数据 按行查看 历史
0xc0170 提交于 2016-07-29 14:23 +08:00 . Setup - fix progen def name - use dashes
"""
This module defines the attributes of the
PyPI package for the Mbed SDK
"""
from shutil import copyfileobj
from os.path import isfile, join
from tempfile import TemporaryFile
from setuptools import find_packages
from distutils.core import setup
LICENSE = open('LICENSE').read()
DESCRIPTION = """A set of Python scripts that can be used to compile programs written on top of the `mbed framework`_. It can also be used to export mbed projects to other build systems and IDEs (uVision, IAR, makefiles).
.. _mbed framework: http://mbed.org"""
OWNER_NAMES = 'emilmont, bogdanm'
OWNER_EMAILS = 'Emilio.Monti@arm.com, Bogdan.Marinescu@arm.com'
# If mbed_settings.py exists in tools, read it in a temporary file
# so it can be restored later
mbed_settings = join('mbed_settings.py')
backup = None
if isfile(mbed_settings):
backup = TemporaryFile()
with open(mbed_settings, "rb") as f:
copyfileobj(f, backup)
# Create the correct mbed_settings.py for the distribution
with open(mbed_settings, "wt") as f:
f.write("from mbed_settings import *\n")
setup(name='mbed-tools',
version='0.1.14',
description='Build and test system for mbed',
long_description=DESCRIPTION,
author=OWNER_NAMES,
author_email=OWNER_EMAILS,
maintainer=OWNER_NAMES,
maintainer_email=OWNER_EMAILS,
url='https://github.com/mbedmicro/mbed',
packages=find_packages(),
license=LICENSE,
install_requires=["PrettyTable>=0.7.2", "PySerial>=2.7", "IntelHex>=1.3", "colorama>=0.3.3", "Jinja2>=2.7.3", "project-generator>=0.9.3,<0.10.0", "project-generator-definitions>=0.2.26,<0.3.0", "junit-xml", "requests", "pyYAML"])
# Restore previous mbed_settings if needed
if backup:
backup.seek(0)
with open(mbed_settings, "wb") as f:
copyfileobj(backup, f)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/armmbed/mbed-os.git
git@gitee.com:armmbed/mbed-os.git
armmbed
mbed-os
mbed-os
mbed-os-5.1

搜索帮助