()
| 41 | |
| 42 | |
| 43 | def get_hash(): |
| 44 | if os.path.exists('.git'): |
| 45 | sha = get_git_hash()[:7] |
| 46 | # currently ignore this |
| 47 | # elif os.path.exists(version_file): |
| 48 | # try: |
| 49 | # from ram.version import __version__ |
| 50 | # sha = __version__.split('+')[-1] |
| 51 | # except ImportError: |
| 52 | # raise ImportError('Unable to get git version') |
| 53 | else: |
| 54 | sha = 'unknown' |
| 55 | |
| 56 | return sha |
| 57 | |
| 58 | |
| 59 | def write_version_py(): |
no test coverage detected