Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use setuptools find_packages, exclude tests, docs and examples from dist #368

Merged
merged 2 commits into from
Jan 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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