2020-01-02 10:43:19 +01:00
|
|
|
import setuptools, sys
|
|
|
|
|
|
|
|
with open("README.md", "r") as fh:
|
|
|
|
long_description = fh.read()
|
|
|
|
|
2020-01-03 05:36:14 +01:00
|
|
|
with open("../meta/version") as fh:
|
|
|
|
version = fh.read().strip()
|
|
|
|
|
2020-01-02 10:43:19 +01:00
|
|
|
platform_reqs = []
|
|
|
|
if sys.platform == "win32":
|
|
|
|
platform_reqs.append("psutil")
|
|
|
|
if sys.platform != "win32" and sys.platform != "darwin":
|
|
|
|
platform_reqs.append("distro")
|
|
|
|
|
|
|
|
setuptools.setup(
|
|
|
|
name="anki",
|
2020-01-03 05:36:14 +01:00
|
|
|
version=version,
|
2020-01-02 10:43:19 +01:00
|
|
|
author="Ankitects Pty Ltd",
|
|
|
|
description="Anki's library code",
|
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
url="https://apps.ankiweb.net",
|
|
|
|
packages=setuptools.find_packages(".", exclude=["tests"]),
|
|
|
|
classifiers=[
|
|
|
|
],
|
|
|
|
python_requires='>=3.6',
|
|
|
|
install_requires=[
|
|
|
|
'beautifulsoup4',
|
|
|
|
'requests',
|
|
|
|
'decorator',
|
|
|
|
'protobuf',
|
|
|
|
] + platform_reqs
|
|
|
|
)
|