2020-04-02 04:01:48 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*- coding: utf-8 -*-
|
2020-05-01 04:07:47 +02:00
|
|
|
import os
|
|
|
|
|
2020-01-06 06:27:59 +01:00
|
|
|
import setuptools
|
2020-01-02 10:43:19 +01:00
|
|
|
|
2020-04-02 04:01:48 +02:00
|
|
|
install_requires = [
|
|
|
|
"beautifulsoup4",
|
|
|
|
"requests",
|
|
|
|
"decorator",
|
|
|
|
"protobuf",
|
|
|
|
'orjson; platform_machine == "x86_64"',
|
|
|
|
'psutil; sys_platform == "win32"',
|
|
|
|
'distro; sys_platform != "darwin" and sys_platform != "win32"',
|
|
|
|
]
|
|
|
|
|
2020-05-01 04:07:47 +02:00
|
|
|
# maturin develop hides the package from pip - https://github.com/ankitects/anki/pull/600
|
|
|
|
if not os.environ.get("SKIP_ANKI_RSPY", False):
|
2020-05-02 02:22:00 +02:00
|
|
|
install_requires.append("ankirspy==2.1.26") # automatically updated 1
|
2020-01-03 05:36:14 +01:00
|
|
|
|
2020-01-02 10:43:19 +01:00
|
|
|
setuptools.setup(
|
|
|
|
name="anki",
|
2020-05-02 02:22:00 +02:00
|
|
|
version="2.1.26", # automatically updated 2
|
2020-01-02 10:43:19 +01:00
|
|
|
author="Ankitects Pty Ltd",
|
|
|
|
description="Anki's library code",
|
2020-01-04 03:21:44 +01:00
|
|
|
long_description="Anki's library code",
|
2020-01-02 10:43:19 +01:00
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
url="https://apps.ankiweb.net",
|
|
|
|
packages=setuptools.find_packages(".", exclude=["tests"]),
|
2020-01-13 11:04:23 +01:00
|
|
|
license="License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
|
2020-01-13 12:18:03 +01:00
|
|
|
package_data={"anki": ["py.typed"]},
|
2020-01-06 06:27:59 +01:00
|
|
|
classifiers=[],
|
2020-01-07 09:34:36 +01:00
|
|
|
python_requires=">=3.7",
|
2020-04-02 04:01:48 +02:00
|
|
|
install_requires=install_requires,
|
2020-01-02 10:43:19 +01:00
|
|
|
)
|