DEAP / deap

Distributed Evolutionary Algorithms in Python
http://deap.readthedocs.org/
GNU Lesser General Public License v3.0
5.75k stars 1.12k forks source link

Replace nose with nose2/unittest/pytest #469

Open paolostivanin opened 4 years ago

paolostivanin commented 4 years ago

Hello, nose won't be supported starting with Python 3.9/3.10. There are some occurrences where it's still used: https://github.com/DEAP/deap/search?q=nose&unscoped_q=nose

Thanks :)

fmder commented 4 years ago

You are right.

What I liked from noise is that we were able to test with the python setup.py tool. That allowed to test with python2 and python3 without hurdle.

paolostivanin commented 4 years ago

AFAIK, also pytest and unittest can be integrated in setup.py

BTW, there are plans also to deprecate setup.py test, so no big issue :D

https://github.com/pypa/setuptools/issues/1684

fmder commented 4 years ago

Haha, I didn't know that. If you like to contribute you could open a PR against the dev branch with pytest.

paolostivanin commented 4 years ago

I'll have a look at it, but I can't guarantee anything :) I'm not a pytest expert!

BTW, Is this project fully compatible with py3.8? :thinking: I'm asking because I'm getting some errors with Pycharm using py3.8 as interpreter

fmder commented 4 years ago

Yeah, I'm in the process of switching from py2 to py3...