Skip to content

Commit

Permalink
Merge pull request #368 from bollwyvl/fix-tests-packaging
Browse files Browse the repository at this point in the history
use setuptools find_packages, exclude tests, docs and examples from dist
  • Loading branch information
blink1073 authored Jan 4, 2021
2 parents a23015c + e59b4ab commit b4968ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import pathlib
from setuptools import setup
from setuptools import (
find_packages,
setup,
)
from setupbase import (
get_version, find_packages
get_version,
)

here = pathlib.Path('.')
Expand All @@ -17,7 +20,7 @@
long_description = README,
long_description_content_type='text/markdown',
version = VERSION,
packages = find_packages('.'),
packages = find_packages('.', exclude=['tests*', 'docs*', 'examples*']),
include_package_data = True,
author = 'Jupyter Development Team',
author_email = 'jupyter@googlegroups.com',
Expand Down
13 changes: 0 additions & 13 deletions setupbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,6 @@ def ensure_python(specs):
raise ValueError('Python version %s unsupported' % part)


def find_packages(top):
"""
Find all of the packages.
"""
import warnings
warnings.warn(
'Deprecated, please use setuptools.find_packages',
category=DeprecationWarning
)
from setuptools import find_packages as fp
return fp(top)


def update_package_data(distribution):
"""update build_py options to get package_data changes"""
build_py = distribution.get_command_obj('build_py')
Expand Down

0 comments on commit b4968ce

Please sign in to comment.