Skip to content

Commit

Permalink
Resources
Browse files Browse the repository at this point in the history
  • Loading branch information
helviojunior committed Jan 21, 2023
1 parent af0a5dc commit 73f5c94
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,7 @@
with open("README.md", "r", encoding="utf-8") as f:
readme = f.read()

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

extra_files = package_files('turbosearch/resources')
#print(extra_files)
#If you use both include_package_data and package_data, files specified with package_data will not be automatically included in sdists; you must instead list them in your MANIFEST.in

setup(
name=meta["__title__"],
Expand All @@ -58,7 +50,7 @@ def package_files(directory):
"": ["LICENSE", "*.txt"],
"turbosearch": ["resources/*"]
},
include_package_data=True,
#include_package_data=True,
python_requires=">=3.8, <4",
install_requires=requires,
license=meta["__license__"],
Expand Down

0 comments on commit 73f5c94

Please sign in to comment.