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()
|
|
|
|
|
2019-09-27 15:17:44 +08:00
|
|
|
pkgs = [p for p in find_packages() if p.startswith('fastNLP')]
|
|
|
|
print(pkgs)
|
|
|
|
|
2018-09-02 13:32:57 +08:00
|
|
|
setup(
|
2018-12-06 19:28:27 +08:00
|
|
|
name='FastNLP',
|
2021-10-15 11:12:55 +08:00
|
|
|
version='0.7.1',
|
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',
|
2021-10-28 15:22:00 +08:00
|
|
|
python_requires='>=3.7',
|
2019-09-27 15:17:44 +08:00
|
|
|
packages=pkgs,
|
2018-09-02 13:32:57 +08:00
|
|
|
install_requires=reqs.strip().split('\n'),
|
|
|
|
)
|