Skip to content

Commit

Permalink
Remove bump2version dependency and instead use poetry version command.
Browse files Browse the repository at this point in the history
…Close #1
  • Loading branch information
Philip Schömig committed Oct 23, 2020
1 parent 419a5ad commit bba22c9
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 43 deletions.
12 changes: 0 additions & 12 deletions .bumpversion.cfg

This file was deleted.

44 changes: 16 additions & 28 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ packages = [
[tool.poetry.dependencies]
python = "^3.6.2"
anytree = "^2.8.0"
importlib-metadata = {version = "^2.0.0", python = "<3.8"}

# formatters and linters
bandit = {version = "^1.6.2", optional = true}
Expand All @@ -43,14 +44,12 @@ pytest-benchmark = {version = "^3.2.3", optional = true}
pytest-cov = {version = "^2.10.0", optional = true}

# others
bump2version = {version = "^1.0.0", optional = true}
pre-commit = {version = "^2.5.1", optional = true}
tox = {version = "^3.15.2", optional = true}

[tool.poetry.extras]
dev = [
"black",
"bump2version",
"isort",
"pytest",
"pytest-benchmark",
Expand Down
8 changes: 7 additions & 1 deletion src/bertlv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
from . import generator, parser
from .tree import Tree

__version__ = "0.3.0"
try:
import importlib.metadata as importlib_metadata
except ModuleNotFoundError:
# noinspection PyUnresolvedReferences
import importlib_metadata

__version__ = importlib_metadata.version(__name__)
__author__ = "Philip Schömig"


Expand Down

0 comments on commit bba22c9

Please sign in to comment.