  import shutil
  import sys
  from io import open
  
  from setuptools import setup
  
  try:
      from pypandoc import convert
  
      def read_md(f):
 
</s> remove     packages=get_packages('rest_framework'),
    package_data=get_package_data('rest_framework'),
 </s> add     packages=find_packages(exclude=['tests*']),
    include_package_data=True, </s> remove 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'))]


def get_package_data(package):
    """
    Return all files under the root package, that are not in a
    package themselves.
    """
    walk = [(dirpath.replace(package + os.sep, '', 1), filenames)
            for dirpath, dirnames, filenames in os.walk(package)
            if not os.path.exists(os.path.join(dirpath, '__init__.py'))]

    filepaths = []
    for base, filenames in walk:
        filepaths.extend([os.path.join(base, filename)
                          for filename in filenames])
    return {package: filepaths}


 </s> add  </s> remove recursive-include rest_framework/templates *.html
 </s> add recursive-include rest_framework/templates *.html schema.js
from setuptools import setup, find_packages
  import shutil
  import sys
  from io import open
  
from setuptools import setup, find_packages
  
  try:
      from pypandoc import convert
  
      def read_md(f):
keep keep keep keep replace keep keep keep keep keep
 Fix packaging (#5624)

* Packaging should use manifest

* Add schema.js template to MANIFEST 
setup.py