Project

General

Profile

« Previous | Next » 

Revision 7b0a8d29

Added by Benjamin Dauvergne about 11 years ago

setup.py: allow dirty packages

View differences:

setup.py
69 69
        result = p.communicate()[0]
70 70
        assert p.returncode == 0, 'git returned non-zero'
71 71
        new_version = result.split()[0][1:]
72
        assert not new_version.endswith('-dirty'), 'git workdir is not clean'
73 72
        assert new_version.split('-')[0] == version, '__version__ must match the last git annotated tag'
74 73
        version = new_version.replace('-', '.')
75 74
    return version

Also available in: Unified diff