MCPcopy Create free account
hub / github.com/comaps/comaps / setup

Function setup

tools/python/data/base.py:41–69  ·  view source on GitHub ↗
(
    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"),
)

Source from the content-addressed store, hash-verified

39
40
41def 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 )

Callers 8

setup.pyFile · 0.90
setup.pyFile · 0.90
setup.pyFile · 0.90
setup.pyFile · 0.90
setup.pyFile · 0.90
setup.pyFile · 0.85
setup_omim_pybindingFunction · 0.85
embedded_scanlineMethod · 0.85

Calls 5

chdirFunction · 0.90
get_versionFunction · 0.90
get_data_filesFunction · 0.85
setupMethod · 0.80
formatMethod · 0.80

Tested by

no test coverage detected