iotedgedev/setup.py

67 строки
2.0 KiB
Python
Исходник Обычный вид История

2017-12-30 03:39:34 +03:00
#!/usr/bin/env python
Add telemetry (#258) * Add iotedgehubdev class * Build solution before start iotedgehubdev * Update templates to fix route error * Fail fast if device connection string is not set before setup * Allow start iotedgehubdev in verbose mode * Add modulecred command * Add gateway_host option to setup command * Add start command * Remove references to runtime * Remove runtime.template.json from template.zip * Only start local registry when pushing images so config/deployment.json only generated after build * Check if the solution is built before starting simulator * Instruct users to setup for starting * Add tests * Enlarge monitor timeout when testing simulator * Fix a issue with spaces in paths * Prevent deploy command overwriting configs * Promote setup, start and stop commands to root * Update unit of monitor timeout to seconds * Add telemetry modules * Update config folder to home dir * Add with_telemetry decorator to commands * Add tests * Defer exception handling to with_telemetry decorator * Fix test failure * Fix unfinished conflict resolve * Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter * Container docker compose support (#243) Adding docker compose to container * Support for multiple registries (#193) * envvar parsing of multiple container registries * rename value, support for pushing modules based on module.json * string comparison code clean up * modify envvars with better values & refactor dockercls and .env.tmp * modified variable names, minor fixes, added envvar testing specific to container registry * add tests for additional cr, comments to explain code, fix merge conflict * add additional testing for mutliple registries, fix logic around given/expected env vars * fix env load in tests * Tell travis to use DOTENV_FILE * Mod process timeout for new monitor-events (#253) * Merge upstream changes * Rename config to telemetryconfig * Defer telemetry decorator to handle errors * Fix CI failure
2018-08-17 17:20:45 +03:00
from setuptools import find_packages, setup
2018-11-01 12:29:47 +03:00
with open('CHANGELOG.md') as history_file:
2017-12-30 03:39:34 +03:00
history = history_file.read()
requirements = [
'click>=6.0',
2020-08-18 10:00:00 +03:00
'bcrypt<=3.1.7',
'docker >= 3.7.0',
2017-12-30 03:39:34 +03:00
'python-dotenv',
'requests >= 2.20.0, <= 2.25.1',
'fstrings',
2021-07-08 00:33:49 +03:00
'azure-cli-core >= 2.25.0',
'iotedgehubdev == 0.14.14',
'applicationinsights == 0.11.9',
'commentjson == 0.9.0',
'pyyaml>=5.4',
'pypiwin32==219; sys_platform == "win32" and python_version < "3.6"',
'pypiwin32==223; sys_platform == "win32" and python_version >= "3.6"',
'more-itertools < 8.1.0'
2017-12-30 03:39:34 +03:00
]
setup_requirements = [
]
test_requirements = [
]
setup(
name='iotedgedev',
version='3.3.4',
description='The Azure IoT Edge Dev Tool greatly simplifies the IoT Edge development process by automating many routine manual tasks, such as building, deploying, pushing modules and configuring the IoT Edge Runtime.',
long_description='See https://github.com/azure/iotedgedev for usage instructions.',
author='Microsoft Corporation',
author_email='vsciet@microsoft.com',
url='https://github.com/azure/iotedgedev',
2017-12-30 03:39:34 +03:00
packages=find_packages(include=['iotedgedev']),
entry_points={
'console_scripts': [
'iotedgedev=iotedgedev.cli:main'
]
},
include_package_data=True,
install_requires=requirements,
license='MIT license',
2017-12-30 03:39:34 +03:00
zip_safe=False,
keywords='azure iot edge dev tool',
python_requires='>=3.6, <3.10',
2017-12-30 03:39:34 +03:00
classifiers=[
'Development Status :: 5 - Production/Stable',
2017-12-30 03:39:34 +03:00
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9'
2017-12-30 03:39:34 +03:00
],
test_suite='tests',
tests_require=test_requirements,
setup_requires=setup_requirements
2017-12-30 03:39:34 +03:00
)