Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --version command to CLI and add -dev to develop version #131

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading