add license to wheels and option to skip bundling extra files

This commit is contained in:
Damien Elmes 2020-01-13 20:04:23 +10:00
parent d266dcd076
commit 125d6f9d1d
2 changed files with 9 additions and 1 deletions

View File

@ -12,6 +12,7 @@ setuptools.setup(
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+)",
classifiers=[],
python_requires=">=3.7",
install_requires=[

View File

@ -13,7 +13,13 @@ def package_files(directory):
return entries
extra_files = package_files("aqt_data")
# just the Python files for type hints?
pyonly = os.getenv("PYFILESONLY")
if pyonly:
extra_files = []
else:
extra_files = package_files("aqt_data")
setuptools.setup(
name="aqt",
@ -25,6 +31,7 @@ setuptools.setup(
url="https://apps.ankiweb.net",
packages=setuptools.find_packages(".", exclude=["tests"]),
data_files=extra_files,
license="License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
classifiers=[],
python_requires=">=3.7",
install_requires=[