Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ importlib-metadata==7.0.0
iniconfig==2.0.0
mypy==1.7.1 ; implementation_name == "cpython"
mypy-extensions==1.0.0
packaging==23.2
packaging==25.0
pathspec==0.12.1
platformdirs==4.1.0
pluggy==1.3.0
Expand Down
2 changes: 1 addition & 1 deletion requirements-docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ idna==3.7
imagesize==1.4.1
jinja2==3.1.6
markupsafe==2.1.3
packaging==23.2
packaging==25.0
pygments==2.17.2
requests==2.32.4
snowballstemmer==2.2.0
Expand Down
17 changes: 7 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
def obtain_requirements(file_name):
with open(file_name) as fd_in:
for line in fd_in:
if '#' not in line:
yield line.strip()
line = line.split('#')[0]
line = line.strip()
if line:
yield line


class PyTest(Command):
Expand Down Expand Up @@ -46,14 +48,8 @@ def read_injector_variable(name):
requirements_dev = list(obtain_requirements('requirements-dev.txt'))


try:
import pypandoc

long_description = pypandoc.convert_file('README.md', 'rst')
except ImportError:
warnings.warn('Could not locate pandoc, using Markdown long_description.', ImportWarning)
with open('README.md') as f:
long_description = f.read()
with open('README.md') as f:
long_description = f.read()

description = long_description.splitlines()[0].strip()

Expand All @@ -66,6 +62,7 @@ def read_injector_variable(name):
options=dict(egg_info=dict(tag_build=version_tag)),
description=description,
long_description=long_description,
long_description_content_type='text/markdown',
license='BSD',
platforms=['any'],
packages=['injector'],
Expand Down