See https://lists.fedoraproject.org/archives/list/python-de...@lists.fedoraproject.org/message/KARHO4ZVELJIFBCJG6TEG5ZWUXVVKBSR/

particularly:

copr-backend
copr-frontend
copr-dist-git
copr-frontend
copr-keygen
copr-rpmbuild
python-copr

use:
python3-mock
python3-simplejson

Could you please see how hard it is to get rid of those? For compatibility with Python 2 + 3, you can always do:

try:
    from unittest import mock
except ImportError:
    # Python 2 version depends on mock
    import mock

and:

try:
    # Python 2 version depends on simplejson
    import simplejson as json
except ImportError:
    import json


If you have dependencies in setup.py, you can do something like:

https://github.com/zopefoundation/ZEO/blob/master/setup.py#L137
https://github.com/qtile/qtile/blob/develop/setup.py#L95
or https://www.python.org/dev/peps/pep-0508/

See also https://hynek.me/articles/conditional-python-dependencies/


Thank you,
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
copr-devel mailing list -- copr-devel@lists.fedorahosted.org
To unsubscribe send an email to copr-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/copr-devel@lists.fedorahosted.org/message/LNQZYFZJAWWRYN2PH7BSD6LXX3XUMGPG/

Reply via email to