Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
roniemartinez committed May 21, 2023
1 parent 5a199f8 commit 3dfc4d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions latex2mathml/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import pkg_resources
version = pkg_resources.get_distribution("latex2mathml").version
__version__ = version

__version__ = pkg_resources.get_distribution("latex2mathml").version
5 changes: 3 additions & 2 deletions latex2mathml/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,9 @@ def main() -> None: # pragma: no cover
display = "block" if arguments.block else "inline"

if arguments.version:
version = pkg_resources.get_distribution("latex2mathml").version
print("latex2mathml", version)
import latex2mathml

print("latex2mathml", latex2mathml.__version__)
elif arguments.text:
print(convert(arguments.text, display=display))
elif arguments.file:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "latex2mathml"
version = "3.75.5"
version = "3.76.0"
repository = "https://github.com/roniemartinez/latex2mathml"
description = "Pure Python library for LaTeX to MathML conversion"
authors = ["Ronie Martinez <ronmarti18@gmail.com>"]
Expand Down

0 comments on commit 3dfc4d5

Please sign in to comment.