From 5c07bc5c091c0c29fc5f04c811a20d110955ce4f Mon Sep 17 00:00:00 2001 From: heyyo Date: Sat, 23 Jun 2018 13:55:50 +0200 Subject: [PATCH] update setup.py and manifest so we dont upload the test to pypi. --- MANIFEST.in | 7 +------ setup.py | 5 ++--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index c04638f..aae9579 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1 @@ - -recursive-include bw_plex/audfprint *.txt *.py LICENSE Makefile *.md .gitignore -# Only way the damn tests seems to be removed -exclude * -# Make sure we include normal files in the root dir. -include *.in *.txt *.md *.cfg *.py +recursive-exclude tests * diff --git a/setup.py b/setup.py index b02df55..6b31a62 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,6 @@ https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ -import os from setuptools import setup, find_packages # Possibly convert the README.md to .rst-format @@ -32,7 +31,7 @@ setup( # https://packaging.python.org/en/latest/single_source_version.html use_scm_version=True, setup_requires=['setuptools_scm', 'pypandoc'], - #version='0.0.1', + # version='0.0.1', description='Skip intros.', long_description=README, @@ -69,7 +68,7 @@ setup( # You can just specify the packages manually here if your project is # simple. Or you can use find_packages(). - packages=find_packages(), + packages=find_packages(exclude=['tests']), include_package_data=True,