|
1 | 1 | #! -*- coding: utf-8 -*- |
2 | 2 |
|
| 3 | +import codecs |
| 4 | +import pathlib |
3 | 5 | from setuptools import setup |
4 | 6 | from setuptools import find_packages |
5 | 7 |
|
| 8 | +here = pathlib.Path(__file__).parent.resolve() |
| 9 | +long_description = (here / "README.md").read_text(encoding="utf-8") |
| 10 | +with codecs.open("requirements.txt", "r", "utf8") as reader: |
| 11 | + install_requires = list(map(lambda x: x.strip(), reader.readlines())) |
| 12 | + |
6 | 13 | setup( |
7 | | - name='text-sim', |
8 | | - version='0.0.1', |
9 | | - description='an elegant text-sim', |
10 | | - long_description='text-sim: https://github.com/DengBoCong/sim', |
| 14 | + name="text-sim", |
| 15 | + version="1.0.7", |
| 16 | + description="Chinese text similarity calculation package of Tensorflow/Pytorch", |
| 17 | + long_description=long_description, |
11 | 18 | long_description_content_type="text/markdown", |
12 | | - license='MIT License', |
13 | | - url='https://github.com/DengBoCong/sim', |
14 | | - author='DengBoCong', |
15 | | - author_email='bocongdeng@gmail.com', |
16 | | - install_requires=['scikit-learn>=0.23.2', 'numpy>=1.19.2'], |
| 19 | + license="MIT License", |
| 20 | + url="https://github.com/DengBoCong/text-similarity", |
| 21 | + author="DengBoCong", |
| 22 | + author_email="bocongdeng@gmail.com", |
| 23 | + install_requires=install_requires, |
17 | 24 | packages=find_packages(), |
18 | 25 | classifiers=[ |
19 | 26 | "Programming Language :: Python :: 3", |
| 27 | + "Programming Language :: Python :: 3.7", |
| 28 | + "Programming Language :: Python :: 3.8", |
20 | 29 | "License :: OSI Approved :: MIT License", |
21 | 30 | "Operating System :: OS Independent", |
22 | 31 | ], |
| 32 | + keywords="similarity, tensorflow, pytorch, classification", |
| 33 | + project_urls={ |
| 34 | + "Bug Reports": "https://github.com/DengBoCong/text-similarity/issues", |
| 35 | + "Funding": "https://pypi.org/project/text-sim/", |
| 36 | + "Source": "https://github.com/DengBoCong/text-similarity", |
| 37 | + }, |
23 | 38 | ) |
0 commit comments