Skip to content

Commit aa4ee05

Browse files
acabarbayemadchutney
authored andcommitted
Updating python_requires and classifiers (#937)
* Updating python_requires and classifiers - Fixed a python 3 issue in circle_tests - Updated `setup.py` * Update setup.py Co-Authored-By: Graham Hammond <[email protected]> * fixing the format bug in Readme * Removed the version file * Update setup.py Co-Authored-By: Graham Hammond <[email protected]> * Added new line * Add newline to file
1 parent 49505b9 commit aa4ee05

File tree

6 files changed

+47
-31
lines changed

6 files changed

+47
-31
lines changed

MANIFEST.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
include README.md LICENSE pypi_readme.rst
1+
global-exclude *.py[cod] __pycache__ *.so
22
graft test
3+
include README.rst
4+
include LICENSE
5+
include requirements.txt

README.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

pypi_readme.rst renamed to README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
.. image:: https://circleci.com/gh/ARMmbed/mbed-cli.svg?style=svg
1+
Arm Mbed CLI
2+
============
23

34
Mbed CLI is the name of the `Arm Mbed <https://mbed.com>`_ command line tool, packaged as mbed-cli, which enables the full mbed workflow: repositories version control, maintaining dependencies, publishing code, updating from remotely hosted repositories (GitHub, GitLab and mbed.com), and invoking Arm Mbed's own build system and export functions, among other operations.
45

circle_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,5 @@ def remove_readonly(func, path, _):
7474
proc.communicate()
7575

7676
if proc.returncode != 0:
77-
print "\n------------\nERROR: \"%s\"" % cmd
77+
print("\n------------\nERROR: \"%s\"" % cmd)
7878
sys.exit(1)

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pyserial>=3.0,<4.0
2+
mbed-os-tools>=0.0.9,<0.1.0
3+
mercurial>=5.2

setup.py

Lines changed: 37 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,41 +12,55 @@
1212

1313
import os
1414
from setuptools import setup
15+
from setuptools import find_packages
1516

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:
1730
long_description = fh.read()
1831

1932
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',
2633
author='Arm mbed',
2734
author_email='[email protected]',
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',
3635
classifiers=(
36+
'Development Status :: 5 - Production/Stable',
37+
'Intended Audience :: Developers',
38+
'License :: OSI Approved :: Apache Software License',
3739
'Programming Language :: Python :: 2',
3840
'Programming Language :: Python :: 2.7',
3941
'Programming Language :: Python :: 3',
40-
'Programming Language :: Python :: 3.4',
4142
'Programming Language :: Python :: 3.5',
4243
'Programming Language :: Python :: 3.6',
4344
'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',
4648
),
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+
}
5266
)

0 commit comments

Comments
 (0)