mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00

The parsing step is considerably slower in Python, but if parsing is moved out of the test function, Python wins at 45ms to Rust's 67ms on 10,000 rounds, presumably due to the overhead of serializing to Protobuf. Not enough of a difference to justify the inclusion of extra dependencies and duplicating the lookup code in any case.
28 lines
857 B
Python
28 lines
857 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",
|
|
'psutil; sys_platform == "win32"',
|
|
'distro; sys_platform != "darwin" and sys_platform != "win32"',
|
|
"fluent.runtime",
|
|
],
|
|
)
|