Skip to content

Commit af11b95

Browse files
committed
fix: No such file or directory: 'pyproject.toml'
Fix #122
1 parent f42a776 commit af11b95

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

academic/cli.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/usr/bin/env python3
22

33
import argparse
4+
import importlib.metadata
45
import logging
56
import os
67
import sys
78
from argparse import RawTextHelpFormatter
89

910
from academic.import_bibtex import import_bibtex
10-
from academic.version import VERSION
1111

1212
# Initialise logger.
1313
logging.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}\nhttps://github.com/wowchemy/bibtex-to-markdown",
35+
description=f"Hugo Academic CLI v{version}\nhttps://github.com/wowchemy/bibtex-to-markdown",
3536
formatter_class=RawTextHelpFormatter,
3637
)
3738
subparsers = parser.add_subparsers(help="Sub-commands", dest="command")

academic/version.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
22
name = "academic"
33
description = "Import Bibtex references from your reference manager to your Markdown-formatted website or book."
4-
version = "0.9.0"
4+
version = "0.9.1"
55
authors = ["George Cushen"]
66
readme = "README.md"
77
homepage = "https://wowchemy.com"

0 commit comments

Comments
 (0)