From d83205fcf04ce5ae24f8e5496e2080b251a1189b Mon Sep 17 00:00:00 2001 From: Alex Kavanagh Date: Tue, 1 May 2018 11:31:09 +0100 Subject: [PATCH] Remove .git from built package Clean-up some of the files that get added with setup.py is run. This is some prep work for when it makes it to PyPi. Change-Id: I70c7d284ac0f3ec03d02a945f7162e063b023688 --- MANIFEST.in | 1 + setup.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index f817c1f..6bfa2c3 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,3 @@ include *.txt *.ini *.cfg *.rst +exclude .git .gitignore recursive-include charm *.ico *.png *.css *.gif *.jpg *.txt diff --git a/setup.py b/setup.py index e1d4b88..7c208a6 100644 --- a/setup.py +++ b/setup.py @@ -69,8 +69,9 @@ setup( author_email='alex.kavanagh@canonical.com', license='Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0', packages=find_packages(exclude=["unit_tests"]), + exclude_package_data={'': ['.gitignore', '.git']}, zip_safe=False, - cmdclass = {'test': Tox}, + cmdclass={'test': Tox}, install_requires=install_require, extras_require={ 'testing': tests_require,