1. 29 Jun, 2015 1 commit
    • Reinout van Rees's avatar
      Properly handling non-ascii filenames in hashing function · be8bc821
      Reinout van Rees authored
      Added fs_to_text() function that ensures a filename is always unicode (python
      2) or str (python 3).
      
      os.walk() gets such a unicode dirname as start point, so that it tries to do
      its best on python2. The resulting filenames are converted to unicode to make
      really sure that the join() doesn't fail with a decoding error.
      
      The input to the hash function is encoded, as it gives an ascii encoding error
      otherwise on python 2.
      be8bc821
  2. 26 Jun, 2015 2 commits
  3. 11 Jun, 2015 2 commits
  4. 10 Jun, 2015 8 commits
  5. 12 Apr, 2015 2 commits
  6. 07 Apr, 2015 1 commit
  7. 20 Mar, 2015 1 commit
  8. 08 Jan, 2015 1 commit
  9. 07 Jan, 2015 3 commits
    • Marius Gedminas's avatar
      Use 'rcN' for release candidate versions in tests · ace153c1
      Marius Gedminas authored
      Recent setuptools versions changed the canonical spelling of release
      candidate versions from 'cN' to 'rcN'.  Using the older spelling causes
      a UserWarning about the version requiring normalization, and test
      failures where the expected output contains a different (normalized)
      version number.
      
      For the record, the UserWarning looks like this:
      
      /home/mg/src/buildout/eggs/setuptools-11.3.1-py2.7.egg/setuptools/dist.py:283:
      UserWarning: The version specified requires normalization, consider
      using '1.2rc1' instead of '1.2c1'.
      
      and the failures can be seen at
      https://travis-ci.org/buildout/buildout/jobs/46215472
      ace153c1
    • Tres Seaver's avatar
      Merge pull request #228 from mgedmin/pkg_resources-is-a-package-now · 88ad9f41
      Tres Seaver authored
      Don't assume pkg_resources is a module.
      88ad9f41
    • Marius Gedminas's avatar
      Don't assume pkg_resources is a module. · e4101a23
      Marius Gedminas authored
      In setuptools < 8.3 pkg_resources.py was a module, so
      
          import pkg_resources
          print(pkg_resources.__file__)
      
      would print something like
      
          /home/mg/src/buildout/eggs/setuptools-8.0.4-py2.7.egg/pkg_resources.py
      
      Starting from setuptools 8.3 pkg_resources became a package, so the
      above code prints
      
          /home/mg/src/buildout/eggs/setuptools-11.3.1-py2.7.egg/pkg_resources/__init__.py
      
      which means a single os.path.dirname() is no longer sufficient to find
      the location of the .egg file/directory.
      
      I'm pretty sure 'setuptools' itself was always a package, so use two
      os.path.dirname()s on setuptools.__file__ to find the .egg location more
      reliably with both old and new setuptools versions.
      
      Fixes https://github.com/buildout/buildout/issues/227
      e4101a23
  10. 06 Jan, 2015 1 commit
  11. 17 Dec, 2014 1 commit
  12. 16 Dec, 2014 4 commits
  13. 14 Dec, 2014 7 commits
  14. 25 Nov, 2014 1 commit
  15. 24 Nov, 2014 4 commits
  16. 10 Nov, 2014 1 commit