From a98fed61e546bb6f27fe12b5011a31ef82a46e75 Mon Sep 17 00:00:00 2001 From: yunfan Date: Fri, 27 Sep 2019 07:17:44 +0000 Subject: [PATCH] [bugfix] package now ignores reproduction/ & test/ --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 7d1d8034..72f92d16 100644 --- a/setup.py +++ b/setup.py @@ -11,9 +11,12 @@ with open('LICENSE', encoding='utf-8') as f: with open('requirements.txt', encoding='utf-8') as f: reqs = f.read() +pkgs = [p for p in find_packages() if p.startswith('fastNLP')] +print(pkgs) + setup( name='FastNLP', - version='0.4.9', + version='0.4.10', url='https://github.com/fastnlp/fastNLP', description='fastNLP: Deep Learning Toolkit for NLP, developed by Fudan FastNLP Team', long_description=readme, @@ -21,6 +24,6 @@ setup( license='Apache License', author='FudanNLP', python_requires='>=3.6', - packages=find_packages(), + packages=pkgs, install_requires=reqs.strip().split('\n'), )