|
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__ = None |
| 19 | + |
| 20 | +repository_dir = os.path.dirname(__file__) |
| 21 | + |
| 22 | +# single source for project version information without side effects |
| 23 | +with open(os.path.join(repository_dir, 'mbed', '_version.py')) as fh: |
| 24 | + exec(fh.read()) |
| 25 | + |
| 26 | +# .rst readme needed for pypi |
| 27 | +with open(os.path.join(repository_dir, 'README.rst')) as fh: |
| 28 | + long_description = fh.read() |
| 29 | + |
| 30 | +with open(os.path.join(repository_dir, 'requirements.txt')) as fh: |
| 31 | + requirements = fh.readlines() |
| 32 | + |
| 33 | +with open("README.rst", "r") as fh: |
17 | 34 | long_description = fh.read()
|
18 | 35 |
|
19 | 36 | 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 | 37 | author='Arm mbed',
|
27 | 38 |
|
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 | 39 | classifiers=(
|
| 40 | + 'Development Status :: 5 - Production/Stable', |
| 41 | + 'Intended Audience :: Developers', |
| 42 | + 'License :: OSI Approved :: Apache Software License', |
37 | 43 | 'Programming Language :: Python :: 2',
|
38 | 44 | 'Programming Language :: Python :: 2.7',
|
39 | 45 | 'Programming Language :: Python :: 3',
|
40 |
| - 'Programming Language :: Python :: 3.4', |
41 | 46 | 'Programming Language :: Python :: 3.5',
|
42 | 47 | 'Programming Language :: Python :: 3.6',
|
43 | 48 | 'Programming Language :: Python :: 3.7',
|
44 |
| - "License :: OSI Approved :: Apache Software License", |
45 |
| - "Operating System :: OS Independent", |
| 49 | + 'Programming Language :: Python', |
| 50 | + 'Topic :: Internet', |
| 51 | + 'Topic :: Software Development :: Embedded Systems', |
| 52 | + 'Topic :: Software Development :: Object Brokering', |
46 | 53 | ),
|
47 |
| - install_requires=[ |
48 |
| - "pyserial>=3.0,<4.0", |
49 |
| - "mbed-os-tools>=0.0.9,<0.1.0", |
50 |
| - "mercurial>=5.2" |
51 |
| - ] |
| 54 | + description="Command line tool for interacting with Mbed OS projects", |
| 55 | + keywords="Mbed OS CLI", |
| 56 | + include_package_data=True, |
| 57 | + install_requires=requirements, |
| 58 | + license='Apache 2.0', |
| 59 | + long_description=long_description, |
| 60 | + name=NAME, |
| 61 | + packages=find_packages(), |
| 62 | + python_requires='>=2.7.10, !=3.4.1, !=3.4.2, <4', |
| 63 | + url="http://github.com/ARMmbed/mbed-cli", |
| 64 | + version=__version__, |
| 65 | + entry_points={ |
| 66 | + 'console_scripts': [ |
| 67 | + 'mbed=mbed.mbed:main', |
| 68 | + 'mbed-cli=mbed.mbed:main', |
| 69 | + ] |
| 70 | + } |
52 | 71 | )
|
0 commit comments