Skip to content

Commit

Permalink
add version command and set dev version to --dev (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
RMeli authored Jun 21, 2024
1 parent 13dce11 commit 8ce0ede
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@

------------------------------------------------------------------------------

## Version 0.9.0

Date: XX/YY/ZZZ
Contributors: @RMeli

### Added

* `--version` CLI option [PR # | @RMeli]

## Version 0.8.0

Date: 28/05/2024
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
description=short_description[0],
long_description=long_description,
long_description_content_type="text/markdown",
version="0.8.0",
version="0.9.0-dev",
license="MIT",
packages=find_packages(),
include_package_data=True,
Expand Down
2 changes: 1 addition & 1 deletion spyrmsd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .graph import _get_backend as get_backend # noqa: F401
from .graph import _set_backend as set_backend # noqa: F401

__version__ = "0.8.0"
__version__ = "0.9.0-dev"

# This will print latest Zenodo version
due.cite(
Expand Down
5 changes: 4 additions & 1 deletion spyrmsd/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from spyrmsd.rmsd import rmsdwrapper

parser = ap.ArgumentParser(
prog="python -m spyrmsd",
prog="spyrmsd",
description="Symmetry-corrected RMSD calculations in Python.",
)

Expand All @@ -37,6 +37,9 @@
parser.add_argument(
"-v", "--verbose", action="store_true", help="Enable verbose mode"
)
parser.add_argument(
"-V", "--version", action="version", version=f"%(prog)s {spyrmsd.__version__}"
)

args = parser.parse_args()

Expand Down

0 comments on commit 8ce0ede

Please sign in to comment.