Finish up cache and fix tests.
Still TODO: Merge with ignore functionality.
This commit is contained in:
11 files changed
+263
-106
No files matched your search
@@ -22,14 +22,13 @@ PROJECT_DIR = path.abspath(path.dirname(__file__))
|
||||
|
||||
def get_version():
|
||||
constants = path.join(PROJECT_DIR, 'django_migration_linter', 'constants.py')
|
||||
_version_re = re.compile(r"__VERSION__\s+=\s+(?P<version>.*)")
|
||||
_version_re = re.compile(r"__version__\s+=\s+(?P<version>.*)")
|
||||
with open(constants, "r") as f:
|
||||
match = _version_re.search(f.read())
|
||||
version = match.group("version") if match is not None else '"unknown"'
|
||||
return str(ast.literal_eval(version))
|
||||
|
||||
|
||||
|
||||
with open(path.join(PROJECT_DIR, 'README.rst')) as f:
|
||||
long_description = f.read()
|
||||
|
||||
|
||||
Reference in new issue
Block a user