b876d97770
Some initial testing with orjson indicates performance varies from slightly better than pysqlite to about 2x slower depending on the type of query. Performance could be improved by building the Python list in rspy instead of sending back json that needs to be decoded, but it may make more sense to rewrite the hotspots in Rust instead. More testing is required in any case.
29 lines
849 B
Python
29 lines
849 B
Python
import setuptools
|
|
|
|
with open("../meta/version") as fh:
|
|
version = fh.read().strip()
|
|
|
|
setuptools.setup(
|
|
name="anki",
|
|
version=version,
|
|
author="Ankitects Pty Ltd",
|
|
description="Anki's library code",
|
|
long_description="Anki's library code",
|
|
long_description_content_type="text/markdown",
|
|
url="https://apps.ankiweb.net",
|
|
packages=setuptools.find_packages(".", exclude=["tests"]),
|
|
license="License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
|
|
package_data={"anki": ["py.typed"]},
|
|
classifiers=[],
|
|
python_requires=">=3.7",
|
|
install_requires=[
|
|
"beautifulsoup4",
|
|
"requests",
|
|
"decorator",
|
|
"protobuf",
|
|
"orjson",
|
|
'psutil; sys_platform == "win32"',
|
|
'distro; sys_platform != "darwin" and sys_platform != "win32"',
|
|
],
|
|
)
|