Upgrade to django-1.4 #758
- Update requirements.txt to reflect real metashare-3.0.1 dependencies. - Update django from 1.3.5 to 1.3.7 (still has a patch added to it) - New install-dependencies.sh script: - Use a virtualenv and pip to download and install all python dependencies. Virtualenv is the recommended way for working with Python projects. - Remove the lib/ directory. - Remove the Python bundled file (more recent 2.7.9 is downloaded if required). - System PATH does not need to be modified anymore
Travis builds and tests the code, with the help of SauceLabs to run the Selenium tests. Coveralls evaluates the code coverage of the whole testsuite. Travis also takes care to regenerate and upload the documentation automatically. The following jobs are run: - Basic testsuite (As suggested in the installation manual) - Selenium tests - Node syncing tests - Documentation update To do that, selenium had to be updated and some tests fixed: - Update selenium and django-selenium to be compatible with recent browser versions - Use selenium implicitwait instead of time.sleep Tests can also run locally, without Travis nor Sauce Labs. Tests will now print DeprecationWarnings, to help make metashare code easier to upgrade.
- six - Unidecode - django-kronos - pycountry - requests Some of the modified dependencies depend on github.com/zeehio/*. I won't delete the repositories, but I believe it would make sense for metashare to host their own copy under github.com/metashare just in case. Additionally, in the long term the code should be ported to depend on standard versions of the dependencies.
At last I found time to look at your pull request. Better late than never I guess...
Great to see that it got merged! :-)
I remember having many issues with Selenium tests to make them work. I will try to run them again as soon as possible, although probably the Selenium dependency now fails due to Firefox updates (see SeleniumHQ/selenium#1385).
My advice would be to upgrade the Selenium dependency to the latest released version 2.48.0 and run the tests again.
Some of the multitest tests were failing for me too from time to time, I have not looked into it as I haven't found the time to check how they work in detail.
Unfortunately, Django-1.4 is now unsupported (see https://www.djangoproject.com/download) so there is still work needed to port metashare to 1.5, 1.6, 1.7 up to Django 1.8 if we want to avoid being hit by security issues (see https://docs.djangoproject.com/en/1.9/releases/security/, there already is one after django-1.4 got EOL). Too much work and not enough time.
I'll come back to this thread once I have been able to test if I can fix the Selenium tests. Happy new year!