Skip to content

Commit

Permalink
added --version command and git tags
Browse files Browse the repository at this point in the history
  • Loading branch information
iskandr committed Feb 27, 2024
1 parent ca896c3 commit 3a6e299
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
5 changes: 4 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ python3 -m pip install --upgrade build && \
python3 -m pip install --upgrade twine && \
rm -rf dist && \
python3 -m build && \
python3 -m twine upload dist/*
git --help && \
python3 -m twine upload dist/* && \
git tag "$(python3 pyensembl/version.py)" && \
git push --tags
13 changes: 10 additions & 3 deletions pyensembl/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,24 @@
import argparse
import logging.config
import pkg_resources
import os

from .ensembl_release import EnsemblRelease, MAX_ENSEMBL_RELEASE
from .ensembl_release import EnsemblRelease
from .ensembl_versions import MAX_ENSEMBL_RELEASE
from .genome import Genome
from .species import Species
from .version import __version__

logging.config.fileConfig(pkg_resources.resource_filename(__name__, "logging.conf"))
logger = logging.getLogger(__name__)


parser = argparse.ArgumentParser(usage=__doc__)

parser.add_argument(
"--version",
action="version",
version='%(prog)s {version}'.format(version=__version__)
)

parser.add_argument(
"--overwrite",
default=False,
Expand Down
8 changes: 7 additions & 1 deletion pyensembl/version.py
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
__version__ = "2.3.9"
__version__ = "2.3.10"

def print_version():
print(f"v{__version__}")

if __name__ == "__main__":
print_version()

0 comments on commit 3a6e299

Please sign in to comment.