Skip to content

Commit

Permalink
Add bumpver for version increment [WIP][PATCH]
Browse files Browse the repository at this point in the history
  • Loading branch information
surajpaib committed Nov 16, 2021
1 parent e7da26a commit 2615013
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/ganslate_testing_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,12 @@ jobs:
- name: Test with pytest
run: |
pytest
- name: Bump version to patch with bumpver
if: "PATCH" in ${{github.event.head_commit.message}}
run: bumpver update -n --patch
- name: Bump version to minor with bumpver
if: "MINOR" in ${{github.event.head_commit.message}}
run: bumpver update -n --minor
- name: Bump version to major with bumpver
if: "MAJOR" in ${{github.event.head_commit.message}}
run: bumpver update -n --major
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5494572.svg)](https://doi.org/10.5281/zenodo.5494572)

[![Python package](https://github.com/ganslate-team/ganslate/actions/workflows/ganslate_testing_suite.yml/badge.svg)](https://github.com/ganslate-team/ganslate/actions/workflows/ganslate_testing_suite.yml)

# `ganslate` - a simple and extensible GAN image-to-image translation framework

For comprehensive documentation, visit: https://ganslate.readthedocs.io/en/latest/
Expand Down
13 changes: 12 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,15 @@ requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"
build-backend = "setuptools.build_meta"
[tool.bumpver]
current_version = "0.1.2"
version_pattern = "MAJOR.MINOR.PATCH"

[tool.bumpver.file_patterns]
"pyproject.toml" = [
'current_version = "{version}"',
]
"setup.cfg" = [
"version = {version}"
]
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ install_requires =
click
cookiecutter
wget
bumpver

# The usage of test_requires is discouraged, see `Dependency Management` docs
# tests_require = pytest; pytest-cov
Expand Down

0 comments on commit 2615013

Please sign in to comment.