File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed
Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ importlib-metadata==7.0.0
88iniconfig == 2.0.0
99mypy == 1.7.1 ; implementation_name == "cpython"
1010mypy-extensions == 1.0.0
11- packaging == 23.2
11+ packaging == 25.0
1212pathspec == 0.12.1
1313platformdirs == 4.1.0
1414pluggy == 1.3.0
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ idna==3.7
99imagesize==1.4.1
1010jinja2==3.1.6
1111markupsafe==2.1.3
12- packaging==23.2
12+ packaging==25.0
1313pygments==2.17.2
1414requests==2.32.4
1515snowballstemmer==2.2.0
Original file line number Diff line number Diff line change 99def obtain_requirements (file_name ):
1010 with open (file_name ) as fd_in :
1111 for line in fd_in :
12- if '#' not in line :
13- yield line .strip ()
12+ line = line .split ('#' )[0 ]
13+ line = line .strip ()
14+ if line :
15+ yield line
1416
1517
1618class PyTest (Command ):
@@ -46,14 +48,8 @@ def read_injector_variable(name):
4648requirements_dev = list (obtain_requirements ('requirements-dev.txt' ))
4749
4850
49- try :
50- import pypandoc
51-
52- long_description = pypandoc .convert_file ('README.md' , 'rst' )
53- except ImportError :
54- warnings .warn ('Could not locate pandoc, using Markdown long_description.' , ImportWarning )
55- with open ('README.md' ) as f :
56- long_description = f .read ()
51+ with open ('README.md' ) as f :
52+ long_description = f .read ()
5753
5854description = long_description .splitlines ()[0 ].strip ()
5955
@@ -66,6 +62,7 @@ def read_injector_variable(name):
6662 options = dict (egg_info = dict (tag_build = version_tag )),
6763 description = description ,
6864 long_description = long_description ,
65+ long_description_content_type = 'text/markdown' ,
6966 license = 'BSD' ,
7067 platforms = ['any' ],
7168 packages = ['injector' ],
You can’t perform that action at this time.
0 commit comments