anki/pylib/setup.py

36 lines
1.1 KiB
Python
Raw Normal View History

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import setuptools
install_requires = [
"beautifulsoup4",
"requests[socks]",
"decorator",
"protobuf",
'orjson; platform_machine == "x86_64"',
'psutil; sys_platform == "win32"',
'distro; sys_platform != "darwin" and sys_platform != "win32"',
]
# maturin develop hides the package from pip - https://github.com/ankitects/anki/pull/600
if not os.environ.get("SKIP_ANKI_RSPY", False):
2020-10-02 02:22:21 +02:00
install_requires.append("ankirspy==2.1.36") # automatically updated 1
setuptools.setup(
name="anki",
2020-10-02 02:22:21 +02:00
version="2.1.36", # automatically updated 2
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=install_requires,
)