Skip to content

Commit

Permalink
Drop importlib_metadata dependency for Cent/Py2 unit testing
Browse files Browse the repository at this point in the history
as it is causing issues, and isn't even required.

Also:

- setuptools_scm >= 6 no longer supports python 2

Signed-off-by: Miro Hrončok <miro@hroncok.cz>
Signed-off-by: Ben Alkov <ben.alkov@redhat.com>
  • Loading branch information
hroncok authored and ben-alkov committed Mar 18, 2021
1 parent 1ddd49d commit b52416e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
importlib_metadata<3
jsonschema
six
6 changes: 6 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,14 @@ function setup_kojic() {
# pyrsistent >= 0.17 no longer supports python 2
# pyrsistent is a dependency of jsonschema
$RUN "${PIP_INST[@]}" 'pyrsistent==0.16.*'

# setuptools_scm >= 6 no longer supports python 2
$RUN "${PIP_INST[@]}" 'setuptools_scm<6'
fi

# Workaround problems with dependency hell for older Pythons
$RUN "${PIP_INST[@]}" -U 'importlib_metadata<3;python_version<"3.8"'

# Setuptools install koji-c from source
$RUN $PYTHON setup.py install

Expand Down

0 comments on commit b52416e

Please sign in to comment.