File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22
33import argparse
4+ import importlib .metadata
45import logging
56import os
67import sys
78from argparse import RawTextHelpFormatter
89
910from academic .import_bibtex import import_bibtex
10- from academic .version import VERSION
1111
1212# Initialise logger.
1313logging .basicConfig (
@@ -30,8 +30,9 @@ def parse_args(args):
3030 """Parse command-line arguments"""
3131
3232 # Initialise command parser.
33+ version = importlib .metadata .version ("academic" )
3334 parser = argparse .ArgumentParser (
34- description = f"Hugo Academic CLI v{ VERSION } \n https://github.com/wowchemy/bibtex-to-markdown" ,
35+ description = f"Hugo Academic CLI v{ version } \n https://github.com/wowchemy/bibtex-to-markdown" ,
3536 formatter_class = RawTextHelpFormatter ,
3637 )
3738 subparsers = parser .add_subparsers (help = "Sub-commands" , dest = "command" )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " academic"
33description = " Import Bibtex references from your reference manager to your Markdown-formatted website or book."
4- version = " 0.9.0 "
4+ version = " 0.9.1 "
55authors = [" George Cushen" ]
66readme = " README.md"
77homepage = " https://wowchemy.com"
You can’t perform that action at this time.
0 commit comments