mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-22 16:25:30 +00:00
Basic python setuptools
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "tokenizers"
|
||||
version = "0.0.1"
|
||||
version = "0.0.2"
|
||||
authors = ["Anthony MOI <m.anthony.moi@gmail.com>"]
|
||||
edition = "2018"
|
||||
|
||||
|
2
bindings/python/pyproject.toml
Normal file
2
bindings/python/pyproject.toml
Normal file
@ -0,0 +1,2 @@
|
||||
[build-system]
|
||||
requires = ["setuptools", "wheel", "setuptools-rust"]
|
10
bindings/python/setup.py
Normal file
10
bindings/python/setup.py
Normal file
@ -0,0 +1,10 @@
|
||||
from setuptools import setup
|
||||
from setuptools_rust import Binding, RustExtension
|
||||
|
||||
setup(
|
||||
name="tokenizers",
|
||||
version="0.0.2",
|
||||
rust_extensions=[RustExtension("tokenizers.tokenizers", binding=Binding.PyO3)],
|
||||
packages=["tokenizers"],
|
||||
zip_safe=False,
|
||||
)
|
3
bindings/python/tokenizers/__init__.py
Normal file
3
bindings/python/tokenizers/__init__.py
Normal file
@ -0,0 +1,3 @@
|
||||
__version__ = "0.0.2"
|
||||
|
||||
from .tokenizers import Tokenizer, models, decoders, pre_tokenizers
|
Reference in New Issue
Block a user