-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
32 lines (28 loc) · 893 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from setuptools import find_packages, setup
with open("README.md", "r", encoding="utf-8") as f:
readme = f.read()
required = [
"transformers>=4.25",
]
# pylint: disable=use-dict-literal
setup_args = dict(
name="tokens-per-word",
version="0.0.1",
packages=find_packages(),
author="Søren Winkel Holm",
author_email="swholm@protonmail.com",
url="https://github.com/sorenmulli/tokens-per-word",
download_url="https://pypi.org/project/tokens-per-word",
install_requires=required,
description="How many tokens per word using given tokenizer and given dataset?",
long_description_content_type="text/markdown",
long_description=readme,
license="MIT",
entry_points={
"console_scripts": [
"tokens-per-word = tokens_per_word.__main__:run_from_cli",
]
},
)
if __name__ == "__main__":
setup(**setup_args)