Skip to content

Commit

Permalink
🐛/🔖 change version string location & bump version (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiWeiss committed Jan 4, 2024
1 parent 5b01578 commit 3cf080d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bibtexparser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
from bibtexparser.entrypoint import parse_file, parse_string, write_file, write_string
from bibtexparser.library import Library
from bibtexparser.writer import BibtexFormat

__version__ = "2.0.0b5"
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#!/usr/bin/env python
import setuptools

version = "2.0.0b4"
version = None

with open("bibtexparser/__init__.py") as fh:
for line in fh:
if line.startswith("__version__"):
version = line.strip().split()[-1][1:-1]
break
if not version:
raise RuntimeError("Could not determine version")


def load_readme():
Expand Down

0 comments on commit 3cf080d

Please sign in to comment.