Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[bumpversion]
current_version = 0.0.3
commit = True
tag = True

[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
replace = version = "{new_version}"

[bumpversion:file:filecheck/FileCheck.py]
search = __version__ = '{current_version}'
replace = __version__ = '{new_version}'

14 changes: 3 additions & 11 deletions filecheck/FileCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,8 @@
from collections import namedtuple
from difflib import SequenceMatcher
from enum import Enum
from pkg_resources import DistributionNotFound, get_distribution


__project__ = 'filecheck'

try:
__version__ = get_distribution(__project__).version
except DistributionNotFound:
__version__ = '(local)'

VERSION = "{0} v{1}".format(__project__, __version__)
__version__ = '0.0.3'


class MatchType(Enum):
Expand Down Expand Up @@ -62,7 +53,8 @@ def print_help():


def print_version():
print(VERSION)
print(__version__)


def escape_non_regex_or_skip(match_obj):
non_regex = match_obj.group('non_regex')
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "filecheck"
version = "0.0.2"
version = "0.0.3"
description = "Python port of LLVM's FileCheck, flexible pattern matching file verifier"
authors = ["Stanislav Pankevich <s.pankevich@gmail.com>"]

Expand All @@ -9,6 +9,7 @@ python = "^3.4"

[tool.poetry.dev-dependencies]
lit = "^0.9"
bump2version = "0.5.11"

[tool.poetry.scripts]
filecheck = "filecheck.FileCheck:main"
Expand Down