File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
"""Config for setup package client Python."""
2
2
3
+ import os
3
4
from setuptools import setup , find_packages
4
5
5
6
__version__ = '5.2.6'
6
7
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
+
9
18
10
19
setup (
11
20
name = 'reportportal-client' ,
12
21
packages = find_packages (exclude = ('tests' , 'tests.*' )),
13
22
version = __version__ ,
14
23
description = 'Python client for Report Portal v5.' ,
24
+ long_description = read_file ('README.md' ),
25
+ long_description_content_type = 'text/markdown' ,
15
26
16
27
url = 'https://github.com/reportportal/client-Python' ,
17
28
download_url = ('https://github.com/reportportal/client-Python/'
26
37
'Programming Language :: Python :: 3.9' ,
27
38
'Programming Language :: Python :: 3.10'
28
39
],
29
- install_requires = requirements
40
+ install_requires = read_file ( ' requirements.txt' ). splitlines (),
30
41
)
You can’t perform that action at this time.
0 commit comments