|
24 | 24 | PACKAGE_DESC = 'Python client library for IBM Cloud Platform Services'
|
25 | 25 |
|
26 | 26 | with open('requirements.txt') as f:
|
27 |
| - install_requires = [str(req) for req in pkg_resources.parse_requirements(f)] |
| 27 | + install_requires = [ |
| 28 | + str(req) for req in pkg_resources.parse_requirements(f) |
| 29 | + ] |
28 | 30 | with open('requirements-dev.txt') as f:
|
29 | 31 | tests_require = [str(req) for req in pkg_resources.parse_requirements(f)]
|
30 | 32 |
|
|
38 | 40 | os.system('python setup.py sdist upload -r pypi')
|
39 | 41 | sys.exit()
|
40 | 42 |
|
41 |
| -class PyTest(TestCommand): |
42 |
| - def finalize_options(self): |
43 |
| - TestCommand.finalize_options(self) |
44 |
| - self.test_args = ['--strict', '--verbose', '--tb=long', 'test'] |
45 |
| - self.test_suite = True |
46 |
| - |
47 |
| - def run_tests(self): |
48 |
| - import pytest |
49 |
| - errcode = pytest.main(self.test_args) |
50 |
| - sys.exit(errcode) |
51 |
| - |
52 |
| -class PyTestUnit(PyTest): |
53 |
| - def finalize_options(self): |
54 |
| - self.test_args = ['--strict', '--verbose', '--tb=long', 'test/unit'] |
55 |
| - |
56 |
| -class PyTestIntegration(PyTest): |
57 |
| - def finalize_options(self): |
58 |
| - self.test_args = ['--strict', '--verbose', '--tb=long', 'test/integration'] |
59 |
| - |
60 | 43 | with open("README.md", "r") as fh:
|
61 | 44 | readme = fh.read()
|
62 | 45 |
|
63 |
| -setup(name=PACKAGE_NAME.replace('_', '-'), |
64 |
| - version=__version__, |
65 |
| - description=PACKAGE_DESC, |
66 |
| - license='Apache 2.0', |
67 |
| - install_requires=install_requires, |
68 |
| - tests_require=tests_require, |
69 |
| - cmdclass={'test': PyTest, 'test_unit': PyTestUnit, 'test_integration': PyTestIntegration}, |
70 |
| - author='IBM', |
71 |
| - |
72 |
| - long_description=readme, |
73 |
| - long_description_content_type='text/markdown', |
74 |
| - url='https://github.com/IBM/platform-services-python-sdk', |
75 |
| - packages=[PACKAGE_NAME], |
76 |
| - include_package_data=True, |
77 |
| - keywords=PACKAGE_NAME, |
78 |
| - classifiers=[ |
79 |
| - 'Programming Language :: Python', |
80 |
| - 'Programming Language :: Python :: 3', |
81 |
| - 'Programming Language :: Python :: 3.5', |
82 |
| - 'Programming Language :: Python :: 3.6', |
83 |
| - 'Programming Language :: Python :: 3.7', |
84 |
| - 'Programming Language :: Python :: 3.8', |
85 |
| - 'Development Status :: 4 - Beta', |
86 |
| - 'Intended Audience :: Developers', |
87 |
| - 'License :: OSI Approved :: Apache Software License', |
88 |
| - 'Operating System :: OS Independent', |
89 |
| - 'Topic :: Software Development :: Libraries :: Python Modules', |
90 |
| - 'Topic :: Software Development :: Libraries :: Application Frameworks', |
91 |
| - ], |
92 |
| - zip_safe=True |
93 |
| - ) |
| 46 | +setup( |
| 47 | + name=PACKAGE_NAME.replace('_', '-'), |
| 48 | + version=__version__, |
| 49 | + description=PACKAGE_DESC, |
| 50 | + license='Apache 2.0', |
| 51 | + install_requires=install_requires, |
| 52 | + tests_require=tests_require, |
| 53 | + author='IBM', |
| 54 | + |
| 55 | + long_description=readme, |
| 56 | + long_description_content_type='text/markdown', |
| 57 | + url='https://github.com/IBM/platform-services-python-sdk', |
| 58 | + packages=[PACKAGE_NAME], |
| 59 | + include_package_data=True, |
| 60 | + keywords=PACKAGE_NAME, |
| 61 | + classifiers=[ |
| 62 | + 'Programming Language :: Python', |
| 63 | + 'Programming Language :: Python :: 3', |
| 64 | + 'Programming Language :: Python :: 3.6', |
| 65 | + 'Programming Language :: Python :: 3.7', |
| 66 | + 'Programming Language :: Python :: 3.8', |
| 67 | + 'Programming Language :: Python :: 3.9', |
| 68 | + 'Development Status :: 4 - Beta', |
| 69 | + 'Intended Audience :: Developers', |
| 70 | + 'License :: OSI Approved :: Apache Software License', |
| 71 | + 'Operating System :: OS Independent', |
| 72 | + 'Topic :: Software Development :: Libraries :: Python Modules', |
| 73 | + 'Topic :: Software Development :: Libraries :: Application Frameworks', |
| 74 | + ], |
| 75 | + zip_safe=True) |
0 commit comments