From 8e5aa03a044a65d0553cf96e7dd3e6e004e34295 Mon Sep 17 00:00:00 2001 From: Alberto Vara Date: Fri, 28 Feb 2020 21:25:52 +0100 Subject: [PATCH] Fix: wheel packages includes (#93) --- MANIFEST.in | 6 +++++- setup.py | 7 +++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 5ff77a5..2a5c7fe 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,8 @@ include README.md include requirements.txt include requirements-tests.txt -recursive-include pyms * \ No newline at end of file +recursive-include pyms * +recursive-exclude tests * +recursive-exclude examples * +prune tests +prune examples \ No newline at end of file diff --git a/setup.py b/setup.py index 78ae85c..4a5a322 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- # Copyright (c) 2018 by Alberto Vara import codecs +import json import os -import json from setuptools import setup, find_packages author = __import__('pyms').__author__ @@ -15,8 +15,6 @@ else: long_description = '' - - install_requires = [] tests_require = [] if os.path.exists('Pipfile.lock'): @@ -52,7 +50,8 @@ keywords="", url='https://github.com/python-microservices/pyms/', test_suite='nose.collector', - packages=find_packages(), + packages=find_packages( + exclude=['*.tests', '*.tests.*', 'tests.*', 'tests', '*.examples', '*.examples.*', 'examples.*', 'examples']), install_requires=install_requires, tests_require=tests_require, include_package_data=True,