Skip to content

Commit

Permalink
build: add version
Browse files Browse the repository at this point in the history
  • Loading branch information
kod-kristoff committed Jan 9, 2024
1 parent c32ce60 commit bfd2f04
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[bumpversion]
current_version = 0.1.0
commit = True
tag = True
allow_dirty = True

[bumpversion:file:pyproject.toml]
search = VERSION = "{current_version}"
replace = VERSION = "{new_version}"
2 changes: 2 additions & 0 deletions src/sparv_bert_neighbour/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
),
]

VERSION = "0.1.0"

logger = get_logger(__name__)

TOK_SEP = " "
Expand Down
1 change: 1 addition & 0 deletions tests/requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
sparv-pipeline>=5.2.0
transformers>=4.34.1
tabulate>=0.9.0
pytest>=7
5 changes: 5 additions & 0 deletions tests/test_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import sparv_bert_neighbour


def test_version() -> None:
assert sparv_bert_neighbour.VERSION == "0.1.0"

0 comments on commit bfd2f04

Please sign in to comment.