-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
59 lines (57 loc) · 1.99 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from pathlib import Path
from setuptools import setup
from setuptools_rust import Binding, RustExtension
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
setup(
name="json-stream-rs-tokenizer",
version="0.4.26",
rust_extensions=[
RustExtension(
"json_stream_rs_tokenizer.json_stream_rs_tokenizer",
binding=Binding.PyO3,
optional=False, # is set to True prior to publishing as sdist
py_limited_api=False, # required for num_bigint compat.
debug=False, # pointless even in develop mode
)
],
packages=["json_stream_rs_tokenizer", "json_stream_rs_tokenizer.benchmark"],
zip_safe=False,
description="A faster tokenizer for the json-stream Python library",
readme="README.md",
long_description=long_description,
long_description_content_type="text/markdown",
license_files=["LICENSE"],
project_urls={
"Repository": (
"https://github.com/smheidrich/py-json-stream-rs-tokenizer"
)
},
python_requires=">=3.7,<4",
install_requires=[],
extras_require={
"benchmark": [
"json-stream-to-standard-types>=0.1,<0.2",
"tqdm>=4.64,<5",
"contexttimer>=0.3,<0.4",
"si-prefix>=1.2,<2",
"typer>=0.6,<0.7",
],
"test": [
"pytest>7.1,<8",
"json-stream-rs-tokenizer[benchmark]",
"json-stream==2.3.2",
],
},
classifiers=[
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: MIT License",
],
)