-
Notifications
You must be signed in to change notification settings - Fork 22
/
setup.py
53 lines (39 loc) · 1.42 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
'''
python3 setup.py bdist_wheel --universal
HTTPError: 400 Client Error: The description failed to render in the default format of reStructuredText
solved:
If you're using a Markdown long_description:
The metadata for your distribution is invalid and is not specifying Markdown.
This means that either you haven't set long_description_content_type='text/markdown', in your setup.py file, or that the tools that you're using are out of date and don't support this metadata field. Upgrade them to latest:
$ pip install -U twine wheel setuptools
'''
import setuptools
with open('README.md') as f:
LONG_DESCRIPTION = f.read()
setuptools.setup(
name="textda",
version="0.1.0.6",
author="wac",
author_email="wuanch@gmail.com",
description="this is data augmentation for chinese text",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="https://github.com/wac81/textda",
packages=setuptools.find_packages(),
keywords='classification,expansion,augmentation,addition,data,text,chinese',
license="MIT",
package_data={
'textda': [
'**/*.gz',
'**/*.txt',
'**/*.vector',
]
},
install_requires=['jieba',
'synonyms'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)