From e3b02cd1a5e215b396ea2d9e6b454ed2bb265bca Mon Sep 17 00:00:00 2001 From: yhcc Date: Fri, 8 Jul 2022 00:18:25 +0800 Subject: [PATCH] update packaging related --- MANIFEST.in | 5 +++++ setup.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..52f2484f --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,5 @@ +include requirements.txt +include LICENSE +include README.md +prune tests/ +prune tutorials/ \ No newline at end of file diff --git a/setup.py b/setup.py index 029c8696..21e4c0e4 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ 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')] +pkgs = [p for p in find_packages(exclude=['docs', 'tests', 'tutorials']) if p.startswith('fastNLP')] print(pkgs) setup(