Skip to content

Commit

Permalink
adapt package arg due to setuptools deprecation #786
Browse files Browse the repository at this point in the history
  • Loading branch information
tfranzel committed Dec 15, 2022
1 parent f03b141 commit 46e63b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import shutil
import sys

from setuptools import find_packages, setup
from setuptools import find_namespace_packages, setup

name = 'drf-spectacular'
package = 'drf_spectacular'
Expand Down Expand Up @@ -69,7 +69,7 @@ def get_version(package):
long_description_content_type='text/x-rst',
author=author,
author_email=author_email,
packages=find_packages(exclude=('tests*',)),
packages=[p for p in find_namespace_packages(exclude=('tests*',)) if p.startswith(package)],
include_package_data=True,
python_requires=">=3.6",
install_requires=requirements,
Expand Down

0 comments on commit 46e63b9

Please sign in to comment.