コード例 #1
0
    def test_git_info_provider(self):
        info_provider = GitInfoProvider()

        commit_id = get_commit_id()
        commit_date = get_commit_date()

        self.assertEqual(commit_id, info_provider.commit_id)
        self.assertEqual(commit_date, info_provider.commit_date)
コード例 #2
0
    def test_git_utilities(self):
        commit_id = get_commit_id()
        commit_date = get_commit_date()

        here = os.path.abspath(os.path.dirname(__file__))

        write_git_info(here, commit_id, commit_date)

        info = read_git_info(here)

        self.assertEqual(commit_id, info.get("commit_id"))
        self.assertEqual(commit_date, info.get("commit_date"))
コード例 #3
0
    def test_git_utilities(self):
        commit_id = get_commit_id()
        commit_date = get_commit_date()

        here = os.path.abspath(os.path.dirname(__file__))

        write_git_info(here, commit_id, commit_date)

        info = read_git_info(here)

        self.assertEqual(commit_id, info.get("commit_id"))
        self.assertEqual(commit_date, info.get("commit_date"))

        try:
            os.remove(os.path.join(here, "git_info.json"))
        except:
            pass
コード例 #4
0
from setuptools import setup, find_packages
from codecs import open
from os import path
from hazelcast import __version__
from hazelcast.version import write_git_info, get_commit_id, get_commit_date

here = path.abspath(path.dirname(__file__))

commit_id = get_commit_id()
commit_date = get_commit_date()
write_git_info(here, commit_id, commit_date)

# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
    long_description = f.read()

stats_requirements = [
    'psutil',
]

extras = {
    'stats': stats_requirements,
}

setup(
    name='hazelcast-python-client',
    version=__version__,
    description='Hazelcast Python Client',
    long_description=long_description,
    long_description_content_type='text/markdown',
    url='https://github.com/hazelcast/hazelcast-python-client',