def test_dev_version(self): self.git_describe_mock.return_value = 'v1.0.0' version_ = version.get_git_version() self.assertEqual(version_, '1.0.0') self.git_describe_mock.return_value = 'v2.3rc0' version_ = version.get_git_version() self.assertEqual(version_, '2.3rc0')
if hasattr(sys, 'real_prefix'): return result for dir, files in data_files: includes = [] for item in files: includes.extend(explode_glob_path(item)) result.append((dir, includes)) return result ##################################################################### setup( name='galaxy', version=version.get_git_version(), author='Ansible, Inc.', author_email='*****@*****.**', description='Galaxy: Find, reuse and share the best Ansible content.', long_description='Galaxy is a web site and command line tool for ' 'creating and sharing Ansible roles.', license='Apache-2.0', keywords='ansible galaxy', url='http://github.com/ansible/galaxy', packages=['galaxy'], include_package_data=True, zip_safe=False, setup_requires=[], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment',
def test_no_git_tag_fallback(self): self.git_describe_mock.return_value = 'ef14bf1' self.assertEqual(version.get_git_version(), '0.0.0.dev0+ef14bf1') self.git_describe_mock.assert_called_once()