Skip to content

Commit

Permalink
Automatic version in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil committed Aug 23, 2023
1 parent 6c350d8 commit 647c548
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bindings/python/py_src/tokenizers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.13.4.rc2"
__version__ = "0.13.4.rc3"

from enum import Enum
from typing import List, Tuple, Union
Expand Down
5 changes: 4 additions & 1 deletion bindings/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
extras["docs"] = ["sphinx", "sphinx_rtd_theme", "setuptools_rust"]
extras["dev"] = extras["testing"]

with open("py_src/tokenizers/__init__.py", "r") as f:
version = f.readline().split("=")[-1].strip().strip('"')

setup(
name="tokenizers",
version="0.13.4.rc2",
version=version,
description="Fast and Customizable Tokenizers",
long_description=open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 647c548

Please sign in to comment.