Skip to content

Commit

Permalink
include data files as package data
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmiglio committed Jun 28, 2022
1 parent 2886f80 commit fa9d466
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import os
from setuptools import setup, find_packages

# define long description with readme text
with open("README.md", "r", encoding="utf-8") as f:
LONG_DESCRIPTION = f.read()

# get github workflow env vars
# get tag name for versioning for CI or dev for otherwise
try:
version = (os.environ['GIT_TAG_NAME']).replace('v', '')
except KeyError:
Expand All @@ -27,6 +28,8 @@
"onnxruntime",
],
packages=find_packages(),
include_package_data=True,
package_data={'clashroyalebuildabot.data': ["images/*/*.png", "*.csv", "*.onnx"]},
python_requires='>=3.6',
zip_safe=False,
classifiers=[
Expand Down

0 comments on commit fa9d466

Please sign in to comment.