fix static package_data for offline mode

package_data 'static/*'  won`t include sub directories so offline mode would result in 404 for static resources under js, css, fonts
This commit is contained in:
ErQrYfkrju 2021-02-18 21:44:26 +03:00 committed by GitHub
parent 90de8e22a0
commit f180d750fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ setup(
packages=find_packages(),
# packages=find_packages(include=['openpredict']),
# package_dir={'openpredict': 'openpredict'},
package_data={'': ['static/*', 'templates/*']},
package_data={'': ['static/*', 'static/**/*', 'templates/*']},
include_package_data=True,
entry_points={
'console_scripts': [