1. 16 8月, 2016 1 次提交
  2. 25 7月, 2016 1 次提交
  3. 22 7月, 2016 1 次提交
  4. 02 5月, 2016 1 次提交
  5. 13 4月, 2016 1 次提交
  6. 19 2月, 2016 1 次提交
  7. 18 2月, 2016 1 次提交
    • H
      Use environment marker for conditional requirements · 03c04b98
      Hao Liu 提交于
      Managing different requirements files for different python version
      requires much more efforts when the requirements became too complex.
      
      This issue emerged when a required package `stevedore` decide not
      supporting Python 2.6 since version `1.11.0`.
      
      ```
      >>> import stevedore
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/usr/lib/python2.6/site-packages/stevedore/__init__.py", line 23, in <module>
          LOG.addHandler(logging.NullHandler())
      AttributeError: 'module' object has no attribute 'NullHandler
      ```
      
      Pip provides a feature named [Environment
      Markers](https://www.python.org/dev/peps/pep-0496/) for requirements
      file to include specific packages conditionally which could properly
      solve this issue.
      
      This fix:
      1. Use environment markers and merge python version specific
      requirements files;
      2. Remove python version specific requirements files references in
      `Makefile` and Travis configuration;
      3. Use `pip install -r requirements.txt` to replace per-line package
      installation;
      4. Restrain package `stevedore` on Python 2.6 to `1.10.0`.
      Signed-off-by: NHao Liu <hliu@redhat.com>
      03c04b98
  8. 18 12月, 2015 1 次提交
  9. 03 12月, 2015 1 次提交
  10. 01 12月, 2015 1 次提交
  11. 03 9月, 2015 1 次提交
    • C
      Selftests: drop nose usage for plain unittest discovery · e9c0d813
      Cleber Rosa 提交于
      The unittest module, and unittest2 backport on Python 2.6, is capable of
      finding unittests and running them. So, effectively, we do not need nose
      at all.
      
      This patch removes the dependency on nose, replacing the run script
      with a version based solely on the unittest module.
      
      One change of functionality is that run now looks and runs tests in the
      standard selftests directories (unit, functional, doc), and does not
      accept command line arguments. If one wants to run a subset of them,
      it's pretty easy to just use the unittest module for that:
      
       $ python -m unittest discover -s selftests/unit
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      e9c0d813
  12. 15 8月, 2015 1 次提交
  13. 01 8月, 2015 1 次提交
  14. 30 7月, 2015 1 次提交
  15. 07 7月, 2015 1 次提交
  16. 18 6月, 2015 1 次提交
  17. 18 3月, 2015 1 次提交
    • L
      .travis.yml: Add python 2.6 among the testing targets · 5ded5a79
      Lucas Meneghel Rodrigues 提交于
      Add a new python 2.6 target so that we can make sure
      avocado works on older distros (our specific focus here
      is RHEL 6, but of course, we expect the work on RHEL 6
      to be useful to other distros sticking with older versions
      of the python runtime).
      
      In order to do that, we added a new 2.6 related requirements
      file, and changed the requirements a bit so that it all
      works under the particular Travis CI environment.
      
      Changes from v1:
       * Per ldoktor's suggestion, use conditional install of backports
         using $TRAVIS_PYTHON_VERSION
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      5ded5a79
  18. 27 2月, 2015 1 次提交
  19. 11 2月, 2015 1 次提交
  20. 26 11月, 2014 1 次提交