Skip to content

Commit b23e9dc

Browse files
authored
Merge pull request #95 from vanschelven/fix-setup-py
Add "django_filters" to the package
2 parents be0078f + 4f61d09 commit b23e9dc

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)