Skip to content

Commit 22fafd1

Browse files
committed
Long description added
1 parent d4149e3 commit 22fafd1

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

setup.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
11
"""Config for setup package client Python."""
22

3+
import os
34
from setuptools import setup, find_packages
45

56
__version__ = '5.2.6'
67

7-
with open('requirements.txt') as f:
8-
requirements = f.read().splitlines()
8+
9+
def read_file(fname):
10+
"""Read the given file.
11+
12+
:param fname: Name of the file to be read
13+
:return: Output of the given file
14+
"""
15+
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
16+
return f.read()
17+
918

1019
setup(
1120
name='reportportal-client',
1221
packages=find_packages(exclude=('tests', 'tests.*')),
1322
version=__version__,
1423
description='Python client for Report Portal v5.',
24+
long_description=read_file('README.md'),
25+
long_description_content_type='text/markdown',
1526
author_email='[email protected]',
1627
url='https://github.com/reportportal/client-Python',
1728
download_url=('https://github.com/reportportal/client-Python/'
@@ -26,5 +37,5 @@
2637
'Programming Language :: Python :: 3.9',
2738
'Programming Language :: Python :: 3.10'
2839
],
29-
install_requires=requirements
40+
install_requires=read_file('requirements.txt').splitlines(),
3041
)

0 commit comments

Comments
 (0)