Skip to content

Setup classifier #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Dec 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
global-exclude *.py[cod] __pycache__ *.so
graft test
include README.md
include LICENSE
include CONTRIBUTING.md
include requirements.txt
include test_requirements.txt
8 changes: 7 additions & 1 deletion packages/mbed-greentea/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
include README.md LICENSE CONTRIBUTING.md
global-exclude *.py[cod] __pycache__ *.so
graft test
include README.md
include LICENSE
include CONTRIBUTING.md
include requirements.txt
include test_requirements.txt
include .coveragerc
2 changes: 2 additions & 0 deletions packages/mbed-greentea/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mbed-os-tools>=0.0.9,<0.1.0
mbed-host-tests>=1.5.0,<2
45 changes: 33 additions & 12 deletions packages/mbed-greentea/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,31 @@
from distutils.core import setup
from setuptools import find_packages


DESCRIPTION = "mbed 3.0 onwards test suite, codename Greentea. The test suite is a collection of tools that enable automated testing on mbed-enabled platforms"
OWNER_NAMES = 'Anna Bridge, Qinghao Shi'
OWNER_EMAILS = '[email protected], [email protected]'

repository_dir = os.path.dirname(__file__)


def read(fname):
"""
Utility function to cat in a file (used for the README)
@param fname: the name of the file to read, relative to the directory containing this file
@param fname: the name of the file to read,
relative to the directory containing this file
@return: The string content of the opened file
"""
return open(os.path.join(os.path.dirname(__file__), fname), encoding="utf-8").read()
with open(os.path.join(repository_dir, fname), mode='r') as f:
return f.read()


with open(os.path.join(repository_dir, 'requirements.txt')) as fh:
requirements = fh.readlines()

with open(os.path.join(repository_dir, 'test_requirements.txt')) as fh:
test_requirements = fh.readlines()

python_requires = '>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4'
setup(name='mbed-greentea',
version='1.7.3',
description=DESCRIPTION,
Expand All @@ -56,13 +66,24 @@ def read(fname):
license="Apache-2.0",
test_suite='test',
entry_points={
"console_scripts": ["mbedgt=mbed_greentea.mbed_greentea_cli:main",],
"console_scripts": ["mbedgt=mbed_greentea.mbed_greentea_cli:main", ],
},
install_requires=[
"mbed-os-tools>=0.0.9,<0.1.0",
"mbed-host-tests>=1.5.0,<2"
],
tests_require=[
"mock>=2"
]
)
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Embedded Systems',
'Topic :: Software Development :: Testing',
),
python_requires=python_requires,
install_requires=requirements,
tests_require=test_requirements
)
1 change: 1 addition & 0 deletions packages/mbed-greentea/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mock>=2
coverage
coveralls
5 changes: 5 additions & 0 deletions packages/mbed-host-tests/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
global-exclude *.py[cod] __pycache__ *.so
graft test
include README.md
include requirements.txt
include test_requirements.txt
include .coveragerc

1 change: 1 addition & 0 deletions packages/mbed-host-tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mbed-os-tools>=0.0.9,<0.1.0
45 changes: 34 additions & 11 deletions packages/mbed-host-tests/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,27 @@
OWNER_NAMES = 'Qinghao Shi'
OWNER_EMAILS = '[email protected]'

repository_dir = os.path.dirname(__file__)


def read(fname):
"""
Utility function to cat in a file (used for the README)
@param fname: the name of the file to read, relative to the directory containing this file
@param fname: the name of the file to read,
relative to the directory containing this file
@return: The string content of the opened file
"""
return open(os.path.join(os.path.dirname(__file__), fname), encoding="utf8").read()
with open(os.path.join(repository_dir, fname), mode='r') as f:
return f.read()


with open(os.path.join(repository_dir, 'requirements.txt')) as fh:
requirements = fh.readlines()

with open(os.path.join(repository_dir, 'test_requirements.txt')) as fh:
test_requirements = fh.readlines()

python_requires = '>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4'
setup(name='mbed-host-tests',
version='1.5.9',
description=DESCRIPTION,
Expand All @@ -55,14 +66,26 @@ def read(fname):
license="Apache-2.0",
test_suite='test',
entry_points={
"console_scripts":
["mbedhtrun=mbed_host_tests.mbedhtrun:main",
"mbedflsh=mbed_host_tests.mbedflsh:main"],
"console_scripts":
["mbedhtrun=mbed_host_tests.mbedhtrun:main",
"mbedflsh=mbed_host_tests.mbedflsh:main"],
},
install_requires=[
"mbed-os-tools>=0.0.9,<0.1.0"
],
tests_require=[
"mock>=2"
]
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Embedded Systems',
'Topic :: Software Development :: Testing',
),
python_requires=python_requires,
install_requires=requirements,
tests_require=test_requirements
)
1 change: 1 addition & 0 deletions packages/mbed-host-tests/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mock>=2
coverage
coveralls
6 changes: 5 additions & 1 deletion packages/mbed-ls/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
include README.md LICENSE CONTRIBUTING.md
global-exclude *.py[cod] __pycache__ *.so
graft test
include README.md
include requirements.txt
include test_requirements.txt
include .coveragerc
2 changes: 2 additions & 0 deletions packages/mbed-ls/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PrettyTable>=0.7.2
mbed-os-tools>=0.0.9,<0.1.0
46 changes: 33 additions & 13 deletions packages/mbed-ls/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,27 @@
OWNER_NAMES = 'Graham Hammond, Mark Edgeworth'
OWNER_EMAILS = '[email protected], [email protected]'

repository_dir = os.path.dirname(__file__)


def read(fname):
"""
Utility function to cat in a file (used for the README)
@param fname: the name of the file to read, relative to the directory containing this file
@param fname: the name of the file to read,
relative to the directory containing this file
@return: The string content of the opened file
"""
return open(os.path.join(os.path.dirname(__file__), fname), encoding="utf8").read()
with open(os.path.join(repository_dir, fname), mode='r') as f:
return f.read()


with open(os.path.join(repository_dir, 'requirements.txt')) as fh:
requirements = fh.readlines()

with open(os.path.join(repository_dir, 'test_requirements.txt')) as fh:
test_requirements = fh.readlines()

python_requires = '>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4'
setup(name='mbed-ls',
version='1.7.9',
description=DESCRIPTION,
Expand All @@ -51,19 +62,28 @@ def read(fname):
packages=find_packages(),
license="Apache-2.0",
test_suite='test',
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Embedded Systems',
),
python_requires=python_requires,
entry_points={
"console_scripts": [
"mbedls=mbed_lstools:mbedls_main",
],
"console_scripts": [
"mbedls=mbed_lstools:mbedls_main",
],
},
install_requires=[
"PrettyTable>=0.7.2",
"mbed-os-tools>=0.0.9,<0.1.0"
],
tests_require=[
"mock>=2",
"pytest>=3"
],
install_requires=requirements,
tests_require=test_requirements,
extras_require={
"colorized_logs": ["colorlog"]
}
Expand Down
2 changes: 2 additions & 0 deletions packages/mbed-ls/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
mock>=2
pytest>=3
coverage
coveralls
11 changes: 11 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
PySerial>=3.0,<4.0
requests>=2.0,<3.0
intelhex>=2.0,<3.0
future
PrettyTable>=0.7.2
fasteners
appdirs>=1.4,<2.0
junit-xml>=1.0,<2.0
lockfile
six>=1.0,<2.0
colorama>=0.3,<0.5
49 changes: 33 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,27 @@
OWNER_NAMES = "Jimmy Brisson, Brian Daniels"
OWNER_EMAILS = "[email protected], [email protected]"

repository_dir = os.path.dirname(__file__)


# Utility function to cat in a file (used for the README)
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname), 'r') as f:
"""
Utility function to cat in a file (used for the README)
@param fname: the name of the file to read,
relative to the directory containing this file
@return: The string content of the opened file
"""
with open(os.path.join(repository_dir, fname), mode='r') as f:
return f.read()


with open(os.path.join(repository_dir, 'requirements.txt')) as fh:
requirements = fh.readlines()

with open(os.path.join(repository_dir, 'test_requirements.txt')) as fh:
test_requirements = fh.readlines()

python_requires = '>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4'
setup(
name="mbed-os-tools",
version=read("src/mbed_os_tools/VERSION.txt").strip(),
Expand All @@ -44,20 +58,23 @@ def read(fname):
package_data={"": ["VERSION.txt"]},
license="Apache-2.0",
test_suite="test",
install_requires=[
"PySerial>=3.0,<4.0",
"requests>=2.0,<3.0",
"intelhex>=2.0,<3.0",
"future",
"PrettyTable>=0.7.2",
"fasteners",
"appdirs>=1.4,<2.0",
"junit-xml>=1.0,<2.0",
"lockfile",
"six>=1.0,<2.0",
"colorama>=0.3,<0.5",
],
tests_require=read("test_requirements.txt").splitlines(),
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python',
'Topic :: Software Development :: Build Tools',
'Topic :: Software Development :: Embedded Systems',
),
python_requires=python_requires,
install_requires=requirements,
tests_require=test_requirements,
extras_require={
"pyocd": ["pyocd==0.14.0"]
},
Expand Down