|
12 | 12 |
|
13 | 13 | import os
|
14 | 14 | from setuptools import setup
|
| 15 | +from setuptools import find_packages |
15 | 16 |
|
16 |
| -with open("README.md", "r") as fh: |
| 17 | +NAME = 'mbed-cli' |
| 18 | +__version__ = '1.10.3' |
| 19 | + |
| 20 | +repository_dir = os.path.dirname(__file__) |
| 21 | + |
| 22 | +# .rst readme needed for pypi |
| 23 | +with open(os.path.join(repository_dir, 'README.rst')) as fh: |
| 24 | + long_description = fh.read() |
| 25 | + |
| 26 | +with open(os.path.join(repository_dir, 'requirements.txt')) as fh: |
| 27 | + requirements = fh.readlines() |
| 28 | + |
| 29 | +with open("README.rst", "r") as fh: |
17 | 30 | long_description = fh.read()
|
18 | 31 |
|
19 | 32 | setup(
|
20 |
| - name="mbed-cli", |
21 |
| - version="1.10.2", |
22 |
| - description="Arm Mbed command line tool for repositories version control, publishing and updating code from remotely hosted repositories (GitHub, GitLab and mbed.com), and invoking Mbed OS own build system and export functions, among other operations", |
23 |
| - long_description=long_description, |
24 |
| - long_description_content_type="text/markdown", |
25 |
| - url='http://github.com/ARMmbed/mbed-cli', |
26 | 33 | author='Arm mbed',
|
27 | 34 |
|
28 |
| - packages=["mbed"], |
29 |
| - entry_points={ |
30 |
| - 'console_scripts': [ |
31 |
| - 'mbed=mbed.mbed:main', |
32 |
| - 'mbed-cli=mbed.mbed:main', |
33 |
| - ] |
34 |
| - }, |
35 |
| - python_requires='>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.0, !=3.4.1, !=3.4.2, <4', |
36 | 35 | classifiers=(
|
| 36 | + 'Development Status :: 5 - Production/Stable', |
| 37 | + 'Intended Audience :: Developers', |
| 38 | + 'License :: OSI Approved :: Apache Software License', |
37 | 39 | 'Programming Language :: Python :: 2',
|
38 | 40 | 'Programming Language :: Python :: 2.7',
|
39 | 41 | 'Programming Language :: Python :: 3',
|
40 |
| - 'Programming Language :: Python :: 3.4', |
41 | 42 | 'Programming Language :: Python :: 3.5',
|
42 | 43 | 'Programming Language :: Python :: 3.6',
|
43 | 44 | 'Programming Language :: Python :: 3.7',
|
44 |
| - "License :: OSI Approved :: Apache Software License", |
45 |
| - "Operating System :: OS Independent", |
| 45 | + 'Programming Language :: Python', |
| 46 | + 'Topic :: Software Development :: Build Tools', |
| 47 | + 'Topic :: Software Development :: Embedded Systems', |
46 | 48 | ),
|
47 |
| - install_requires=[ |
48 |
| - "pyserial>=3.0,<4.0", |
49 |
| - "mbed-os-tools>=0.0.9,<0.1.0", |
50 |
| - "mercurial>=5.2" |
51 |
| - ] |
| 49 | + description="Command line tool for interacting with Mbed OS projects", |
| 50 | + keywords="Mbed OS CLI", |
| 51 | + include_package_data=True, |
| 52 | + install_requires=requirements, |
| 53 | + license='Apache 2.0', |
| 54 | + long_description=long_description, |
| 55 | + name=NAME, |
| 56 | + packages=find_packages(), |
| 57 | + python_requires='>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4', |
| 58 | + url="http://github.com/ARMmbed/mbed-cli", |
| 59 | + version=__version__, |
| 60 | + entry_points={ |
| 61 | + 'console_scripts': [ |
| 62 | + 'mbed=mbed.mbed:main', |
| 63 | + 'mbed-cli=mbed.mbed:main', |
| 64 | + ] |
| 65 | + } |
52 | 66 | )
|
0 commit comments