Skip to content

Commit

Permalink
Exclude test folder from packaging (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhieber authored Sep 16, 2018
1 parent 985c97e commit 3353487
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def get_requirements(filename):
with open(os.path.join(ROOT, filename)) as f:
return [line.rstrip() for line in f]


try:
from sphinx.setup_command import BuildDoc
cmdclass = {'build_sphinx': BuildDoc}
Expand Down Expand Up @@ -107,7 +108,7 @@ def get_requirements(filename):

python_requires='>=3',

packages=find_packages(exclude=("test",)),
packages=find_packages(exclude=("test", "test.*")),

setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-cov', 'pillow'],
Expand All @@ -121,7 +122,7 @@ def get_requirements(filename):

entry_points=entry_points,

classifiers = [
classifiers=[
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3 :: Only',

Expand Down

0 comments on commit 3353487

Please sign in to comment.