Skip to content

Commit 4891b83

Browse files
committed
added expression for removing menu from README
1 parent 90dca47 commit 4891b83

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

setup.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
import re
12
import setuptools
23
from zabbix_utils.version import __version__
34

45
with open("README.md", "r", encoding="utf-8") as fh:
5-
long_description = fh.read()
6+
regexp = r'(?<=##)\s*Get started\n*(^\*.*\n){1,10}\n*##'
7+
long_description = re.sub(regexp, '', fh.read(), flags=re.M)
68

79
setuptools.setup(
810
name="zabbix_utils",
@@ -28,7 +30,7 @@
2830
'Bug Tracker': 'https://github.com/zabbix/python-zabbix-utils/issues'
2931
},
3032
classifiers=[
31-
"Development Status :: 4 - Beta",
33+
"Development Status :: 5 - Production/Stable",
3234
"Programming Language :: Python",
3335
"Programming Language :: Python :: 3",
3436
"License :: OSI Approved :: MIT License",

0 commit comments

Comments
 (0)