How to use the carbonate.__version__ function in carbonate

To help you get started, we’ve selected a few carbonate examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github graphite-project / carbonate / setup.py View on Github external
class my_install_scripts(install_scripts):
    def write_script(self, script_name, contents, mode="t", *ignored):
        contents = re.sub("import sys",
                          "import sys\nsys.path.append('/opt/graphite/lib')",
                          contents)
        install_scripts.write_script(self, script_name, contents,
                                     mode="t", *ignored)


def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()


setup(
    name="carbonate",
    version=__version__,
    author="Scott Sanders",
    author_email="scott@jssjr.com",
    description=("Tools for managing federated carbon clusters."),
    license="MIT",
    keywords="graphite carbon",
    url="https://github.com/jssjr/carbonate",
    include_package_data=True,
    packages=find_packages(),
    long_description=read('README.md'),
    long_description_content_type='text/markdown',
    install_requires=[
      "carbon",
      "whisper",
    ],
    cmdclass={'install_scripts': my_install_scripts},
    entry_points={