Skip to content

Commit c91175b

Browse files
authored
Merge pull request jupyter-server#368 from bollwyvl/fix-tests-packaging
use setuptools find_packages, exclude tests, docs and examples from dist
2 parents 3945fe5 + b500cef commit c91175b

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

setup.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import pathlib
2-
from setuptools import setup
2+
from setuptools import (
3+
find_packages,
4+
setup,
5+
)
36
from setupbase import (
4-
get_version, find_packages
7+
get_version,
58
)
69

710
here = pathlib.Path('.')
@@ -17,7 +20,7 @@
1720
long_description = README,
1821
long_description_content_type='text/markdown',
1922
version = VERSION,
20-
packages = find_packages('.'),
23+
packages = find_packages('.', exclude=['tests*', 'docs*', 'examples*']),
2124
include_package_data = True,
2225
author = 'Jupyter Development Team',
2326
author_email = '[email protected]',

setupbase.py

-13
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,6 @@ def ensure_python(specs):
9595
raise ValueError('Python version %s unsupported' % part)
9696

9797

98-
def find_packages(top):
99-
"""
100-
Find all of the packages.
101-
"""
102-
import warnings
103-
warnings.warn(
104-
'Deprecated, please use setuptools.find_packages',
105-
category=DeprecationWarning
106-
)
107-
from setuptools import find_packages as fp
108-
return fp(top)
109-
110-
11198
def update_package_data(distribution):
11299
"""update build_py options to get package_data changes"""
113100
build_py = distribution.get_command_obj('build_py')

0 commit comments

Comments
 (0)