Skip to content

Commit

Permalink
fix packages= so top_level.txt is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile-sentry committed Aug 15, 2022
1 parent f0c470b commit 97b8fac
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 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 setup
from setuptools import find_packages, setup

name = 'drf-spectacular'
package = 'drf_spectacular'
Expand All @@ -31,16 +31,6 @@ def get_version(package):
init_py, re.MULTILINE).group(1)


def get_packages(package):
"""
Return root package and all sub-packages.
"""
return [
dirpath for dirpath, dirnames, filenames in os.walk(package)
if os.path.exists(os.path.join(dirpath, '__init__.py'))
]


version = get_version(package)


Expand Down Expand Up @@ -79,7 +69,7 @@ def get_packages(package):
long_description_content_type='text/x-rst',
author=author,
author_email=author_email,
packages=get_packages(package),
packages=find_packages(exclude=('tests*',)),
include_package_data=True,
python_requires=">=3.6",
install_requires=requirements,
Expand Down

0 comments on commit 97b8fac

Please # to comment.