Skip to content

Commit

Permalink
Merge pull request #4 from Point72/tkp/bmv
Browse files Browse the repository at this point in the history
Move from deprecated bump2version to bump-my-version
  • Loading branch information
timkpaine authored Aug 11, 2024
2 parents f37a40f + a92e455 commit ce480de
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
13 changes: 0 additions & 13 deletions .bumpversion.cfg

This file was deleted.

20 changes: 18 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies = [

[project.optional-dependencies]
develop = [
"bump2version>=1.0.0",
"bump-my-version",
"check-manifest",
"codespell>=2.2.6,<2.3",
"hatchling",
Expand All @@ -59,6 +59,22 @@ test = [
Repository = "https://github.com/point72/csp-adapter-slack"
Homepage = "https://github.com/point72/csp-adapter-slack"

[toolbumpversion]
current_version = "0.1.0"
commit = true
tag = false
commit_args = "-s"

[[tool.bumpversion.files]]
filename = "csp_adapter_slack/__init__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'

[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'

[tool.check-manifest]
ignore = []

Expand Down Expand Up @@ -110,4 +126,4 @@ section-order = [
"third-party",
"first-party",
"local-folder",
]
]

0 comments on commit ce480de

Please sign in to comment.