Skip to content

Commit 4f61d09

Browse files
committed
Add "django_filters" to the package
The problem was that the home-brewn version find_packages, named "get_packages", returned paths containing slashes (os separators) rather than dots (python module separators). Fixes #96, Fixes #84
1 parent 510f749 commit 4f61d09

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

setup.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,6 @@ def get_long_description():
4343
return '\n\n'.join(ret)
4444

4545

46-
def get_packages(package):
47-
"""
48-
Return root package and all sub-packages.
49-
"""
50-
return [dirpath
51-
for dirpath, dirnames, filenames in os.walk(package)
52-
if os.path.exists(os.path.join(dirpath, '__init__.py'))]
53-
54-
5546
def get_package_data(package):
5647
"""
5748
Return all files under the root package, that are not in a
@@ -88,7 +79,7 @@ def get_package_data(package):
8879
long_description=get_long_description(),
8980
author=author,
9081
author_email=author_email,
91-
packages=get_packages(package),
82+
packages=['rest_framework_datatables', 'rest_framework_datatables.django_filters'],
9283
install_requires=[
9384
'djangorestframework>=3.5.0'
9485
],

0 commit comments

Comments
 (0)