Instruct Python to add schema.sql file to the package

This commit is contained in:
Dan 2019-06-19 16:06:37 +02:00
parent 6cc9688e49
commit 8465c4a977
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
## Include ## Include
include README.md COPYING COPYING.lesser NOTICE requirements.txt include README.md COPYING COPYING.lesser NOTICE requirements.txt
recursive-include compiler *.py *.tl *.tsv *.txt recursive-include compiler *.py *.tl *.tsv *.txt
recursive-include pyrogram mime.types recursive-include pyrogram mime.types schema.sql
## Exclude ## Exclude
prune pyrogram/api/errors/exceptions prune pyrogram/api/errors/exceptions

View File

@ -168,7 +168,8 @@ setup(
python_requires="~=3.4", python_requires="~=3.4",
packages=find_packages(exclude=["compiler*"]), packages=find_packages(exclude=["compiler*"]),
package_data={ package_data={
"pyrogram.client.ext": ["mime.types"] "pyrogram.client.ext": ["mime.types"],
"pyrogram.client.storage": ["schema.sql"]
}, },
zip_safe=False, zip_safe=False,
install_requires=requires, install_requires=requires,