Skip to content

Commit

Permalink
update the version
Browse files Browse the repository at this point in the history
  • Loading branch information
yuchenlin committed Feb 8, 2021
1 parent 46cef4a commit eee92fb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ You can find a pair of example input and output files in `rebiber/example_input.
You can also specify your own bib list files by `-l /path/to/bib_list.txt`. If you don't specify any `-o` then it will be the same as the `-i`.


| argument | usage |
| --- | ----------- |
| -i, --input_bib | the path to the input bib file that you want to update |
| -o, --output_bib | the path to the output bib file that you want to save |
| -r, --remove | a comma-seperated list of value names that you want to remove, such as `-r "url,biburl,address,publisher,pages"` |
| -d, --deduplicate | a bool argument that is `True` by default, used for removing the duplicate bib entries sharing the same key. |
| -l, --bib_list | the path to the list of the bib json files to be loaded. Usually you don't need to set this argument, the default value is the path to our curated list. |
| argument names | usage |
| ----------- | ----------- |
| `-i` | or `--input_bib`. The path to the input bib file that you want to update |
| `-o` | or `--output_bib`. The path to the output bib file that you want to save |
| `-r` | or `--remove`. A comma-seperated list of value names that you want to remove, such as `-r "url,biburl,address,publisher,pages"` |
| `-d` | or `--deduplicate`. A bool argument that is `True` by default, used for removing the duplicate bib entries sharing the same key. |
| `-l` | or `--bib_list`. The path to the list of the bib json files to be loaded. Usually you don't need to set this argument, the default value is the path to our curated list. |
<!-- Or
```bash
python rebiber/normalize.py \
Expand Down
1 change: 1 addition & 0 deletions rebiber/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from rebiber.bib2json import load_bib_file
from rebiber.normalize import construct_bib_db, normalize_bib
from ._version import __version__

__all__ = [
"__version__",
Expand Down
1 change: 1 addition & 0 deletions rebiber/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.0.2"
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import setuptools
import os

with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()

about = {}
with open("rebiber/_version.py") as f:
exec(f.read(), about)
os.environ["PBR_VERSION"] = about["__version__"]

setuptools.setup(
name="rebiber",
version="1.0.2",
version=about["__version__"],
author='Bill Yuchen Lin',
author_email='[email protected]',
description="A tool for normalizing bibtex with official info.",
Expand Down

0 comments on commit eee92fb

Please sign in to comment.