Browse Source

[bugfix] package now ignores reproduction/ & test/

tags/v0.4.10^0
yunfan 5 years ago
parent
commit
a98fed61e5
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      setup.py

+ 5
- 2
setup.py View File

@@ -11,9 +11,12 @@ with open('LICENSE', encoding='utf-8') as f:
with open('requirements.txt', encoding='utf-8') as f: with open('requirements.txt', encoding='utf-8') as f:
reqs = f.read() reqs = f.read()


pkgs = [p for p in find_packages() if p.startswith('fastNLP')]
print(pkgs)

setup( setup(
name='FastNLP', name='FastNLP',
version='0.4.9',
version='0.4.10',
url='https://github.com/fastnlp/fastNLP', url='https://github.com/fastnlp/fastNLP',
description='fastNLP: Deep Learning Toolkit for NLP, developed by Fudan FastNLP Team', description='fastNLP: Deep Learning Toolkit for NLP, developed by Fudan FastNLP Team',
long_description=readme, long_description=readme,
@@ -21,6 +24,6 @@ setup(
license='Apache License', license='Apache License',
author='FudanNLP', author='FudanNLP',
python_requires='>=3.6', python_requires='>=3.6',
packages=find_packages(),
packages=pkgs,
install_requires=reqs.strip().split('\n'), install_requires=reqs.strip().split('\n'),
) )

Loading…
Cancel
Save