2020-01-06 06:27:59 +01:00
|
|
|
import os
|
|
|
|
|
|
|
|
import setuptools
|
2020-01-02 10:43:19 +01:00
|
|
|
|
2020-01-03 05:36:14 +01:00
|
|
|
with open("../meta/version") as fh:
|
|
|
|
version = fh.read().strip()
|
|
|
|
|
2020-01-06 06:27:59 +01:00
|
|
|
|
2020-01-02 10:43:19 +01:00
|
|
|
def package_files(directory):
|
|
|
|
entries = []
|
|
|
|
for (path, directories, filenames) in os.walk(directory):
|
|
|
|
entries.append((path, [os.path.join(path, f) for f in filenames]))
|
|
|
|
return entries
|
|
|
|
|
2020-01-06 06:27:59 +01:00
|
|
|
|
2020-01-13 11:04:23 +01:00
|
|
|
# just the Python files for type hints?
|
|
|
|
pyonly = os.getenv("PYFILESONLY")
|
|
|
|
|
|
|
|
if pyonly:
|
|
|
|
extra_files = []
|
|
|
|
else:
|
|
|
|
extra_files = package_files("aqt_data")
|
2020-01-02 10:43:19 +01:00
|
|
|
|
|
|
|
setuptools.setup(
|
|
|
|
name="aqt",
|
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 Qt GUI code",
|
2020-01-04 03:21:44 +01:00
|
|
|
long_description="Anki's QT GUI 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"]),
|
|
|
|
data_files=extra_files,
|
2020-01-13 11:04:23 +01:00
|
|
|
license="License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
|
2020-01-06 06:27:59 +01:00
|
|
|
classifiers=[],
|
2020-01-07 09:34:36 +01:00
|
|
|
python_requires=">=3.7",
|
2020-01-13 12:18:03 +01:00
|
|
|
package_data={"aqt": ["py.typed"]},
|
2020-01-02 10:43:19 +01:00
|
|
|
install_requires=[
|
2020-01-06 06:27:59 +01:00
|
|
|
"beautifulsoup4",
|
|
|
|
"requests",
|
|
|
|
"send2trash",
|
|
|
|
"pyaudio",
|
|
|
|
"markdown",
|
|
|
|
"jsonschema",
|
2020-01-04 22:30:17 +01:00
|
|
|
'psutil; sys.platform == "win32"',
|
2020-01-04 22:30:23 +01:00
|
|
|
'pywin32; sys.platform == "win32"',
|
2020-01-06 06:27:59 +01:00
|
|
|
],
|
2020-01-02 10:43:19 +01:00
|
|
|
)
|