Skip to content

Commit

Permalink
updated setup to include all nextjs static files
Browse files Browse the repository at this point in the history
  • Loading branch information
rishsriv committed Dec 6, 2023
1 parent 623e618 commit b05d668
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from setuptools import find_packages, setup

extras = {
Expand All @@ -8,11 +9,24 @@
"redshift": ["psycopg2-binary"],
}


def package_files(directory):
paths = []
for path, directories, filenames in os.walk(directory):
for filename in filenames:
paths.append(os.path.join("..", path, filename))
return paths


next_static_files = package_files("defog/static")

print(next_static_files)

setup(
name="defog",
packages=find_packages(),
package_data={"defog": ["gcp/*", "aws/*", "static/*"]},
version="0.54.0",
package_data={"defog": ["gcp/*", "aws/*"] + next_static_files},
version="0.54.3",
description="Defog is a Python library that helps you generate data queries from natural language questions.",
author="Full Stack Data Pte. Ltd.",
license="MIT",
Expand Down

0 comments on commit b05d668

Please sign in to comment.