2018-09-02 13:32:57 +08:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# coding=utf-8
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
|
2018-09-15 17:18:51 +08:00
|
|
|
with open('README.md', encoding='utf-8') as f:
|
2018-09-02 13:32:57 +08:00
|
|
|
readme = f.read()
|
|
|
|
|
2018-09-15 17:18:51 +08:00
|
|
|
with open('LICENSE', encoding='utf-8') as f:
|
2018-09-02 13:32:57 +08:00
|
|
|
license = f.read()
|
|
|
|
|
2018-09-15 17:18:51 +08:00
|
|
|
with open('requirements.txt', encoding='utf-8') as f:
|
2018-09-02 13:32:57 +08:00
|
|
|
reqs = f.read()
|
|
|
|
|
2022-07-08 00:18:25 +08:00
|
|
|
pkgs = [p for p in find_packages(exclude=['docs', 'tests', 'tutorials']) if p.startswith('fastNLP')]
|
2019-09-27 15:17:44 +08:00
|
|
|
print(pkgs)
|
|
|
|
|
2018-09-02 13:32:57 +08:00
|
|
|
setup(
|
2018-12-06 19:28:27 +08:00
|
|
|
name='FastNLP',
|
2022-07-07 23:18:57 +08:00
|
|
|
version='1.0.0alpha',
|
2020-11-06 20:28:27 +08:00
|
|
|
url='https://gitee.com/fastnlp/fastNLP',
|
2018-09-05 10:00:57 +08:00
|
|
|
description='fastNLP: Deep Learning Toolkit for NLP, developed by Fudan FastNLP Team',
|
2018-09-02 13:32:57 +08:00
|
|
|
long_description=readme,
|
2019-05-24 01:58:04 +08:00
|
|
|
long_description_content_type='text/markdown',
|
|
|
|
license='Apache License',
|
2020-11-06 20:28:27 +08:00
|
|
|
author='Fudan FastNLP Team',
|
2022-07-07 23:18:57 +08:00
|
|
|
python_requires='>=3.6',
|
2019-09-27 15:17:44 +08:00
|
|
|
packages=pkgs,
|
2018-09-02 13:32:57 +08:00
|
|
|
install_requires=reqs.strip().split('\n'),
|
|
|
|
)
|