Skip to content

Commit a8d3777

Browse files
authored
Update setup.py
1 parent f666c27 commit a8d3777

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

setup.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,21 @@ def get_description():
2828
description, = re.findall(pattern, init_py, re.DOTALL)
2929
return description
3030

31+
this_directory = os.path.abspath(os.path.dirname(__file__))
32+
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
33+
long_description = f.read()
3134

32-
def get_readme():
33-
return get_file(os.path.dirname(__file__), 'README.rst')
35+
# def get_readme():
36+
# return get_file(os.path.dirname(__file__), 'README.rst')
3437

3538

3639
def install():
3740
setup(
3841
name='pygoogletranslation',
3942
version=get_version(),
4043
description=get_description(),
41-
long_description=get_readme(),
44+
long_description=long_description,
45+
long_description_content_type='text/markdown',
4246
license='MIT',
4347
author='Saravanan N, Jenifer Singh Y S',
4448
author_email='saravananslb2015@gmail.com',
@@ -57,6 +61,10 @@ def install():
5761
keywords='google translate translator',
5862
install_requires=[
5963
'requests',
64+
'unidecode',
65+
'nltk',
66+
'docx2txt',
67+
'PyPDF2',
6068
],
6169
python_requires= '>=3.6',
6270
tests_require=[

0 commit comments

Comments
 (0)