2828OWNER_NAMES = 'Graham Hammond, Mark Edgeworth'
29293030
31+ repository_dir = os .path .dirname (__file__ )
3132
3233def read (fname ):
3334 """
3435 Utility function to cat in a file (used for the README)
3536 @param fname: the name of the file to read, relative to the directory containing this file
3637 @return: The string content of the opened file
3738 """
38- return open (os .path .join (os .path .dirname (__file__ ), fname ), encoding = "utf8" ).read ()
39+ with open (os .path .join (repository_dir , fname ),
40+ encoding = "utf8" ) as f :
41+ return f .read ()
3942
4043
44+ with open (os .path .join (repository_dir , 'requirements.txt' )) as fh :
45+ requirements = fh .readlines ()
46+
4147setup (name = 'mbed-ls' ,
4248 version = '1.7.9' ,
4349 description = DESCRIPTION ,
@@ -51,15 +57,27 @@ def read(fname):
5157 packages = find_packages (),
5258 license = "Apache-2.0" ,
5359 test_suite = 'test' ,
60+ classifiers = (
61+ 'Development Status :: 5 - Production/Stable' ,
62+ 'Intended Audience :: Developers' ,
63+ 'License :: OSI Approved :: Apache Software License' ,
64+ 'Programming Language :: Python :: 2' ,
65+ 'Programming Language :: Python :: 2.7' ,
66+ 'Programming Language :: Python :: 3' ,
67+ 'Programming Language :: Python :: 3.5' ,
68+ 'Programming Language :: Python :: 3.6' ,
69+ 'Programming Language :: Python :: 3.7' ,
70+ 'Programming Language :: Python' ,
71+ 'Topic :: Software Development :: Build Tools' ,
72+ 'Topic :: Software Development :: Embedded Systems' ,
73+ ),
74+ python_requires = '>=2.7.10, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4' ,
5475 entry_points = {
55- "console_scripts" : [
56- "mbedls=mbed_lstools:mbedls_main" ,
57- ],
76+ "console_scripts" : [
77+ "mbedls=mbed_lstools:mbedls_main" ,
78+ ],
5879 },
59- install_requires = [
60- "PrettyTable>=0.7.2" ,
61- "mbed-os-tools>=0.0.9,<0.1.0"
62- ],
80+ install_requires = requirements ,
6381 tests_require = [
6482 "mock>=2" ,
6583 "pytest>=3"
0 commit comments