(
source_file,
suffix,
relative_data_paths,
packages=None,
package_dir=None,
install_requires=None,
cmdclass=None,
supported_pythons=("2", "2.7", "3", "3.5", "3.6", "3.7", "3.8", "3.9"),
)
| 39 | |
| 40 | |
| 41 | def setup( |
| 42 | source_file, |
| 43 | suffix, |
| 44 | relative_data_paths, |
| 45 | packages=None, |
| 46 | package_dir=None, |
| 47 | install_requires=None, |
| 48 | cmdclass=None, |
| 49 | supported_pythons=("2", "2.7", "3", "3.5", "3.6", "3.7", "3.8", "3.9"), |
| 50 | ): |
| 51 | with chdir(os.path.abspath(os.path.dirname(source_file))): |
| 52 | setuptools.setup( |
| 53 | name="omim-data-{}".format(suffix), |
| 54 | version=str(get_version()), |
| 55 | author="CoMaps", |
| 56 | author_email="info@comaps.app", |
| 57 | description="This package contains {} data files.".format(suffix), |
| 58 | url="https://codeberg.org/comaps", |
| 59 | packages=[] if packages is None else packages, |
| 60 | package_dir={} if package_dir is None else package_dir, |
| 61 | cmdclass={} if cmdclass is None else cmdclass, |
| 62 | classifiers=["License :: OSI Approved :: Apache Software License",] |
| 63 | + [ |
| 64 | "Programming Language :: Python :: {}".format(supported_python) |
| 65 | for supported_python in supported_pythons |
| 66 | ], |
| 67 | install_requires=install_requires or [], |
| 68 | data_files=get_data_files(relative_data_paths), |
| 69 | ) |
no test coverage detected