-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathsetup.py
More file actions
37 lines (36 loc) · 1.12 KB
/
setup.py
File metadata and controls
37 lines (36 loc) · 1.12 KB
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
33
34
35
36
37
from setuptools import setup, find_packages
from transformers_cfg import __version__
setup(
name="transformers_cfg",
version=__version__,
author="EPFL-dlab",
author_email="saibo.geng@epfl.ch",
description="Extension of Transformers library for Context-Free Grammar Constrained Decoding with EBNF grammars",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/epfl-dlab/transformers-CFG",
packages=find_packages(),
license="MIT",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=open("requirements.txt").read().splitlines(),
package_data={
"transformers_cfg": ["examples/grammars/*.ebnf"],
},
include_package_data=True,
entry_points={
"console_scripts": [
"transformers-cfg-cli=transformers_cfg.cli.cli_main:main",
],
},
extras_require={
"dev": [
"pre-commit",
"pytest",
"twine",
],
},
)