2019-06-04 09:09:58 +00:00
|
|
|
from setuptools import setup
|
2019-08-03 10:17:04 +00:00
|
|
|
from os import path
|
2019-06-04 09:09:58 +00:00
|
|
|
|
|
|
|
try:
|
|
|
|
from setuptools_rust import Binding, RustExtension
|
|
|
|
except ImportError:
|
|
|
|
print("Please install setuptools-rust package")
|
|
|
|
raise SystemExit(1)
|
|
|
|
|
2019-08-03 10:17:04 +00:00
|
|
|
this_directory = path.abspath(path.dirname(__file__))
|
|
|
|
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
|
|
|
|
long_description = f.read()
|
|
|
|
|
|
|
|
|
2019-06-04 09:09:58 +00:00
|
|
|
setup(
|
|
|
|
name="tantivy",
|
2019-08-03 09:52:23 +00:00
|
|
|
version="0.10.1",
|
2019-06-04 09:09:58 +00:00
|
|
|
rust_extensions=[RustExtension("tantivy.tantivy", binding=Binding.PyO3)],
|
|
|
|
packages=["tantivy"],
|
2019-08-03 10:17:04 +00:00
|
|
|
description=("Python bindings for the Tantivy full-text search engine "
|
|
|
|
"library"),
|
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
license="MIT",
|
|
|
|
|
2019-06-04 09:09:58 +00:00
|
|
|
zip_safe=False,
|
|
|
|
)
|