Merge pull request #8 from tantivy-search/poljar/packaging_improvements
Packaging improvementsmaster
commit
d785822225
|
@ -1,13 +1,13 @@
|
||||||
[package]
|
[package]
|
||||||
name = "tantivy-py"
|
name = "tantivy-py"
|
||||||
version = "0.1.0"
|
version = "0.10.1"
|
||||||
authors = ["Damir Jelić <poljar@termina.org.uk>"]
|
authors = ["Damir Jelić <poljar@termina.org.uk>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "tantivy"
|
name = "tantivy"
|
||||||
crate-type = ["dylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
|
|
14
setup.py
14
setup.py
|
@ -1,4 +1,5 @@
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
from os import path
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from setuptools_rust import Binding, RustExtension
|
from setuptools_rust import Binding, RustExtension
|
||||||
|
@ -6,10 +7,21 @@ except ImportError:
|
||||||
print("Please install setuptools-rust package")
|
print("Please install setuptools-rust package")
|
||||||
raise SystemExit(1)
|
raise SystemExit(1)
|
||||||
|
|
||||||
|
this_directory = path.abspath(path.dirname(__file__))
|
||||||
|
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
|
||||||
|
long_description = f.read()
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="tantivy",
|
name="tantivy",
|
||||||
version="0.9.1",
|
version="0.10.1",
|
||||||
rust_extensions=[RustExtension("tantivy.tantivy", binding=Binding.PyO3)],
|
rust_extensions=[RustExtension("tantivy.tantivy", binding=Binding.PyO3)],
|
||||||
packages=["tantivy"],
|
packages=["tantivy"],
|
||||||
|
description=("Python bindings for the Tantivy full-text search engine "
|
||||||
|
"library"),
|
||||||
|
long_description=long_description,
|
||||||
|
long_description_content_type="text/markdown",
|
||||||
|
license="MIT",
|
||||||
|
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue