intbitset: no crash when intbitset is on rhs

* When an intbitset is on the right hand side of a foreign type
  operator (e.g. a set), do no longer crash with a segmentation
  fault, rather raises a TypeError.  (closes #1287)

Reported-by: Thorsten Schwander <thorsten.schwander@gmail.com>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
Merge branch 'maint-1.0' into maint-1.1

* maint-1.0:
  intbitset: no crash when intbitset is on rhs

Conflicts:
	modules/miscutil/lib/intbitset.c
	modules/miscutil/lib/intbitset.pyx

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
installation: h5py requirement clean-up

* Cleans h5py requirement that was specified in both
  `requirements.txt` and `requiremets-extras.txt`.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
installation: move h5py to extra requirements

* Moves h5py installation to the extra requirements because, similarly
  to gnuplot-py, it imports numpy during its setup.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
installation: pip requirements

* Adds requirements files for Pythonic prerequisites, taken
  from the master branch, modulo some unnecessary dependencies.

  Useful for Python-2.6 based installations of maint-1.0/maint-1.1
  branches.  (Note that the maint-1.0/maint-1.1 branches shall
  remain Python-2.4 compatible.)

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
Travis CI: initial release of configuration

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
BatchUploader: rights to ::1 for robot upload

* Grants rights to `::1` for robot upload.  Useful for IPv6 systems.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
Merge branch 'maint-1.0' into maint-1.1

* maint-1.0:
  Travis CI: initial release of configuration
  installation: pip requirements

* NOTE The merge commit splits testing of unit and regression tests.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
BibDocFile: fix "delete" CLI option
BibUpload: do not always process MoreInfo

* During FFT elaboration, MoreInfo processing is not done if
  BibDoc's have been deleted/expunged/purged. This avoids getting
  an error when using bibdocfile CLI to delete BibDocs.
BibUpload: removed print statement

* Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
installation: jinja2 prerequisite

* Adds jinja2 prerequisite, since it is mandatory in BibAuthorID.
  When the module is made optional, this can get revisited.
  (closes #1677)

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
BibAuthorID: inactivation of test_save_matrix()

* Inactivates failing test case.  (see #1678)

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
Merge branch 'maint-1.1'

* maint-1.1:
  BatchUploader: rights to ::1 for robot upload
  Travis CI: initial release of configuration
  installation: pip requirements
  intbitset: no crash when intbitset is on rhs

* NOTE The intbitset commit ab687a1351d5bcef9965530cc5b8a3b039726b57
  from maint-1.x branches was left out during merge; a separate patch
  for master will follow.  (see #1287)

Conflicts:
	config/invenio.conf
	modules/miscutil/lib/intbitset.c
	modules/miscutil/lib/intbitset.pyx
	requirements-extras.txt
	requirements.txt

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: sorting fixes

* Refactors sort_records() in search_engine.py in the same way rank_records()
  has been refactored: the new behavior of print_records() is to not reverse
  records anymore.  So we can avoid reversing them beforehand too.
  (closes #1674)

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
DocExtract: new CMS PAS report numbers

Signed-off-by: Alessio Deiana <alessio.deiana@cern.ch>
installation: pip requirement version updates

* Updates requirements.txt with specific versions for all requirements.

* Updates mysql-python to 1.2.5 to make it work with the new pip.

* Changes the requirement from PIL to Pillow as PIL is abandoned.

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
Merge branch 'maint-1.0' into maint-1.1

* maint-1.0:
  installation: pip requirement version updates
Merge branch 'maint-1.1'

* maint-1.1:
  installation: pip requirement version updates

Conflicts:
	requirements.txt

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: timestamp detection fix for empty sites

* Fixes get_database_last_updated_timestamp() so that it would not return
  None in case no records are present in the system.  This solves webcoll
  traceback issues when running on an empty site.

Reported-by: Ole Rønning <ole@tindtechnologies.com>
Signed-off-by: Tibor Simko <tibor.simko@cern.ch>