This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from setuptools import setup, find_packages | |
import subprocess | |
def _get_version_hash(): | |
"""Talk to git and find out the tag/hash of our latest commit""" | |
try: | |
p = subprocess.Popen(["git", "describe", | |
"--tags", "--dirty", "--always"], | |
stdout=subprocess.PIPE) | |
except EnvironmentError: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Copy this Regular Expression into Find / Replace: | |
\r\n|\n|\r | |
Then click 'Replace All' and bye bye line breaks. | |
[note] make sure there is no white space before or after the expression |